t3dotgg / 1app5stacks

Theo built the same app 5 times because he's dumb
MIT License
75 stars 25 forks source link
elixir golang graphql nextjs phoenix react ruby-on-rails t3-stack

1 App, 5 Stacks

I built the same app in 5 stacks*. Those stacks are:

* Ben wrote all of the Go code and most of the Elixir version

Line of Code comparison

Don't read too much into this, I just found it interesting.

Note: Both the Elixir and RSC versions have a "turbo" route with a lot of duplicated code, so I included a 2nd count for those with the turbo routes removed.

Stack Primary Language LOC Total LOC
Ruby on Rails 509 lines (Ruby) 1,014 lines
Elixir + Phoenix* 991 lines (Elixir) 1,395 lines
Elixir + Phoenix* (without turbo) 832 lines (Elixir) 1,236 lines
Go + gql + React 440 lines (TypeScript) + 423 lines (Go) 940 lines
OG T3 Stack 443 lines (TypeScript) 585 lines
RSC version 427 lines (TypeScript) 453 lines
RSC version (without turbo) 334 lines (TypeScript) 360 lines

* I deleted ~1,000 lines from the Phoenix template (and still had this much code left)