Skip to content

Theo built the same app 5 times because he's dumb

License

Notifications You must be signed in to change notification settings

joshchernoff/1app5stacks

 
 

Repository files navigation

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)

About

Theo built the same app 5 times because he's dumb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 32.9%
  • TypeScript 23.3%
  • Ruby 17.4%
  • HTML 8.7%
  • Go 6.6%
  • JavaScript 5.3%
  • Other 5.8%