David Heinemeier Hansson (DHH)
๐ค SpeakerAppearances Over Time
Podcast Appearances
repulse, but it does.
And when I look at the Ruby alternative, it's really instructive.
So it's def, same part, def, space, initialize, parentheses.
Not even parentheses.
If you don't need to call it within the arguments, there's not even a parentheses.
That in itself is actually also a major part.
If the human doesn't need the additional characters, we're not just going to put them in because it'd be nicer to parse for the computer.
We're going to get rid of the semicolons.
We're going to get rid of the parentheses.
We're going to get rid of the underscores.
We're going to get rid of all that ugliness, all the line noise, and boil it down to its pure essentials.
And at the same time, we're not going to abbreviate.
This is a key difference in the aesthetics between Ruby and Python as well.
Init is short of type, it's only five characters.
Initialize is a lot longer, but it looks a lot better.
And you don't type it very often, so you should look at something pretty.
If you don't have to do it all the time, it's okay that it's long.
Those kinds of aesthetic evaluations are rife all over the Ruby language.
But let me give you an even better example.
the if conditional.