David Heinemeier Hansson (DHH)
๐ค SpeakerAppearances Over Time
Podcast Appearances
It says, use exit parentheses or control D, i.e.
end of file to exit.
I'm like, one is very human and another is very engineer.
And I mean that, both of them, in the best possible way.
Python is pedantic.
Python's
The value from the start stated is that there should be preferably one and only one way to do a certain thing.
Ruby goes the complete opposite.
No, we want the full expression that fits different human brains such that it seems like the language is guessing just what they want.
Which is why you can't do it in one way, which is why I use the example of both exit and quit.
The principle of least surprise for some people would be like, oh, exit.
That's how I get out of the prompt.
For other people, it would be quit.
Why don't we just do both?
That's a big one.
That's a huge one.
And it was born out of a frustration I had in the early days with especially Java frameworks, where when you were setting up a web application framework for Java back in the day, it was not uncommon to literally write hundreds, if not thousands of lines of XML configuration files.
Oh, I need this.
I want the database to use the foreign keys as post underscore ID.
No, no, no.