I've said it before!
Aug. 26th, 2008 09:37 amI once famously said "Python is Perl for grown-ups."
If that's true, then Ruby is the hot 20-something firecracker chick of your programming mid-life crisis. You've got nothing in common but damn the interfacing is great. It's so different.
Maturity is getting over it and coming back to the stable reliability and maintainability of Python once more.
If that's true, then Ruby is the hot 20-something firecracker chick of your programming mid-life crisis. You've got nothing in common but damn the interfacing is great. It's so different.
Maturity is getting over it and coming back to the stable reliability and maintainability of Python once more.
no subject
Date: 2008-08-26 05:09 pm (UTC)I'm not sure...
Date: 2008-08-26 05:28 pm (UTC)And I say this as a user of Perl who, intellectually, likes the cleanliness of Python, but who can't maintain a relationship with it 'cause I use Perl for all the one-off stuff and find that getting back into Python for the big stuff takes longer than just expanding the Perl.
I know Perl's going to break my heart, that I'm going to get to a stage in the relationship where I want something deeper and more meaningful, but Python just takes so much commitment up-front...
no subject
Date: 2008-08-26 06:29 pm (UTC)no subject
Date: 2008-08-26 06:54 pm (UTC)Ruby:
cmd += 'var types = new Array(' count = 0 types.each do |type| if count == 0 cmd += "\"%(type)s\"" count += 1 else cmd += ",\"%(type)s\"" end endPython:
Who the Hell writes array assemblies with sentinels like that? Ruby programmers from Windows, that's who! (Although if there's one thing I miss from Perl, it's the qq{} operators.)
no subject
Date: 2008-08-26 07:58 pm (UTC)cmd << 'var types = new Array(#{types.join(',')})'is much too concise. Thank Turing for imperative programming!
(Isn't qq{} the same as %q{}? I haven't yet missed anything from Perl in Ruby other than tail-call elimination.)
no subject
Date: 2008-08-26 08:17 pm (UTC)no subject
Date: 2008-08-26 10:32 pm (UTC)new Array("#{types.join('","'}")would do better. I blame eyeball spasms!(And at that point the Python version is starting to look nicer even to me. List comprehensions and % go together pretty well.)
no subject
Date: 2008-08-26 10:43 pm (UTC)no subject
Date: 2008-08-26 10:52 pm (UTC)cmd += "var types = new Array(#{types.join(',')})"
-Michael