Settings

Theme

Against Single-File Codebases

rugu.dev

2 points by aiono 5 months ago · 3 comments

Reader

fjfaase 5 months ago

Almost all of my hobby project programs are in a single file. With right use of comments and organisation of data structures and functions it is not much different than dividing the code into multiple files. I often have multiple views on the file open, just like you would with multiple files.

throwmeaway222 5 months ago

meh - at some point when LLMs are groking giant contexts without issues, we can just make programs with a backend, frontend and data layer all in one file. There's no reason not to.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection