3 ms·
Learning Ruby: From Zero to Hero
- aaronchall 9y agoI don't encourage people to learn Ruby. I spent a long time (months) trying to learn it. I still don't tell people I know it. I used to think that Ruby's syntax is twice as much to learn - now I think it might be even more than that. Maybe one reason why is that Ruby's YACC file is ~918 lines long[0], while Python's grammar file is 149 lines long. ~$ wc cpython/Grammar/Grammar 149 879 6472 cpython/Grammar/Grammar Even if 1/2 of Ruby's grammar output is whitespace, that's more than twice as much grammar to learn as Python's grammar[1]. [0] https://stackoverflow.com/a/16629318/541136 https://stackoverflow.com/a/16629318/541136 [1] https://docs.python.org/3/reference/grammar.html https://docs.python.org/3/reference/grammar.html