Hacker News new | ask | show | jobs
by drek 5099 days ago
Looks cool, but what's up with the source being just one 4k line C file?
4 comments

It's all going to end up in the same executable anyway!
dwm is a really nice tiling window manager and is even smaller: https://github.com/sr/dwm/blob/master/dwm.c
Some people like it that way!

Also, it's 3,727 lines.

Umm yeah that's a 4k line C file?
What matters is size, not lines. You can just inline everything and it'll be like 3 lines of code.
It's a question of readability and code organization, not sheer size.