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

That's the bedrock of all programming languages.

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

They have the if conditional.

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

If you take most programming languages, they all have if.

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

That's basically the same in almost every language.

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

Space, start parentheses.

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

We all do that.

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

And then you have, perhaps let's say you're calling a object called user.

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

dot isAdmin, close parentheses, close parentheses, start brackets, and here's what we're going to do if the user's an admin, right?

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

That would be a normal programming language.

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

Ruby doesn't do it like that.

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

Ruby boils almost all of it away.

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

We start with the if.

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

Okay, that's the same.

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

No parentheses necessary because there's no ambiguity for the human to distinguish that the next part is just a single statement.

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

So you do if space user dot admin question mark.

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

No open brackets, no parentheses, no nothing.

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

Next open line, here's your conditional.

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

That question mark means nothing to the computer, but it means something to the human.

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

Ruby put in the predicate method style purely as a communication tool between humans.

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

It's actually more work for the interpreter to be able to see that this question mark is there.

3498.438 View full episode β†’