David Heinemeier Hansson (DHH)
speaker
4,269 appearances
1 recordings
1 series
first heard Jul 2025
last heard Jul 2025
David Heinemeier Hansson (DHH)’s voice in public audio — every appearance, attributed to the second.
Trend
recordings per month · last 12 monthsNo recordings in the last 12 months.Older appearances are listed below; set an alert to hear about the next one.
Appearances
It's a number.
Do you know what?
You can add your own methods to that.
I did, extensively.
In Rails, we have something called Active Support, which is essentially my dialect of Ruby for programming web applications.
And I'll give you one example.
I've added a method called days to the number.
So if you do five dot days, you get five days in seconds because seconds is the way we set cash expiration times and other things like that.
So you can say cash expires in five dot days.
Damn.
And you're going to get whatever five times 24 times 60 times 60 is or whatever the math is, right?
Very humanly readable.
In a normal programming language, you would type out the seconds and then you would have a little comment above it saying this represent five days.
Mm-hmm.
In Ruby, you get to write five days.
But even better than that, Matz didn't come up with it.
Matz didn't need the five days.
I needed that because I needed to expire caches.
I was allowed by Matz to extend his story with my own chapters.
on equal footing, such that a reader of Ruby could not tell the difference between the code Mats wrote and the code that I wrote.
Showing 701–720 of 4,269 · page 36 of 214
← Previous
Next →