newbie ruby learner Afficher plus
*learns the basics of ruby syntax*
"to do a loop you have to write :loop do blabla break ifend"
damn its weird
"or you can use :loop { blabla break if}"
way better why didnt you tell it earlier u-u
also i hate loop i prefer whileat the limit, for is usefulbut why "until"and why "unless" instead of "if"
whywell at least it existsbut it feels so weird
but i guess it's good that it exists
i like the .each method that can be applied to arrays
it's pretty cool
me learning code :
"5.times {print "moo "}"
"create an array please"
ok :array=[ ]
"no please not an empty one"
why didnt you tell me earlier, codeacademy ;___;
i just lost 5 not-that-precious-seconds
it took me 3 hours to understand that methods are functions
fuck
wait is it
yes it isi guessseems the same
@Morgane in some languages operators are functions too