News for hackers. Stuff that matters.
Re:Every language fixes something - a DiGraph - just for fun by rufugee on Thursday July 28, 2011 @12:36PM (#2817599)
Hi there...experienced ruby guy here who is doing python work at the moment. The nice thing I find about python, even in its verbosity relative to ruby, is that I always for the most part know what it's doing. With ruby, the impulse to overload operators and create dsls mean that I have to learn a new language (potentially) with every new project or library I choose to use. It's not immediately clear what code is really doing. With python, it usually is. Just my (quick) two cents.
Re:Every language fixes something - a DiGraph - just for fun by kragen on Thursday July 28, 2011 @12:50PM (#2817674)
Yes, I think the verbosity I'm complaining about above is the fruit of three of the principles of the Zen of Python:

Explicit is better than implicit.

Errors should never pass silently.

Namespaces are one honking great idea -- let's do more of those!

Maybe after I spend more time with Ruby, I'll see the dark side of DSLs, but so far I'm loving it :)

Re:Every language fixes something - a DiGraph - just for fun by rufugee on Thursday July 28, 2011 @01:39PM (#2817948)
You probably will, if you're anything like me. However, at the end of the day, I find the "require" statement in ruby to be the truly most irritating feature. You simply don't get much control over what is slurped into your code. Python's import statement is so refreshing in comparison. I feel more in control in python, and I say this as someone who really likes ruby.