
Programming\
Get flash to fully experience Pearltrees
the { buckblogs :here }: Maze Generation: Growing Tree algorithm
1. Numbers
Save your program (yes, that's a program!) as calc.rb (the .rb is what we usually put at the end of programs written in Ruby). Now run your program by typing ruby calc.rb into your command line.Ruby Tutorial with Code Samples
puts "puts works" puts " with line breaks." print "print works" print " with no line breaks." printf ( "\n\nprintf formats numbers like %7.2f, and strings like % s . ",3.14156," me ") def test ( a = 1 , b = 2 , c = a + b ) puts "#{a},#{b},#{c}" end test => 1 , 2 , 3 test 5 => 5 , 2 , 7 test 4 , 6 => 4 , 6 , 10 test 3 , 4 , 6 => 3 , 4 , 6 def getCostAndMpg cost = 30000 mpg = 30 return cost , mpg end AltimaCost , AltimaMpg = getCostAndMpg puts "AltimaCost = #{AltimaCost}, AltimaMpg = #{AltimaMpg}"Easy Computer Programming
Creating Wizard Dialogs with Java Swing
Articles Index Wizard dialogs are ubiquitous in today's desktop applications. What exactly is a wizard dialog?There is a newer version of this article updated for Rails 3 To some people Rails have a fairly high learning curve. And certainly, it’s somewhat higher than, say, PHP. However, in the longer run learning Rails definitely pays off.

