Welcome, Guest

Author Topic: Programming kills. I mean Skills.  (Read 3253 times)

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Programming kills. I mean Skills.
« on: June 06, 2011, 03:13:06 PM »
So I haven't been active here in awhile because I been trying to learn some programming languages.

I was wondering how many of you know any languages? Like efficiently?

Right now I am trying to learn Lua. Though it seems to be used more as a scripting language it seems to be gaining popularity and being used for more than that. (Love2d, Leadwerks Engine, Polycode).

Mainly I want to know because I want to be able to ask some questions about how I should do things in this (or other) languages.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Programming kills. I mean Skills.
« Reply #1 on: June 06, 2011, 03:23:58 PM »
Perl da bomb.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Programming kills. I mean Skills.
« Reply #2 on: June 06, 2011, 03:43:29 PM »
Ruby is good if you want an easy to learn code.

Fun fact: Ruby was an idea from a Japanese person.
« Last Edit: June 06, 2011, 03:47:34 PM by deoxy99 »

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: Programming kills. I mean Skills.
« Reply #3 on: June 06, 2011, 05:36:32 PM »
Thanks for the factoid, deoxy. lol

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Programming kills. I mean Skills.
« Reply #4 on: June 06, 2011, 07:21:19 PM »
Ruby is like this:

Code: [Select]
class User
attr_accessor :username, :username_appearance, :password, :email
def initialize(username, password, email)
@username, @password, @email = username, password, email
@username_appearance = @username
@login_status = 0
@wall = []
@title_of_wall = "Wall"
end
def login(username, password)
if (@username.downcase == username.downcase and @password.downcase == password.downcase)
if (@login_status == 0)
puts "You have successfully logged in as #{@username}."
@login_status = 1
else
puts "You are already logged in as #{@username}."
end
else
if (@login_status == 0)
puts "You have unsuccessfully logged in as #{@username}."
else
puts "You are already logged in as #{@username}."
end
end
end
def logout
if (@login_status == 0)
puts "You aren't logged in yet."
else
puts "You are logged out."
@login_status = 0
end
end
def comment(name, body)
@wall.push("#{name}: #{body}")
end
def view_wall()
if (@login_status == 0)
puts "You cannot view your wall until you login."
else
puts "\n"
puts "-------#{@title_of_wall}-------"
for comment in @wall
puts comment
end
puts "\n"
end
end
def preferences()
if (@login_status == 0)
puts "You cannot change your preferences until you login."
else
puts "You can only change the title of your wall. Please type titlewall to change it."
change_choice = gets.chomp
if (change_choice =~ /titlewall/i)
puts "What would you like to call it?"
@title_of_wall = gets.chomp
elsif (change_choice =~ /email/i)
puts "What would you like your email to be?"
@email = gets.chomp
elsif (change_choice =~ /username_appearance/i)
puts "How would you like your username to appear?"
@username_appearance = gets.chomp
end
end
end
end

user = User.new("deoxy99", "", "appleapple24@gmail.com")

By the way, Ruby on Rails is Rails (HTML) combined with Ruby... difficult to install, difficult to code (sometimes).

But Ruby itself is easy to code.
« Last Edit: July 07, 2019, 09:53:56 PM by deoxy99 »

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Programming kills. I mean Skills.
« Reply #5 on: June 06, 2011, 10:03:08 PM »
I tried a little bit lua for making some custom levels in a game called Eufloria. I don't remember what Civilization 5 uses, but I also made some changes to the game there, and also tried making my own civilization (Blaland), but failed.

I don't know any programming languages. Only to a very small extent. I've been trying to learn a few, mostly Visual Basic, I think.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Programming kills. I mean Skills.
« Reply #6 on: June 06, 2011, 10:46:44 PM »
Learn Ruby then. It's really easy to learn (in some way).

Bla

  • Global Moderator
  • *****
  • Posts: 1013
  • The stars died so you can live.
Re: Programming kills. I mean Skills.
« Reply #7 on: June 07, 2011, 05:55:03 AM »
Thanks for the advice. Is it also as useable?
My only big plan for programming is learning a language sufficiently good to make it possible for me to make Map War 2 a game.

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Programming kills. I mean Skills.
« Reply #8 on: June 07, 2011, 07:23:04 AM »
Thanks for the advice. Is it also as useable?
My only big plan for programming is learning a language sufficiently good to make it possible for me to make Map War 2 a game.
Oh, then possibly not... Ruby is viewed in the command prompt, so it may not be the best, but, Ruby on Rails makes use of HTML and Ruby (hence the name Ruby on Rails), which can be usable if you learn how to do everything, like avatar making, posting maps, history of actions, and many other things. The ease-of-use of Ruby on Rails is sufficient.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Programming kills. I mean Skills.
« Reply #9 on: June 07, 2011, 08:59:24 AM »
Perl can write and use file types. And as a plugin with HTML or ASP or something that is a website maker... (Like Ruby on Rails), this means that you can then use the <script> tag and if you're using HTML 5, which you should be or you fail :P, then you can make a Javascript game inside your website running on Perl.

Or just make a Javascript game. It's very flexible like Java... but not Java :P

deoxy99

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 872
  • ✨ the name's verb ✨
Re: Programming kills. I mean Skills.
« Reply #10 on: June 07, 2011, 09:33:49 AM »
Use PHP, Javascript, CSS, and HTML 5 to make an interactive account book or something like an interactive blog, even a game, but you need patience. The code will fail (a lot) but just keep trying.

PHP - For the database reading part. SQL is a recommended database. PHPMyAdmin will make this much easier.
Javascript - For the main part, the part that adds interactivity to the HTML 5, PHP, and CSS.
CSS - For the styling of the website, or even for some parts of the interactivity.
HTML 5 - For the Canvas tag and many other things like non-interactive parts and putting the Javascript and other things to use.
You - Yes, you need yourself. :P
Assembly - For you to be old-school. Optional. :P

Chaotic Cow

  • Universe Sandbox 1 Beta Team
  • *****
  • Posts: 588
  • President of Bovine Relations
    • Facebook
Re: Programming kills. I mean Skills.
« Reply #11 on: June 08, 2011, 08:44:06 AM »
I'm hoping to learn enough Lua to start using something like Love2D or Polycode to make small games.

atomic7732

  • Global Moderator
  • *****
  • Posts: 3849
  • caught in the river turning blue
    • Paladin of Storms
Re: Programming kills. I mean Skills.
« Reply #12 on: July 08, 2011, 12:19:13 AM »
Today I started learning Fortran 90... lol I'm going to simulate a universe... particle by particle.