Menu
Sign In Search Podcasts Libraries Charts People & Topics Add Podcast API Blog Pricing

David Heinemeier Hansson (DHH)

πŸ‘€ Speaker
4269 total appearances

Appearances Over Time

Podcast Appearances

Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

It's a number.

3792.062 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

Do you know what?

3792.703 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

You can add your own methods to that.

3794.205 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

I did, extensively.

3797.159 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

In Rails, we have something called Active Support, which is essentially my dialect of Ruby for programming web applications.

3799.831 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

And I'll give you one example.

3807.571 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

I've added a method called days to the number.

3808.953 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

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.

3813.62 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

So you can say cash expires in five dot days.

3823.413 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

Damn.

3828.821 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

And you're going to get whatever five times 24 times 60 times 60 is or whatever the math is, right?

3828.901 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

Very humanly readable.

3837.598 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

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.

3839.402 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

Mm-hmm.

3846.837 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

In Ruby, you get to write five days.

3846.957 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

But even better than that, Matz didn't come up with it.

3849.12 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

Matz didn't need the five days.

3852.485 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

I needed that because I needed to expire caches.

3854.469 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

I was allowed by Matz to extend his story with my own chapters.

3857.673 View full episode β†’
Lex Fridman Podcast
#474 – DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting

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.

3864.642 View full episode β†’