David Heinemeier Hansson (DHH)
๐ค SpeakerAppearances Over Time
Podcast Appearances
Turbo, one of the front-end frameworks that we have, because I tried to write to metaprogramming in TypeScript, and I was just infuriated.
I don't want that experience.
But I also don't want it from an aesthetic point of view.
I hate repetition.
We've just talked about how much I love that Ruby boils all of these expressions down to its...
Essence, you can't remove one dot.
You can't remove one character without losing something.
This moment you go for static typing, that you declare at least, I know there are ways to do implied typing and so forth, but let's just take the stereotypical case of an example, for example.
Capital U, user, I'm declaring the type of the variable.
Lowercase user, I'm now naming my variable, equals uppercase user or new uppercase user.
I've repeated user three times.
I don't have time for this.
I don't have sensibilities for this.
I don't want my Ruby polluted with this.
Now I understand all the arguments for why people like static typing.
One of the primary arguments is that it makes tooling easier.
It makes it easier to do auto-complete in editors, for example.
It makes it easier to find certain kinds of bugs because maybe you're calling methods that don't exist.
on an object and the editor can actually catch that bug before you even run it.
I don't care.