3 ms·
To be fair, there is something to be said about the aesthetics of a language, and Ruby is (at least to me) a far more readable and "pretty" language than PHP. T
by mtrpcic 7y ago
To be fair, there is something to be said about the aesthetics of a language, and Ruby is (at least to me) a far more readable and "pretty" language than PHP. There are a lot of small niceties that, once you are familiar with them, make Ruby genuinely enjoyable to read.
- tasogare 7y agoYes, once you are familiar with. Otherwise, PHP with its generic curly-brace syntax is way easier to grok (I have to work on a codebase in Ruby and the funny syntax + no strongly typed compilation pass makes it really hard for me to get started modifying things).
- jsjohnst 7y ago> and Ruby is (at least to me) a far more readable It’s funny folks pick on the “Magic” in PHP, yet overlook all of it in Ruby. I’m not a PHP guy anymore really (now Python/Rust/Java/Ruby mainly), but I’m still continually annoyed reading Ruby code. Here’s an example: - find a method being called on a class, so want to find out details on said method - grep through codebase, find no definition for said method - grep through all gem dependencies, find no definition for said method - search web, don’t find any obvious leads - cry in despair - finally find that method is handled by a method_missing on a dynamically generated class and never has anything related to the method name even as a string - flip desk and go home for the day
- joelbluminator 7y agoMeta programming became far less common in Ruby, I barely see it in Rails apps anymore.