Y
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
jrockway
5099 days ago
It's all going to end up in the same executable anyway!
link
r4pha
5099 days ago
dwm is a really nice tiling window manager and is even smaller:
https://github.com/sr/dwm/blob/master/dwm.c
link
to3m
5099 days ago
Some people like it that way!
Also, it's 3,727 lines.
link
buro9
5099 days ago
It isn't:
https://github.com/seanpringle/goomwwm/blob/master/goomwwm.c
link
drek
5099 days ago
Umm yeah that's a 4k line C file?
link
munchor
5099 days ago
What matters is size, not lines. You can just inline everything and it'll be like 3 lines of code.
link
tikhonj
5099 days ago
It's a question of readability and code organization, not sheer size.
link