Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
drek
· 14y ago · 0 comments
Looks cool, but what's up with the source being just one 4k line C file?
Comments
[–]
jrockway
14y ago
It's all going to end up in the same executable anyway!
[–]
r4pha
14y ago
dwm is a really nice tiling window manager and is even smaller:
https://github.com/sr/dwm/blob/master/dwm.c
[–]
to3m
14y ago
Some people like it that way!
Also, it's 3,727 lines.
[–]
buro9
14y ago
It isn't:
https://github.com/seanpringle/goomwwm/blob/master/goomwwm.c
[–]
drek
OP
14y ago
Umm yeah that's a 4k line C file?
[–]
munchor
14y ago
What matters is size, not lines. You can just inline everything and it'll be like 3 lines of code.
[–]
tikhonj
14y ago
It's a question of readability and code organization, not sheer size.