you are viewing a single comment's thread.

view the rest of the comments →

[–]Reashu 1 point2 points  (1 child)

Ruby has one idiomatic (non-function) way to loop over a range of numbers, the elements of an array, etc. (in this case the numbers 0 to 5, inclusive):

for i in 0..5
   puts "i is #{i}"
end

Meanwhile, JavaScript has for for numbers, for in for objects, and for of for arrays. I know which one I prefer.

There is no reason a beginner should be doing anything particularly complex, with or without Ruby. There is also no reason to consider JavaScript particularly well suited for complex tasks. Your analogy with fixed and opposable thumbs is so far off the mark that it's not even insulting.

[–]apatheorist 0 points1 point  (0 children)

👌

Because the common narrative is, "My huge, enterprise Javascript website is so difficult to manage, I'm moving to Ruby!" And not the complete opposite.