Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Learning Ruby: From Zero to Hero.
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
[0] https://stackoverflow.com/a/16629318/541136
[1] https://docs.python.org/3/reference/grammar.html
There are no comments on this comment yet.
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.
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
[1] https://docs.python.org/3/reference/grammar.html