4 ms·
Well, not exactly sarcasm but a snarky way to say that Ruby was written by a Japanese programmer, so he can't be completely incompetent. Perl is my preference
by ihatepython 4y ago
Well, not exactly sarcasm but a snarky way to say that Ruby was written by a Japanese programmer, so he can't be completely incompetent.
Perl is my preference of the three (Perl, Python, Ruby). I agree with 'There Is More Than One Way To Do It', and disagree with 'There Is Only One Way To Do It'. And Perl has the best support for regular expressions. Ruby is OK, but I learned Perl first, so it feels more natural.
- willbudd 4y ago> And Perl has the best support for regular expressions. To me this sounds a bit like driving to a supermarket three towns away because it has the best selection of coffee filters... :)
- melagonster 4y agowhen perl5 released, this actually is a good idea. but world changed.
- ihatepython 4y agoWell to be honest, I have driven more than an hour to go to my favorite Italian deli and get my favorite sub sandwich, so it fits my personality
- satvikpendem 4y agoWhy do you hate Python? And what is your opinion on Nim, Crystal, Rust etc?
- ihatepython 4y agoI don't know exactly why, but whenever I write something in Python I get extremely irritated. I'm always worried that I'm going to clobber the namespace somehow. Some functions like 'str' are extremely short and common, and happens to be a variable I always use for temporary variables. The forced indentation messes up the code when I want to debug something by commenting out a bunch of lines. But sometimes there is a builtin module that makes something easier to do, so I am faced with a 'Kobayashi Maru', a no-win situation I've never used Nim or Crystal. Rust is too complicated for me to bootstrap and not particularly compatible with older architectures as far as I remember (I believe had trouble with compiling 32-bit)
- cb321 4y agoFWIW, Nim has various trade offs for you. It has an alternative comment syntax that goes like echo 1 #[ deactivated ]#, 2 While `from modA import nil` does exist, it is not very idiomatic. Idiomatic is more managing the global namespace with the type system/overload resolution which it sounds like you would hate. However, shadowing outer scope names with inner scope names (like your `str` example) *is* considered idiomatic.