3 ms·
The nicest thing about tig is that it is written in just one C source file. Check: http://repo.or.cz/w/tig.git?a=tree http://repo.or.cz/w/tig.git?a=tree I like
by coliveira 17y ago
The nicest thing about tig is that it is written in just one C source file. Check: http://repo.or.cz/w/tig.git?a=tree http://repo.or.cz/w/tig.git?a=tree
I like to see little utilities like this that are easy to install and understand.
- deleted 17y ago[deleted]
- tjr 17y agoOne source file, yes, but it's 7500 lines long... for me, at that kind of length, I'd find it easier to understand if broken into sensibly separate files.
- coliveira 17y agoIMHO, C is nice because it doesn't force you to break your code into many small little pieces. Although I agree that in general it is better to have multiple classes/modules -- if the project really requires it. This is not the case here.
- yu 17y agoThank you for pointing that out. The choice of a single source file is a great C feature. The author appears to have started from a few hundred lines in 2006. Grew that 10x, to a few thousand. Curses/ ncurses bring back good memory of various mail and news readers. I bet a few of you tried curses/ ncurses. IMO, character user interface has its efficiency; prefers CUI to icon bars, ribbons, etc.