Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
I can actually understand all of Hay.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Both of those systems are just over 100,000 lines of code.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
I've seen people do this at maybe twice, maybe three times that scale, and then it starts breaking down.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Once you get north of certainly half a million lines of code, no individual human can do it, and that's when you get into maybe some degree of microservices can make sense.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
100,000 lines of code.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
It is.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Considering the fact that Basecamp, I think, has something like 420 screens, different ways and configurations.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Do you include the front end in that?
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
No, that's the Ruby code.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Well, it's front-end in the sense that some of that Ruby code is beneficial to the front-end, but it's not JavaScript, for example.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Now, the other thing we might talk about later is we write very little JavaScript, actually, for all of our applications.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Hay, which is a Gmail competitor, Gmail ships, I think, 28 megabytes of uncompressed JavaScript.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
If you compress it, I think it's about 6 megabytes, 28 megabytes.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
Think about how many lines of code that is.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
When Hay launched, we shipped 40 kilobytes.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
It's trying to solve the same problem.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
You can solve the email client problem with either 28 megabytes of uncompressed JavaScript or with 40 kilobytes if you do things differently.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
But that comes to the same problem, essentially.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
This is why I have fiercely fought splitting front-end and back-end apart.
Lex Fridman Podcast
#474 β DHH: Future of Programming, AI, Ruby on Rails, Productivity & Parenting
That, in my opinion, this was one of the great crimes against web development.