Contributed by jose on from the sweeping-it-up dept.
One of the great things about OpenBSD is that the core team makes a very concerted effort at keeping the code extremely clean and readable. This greatly fascilitates finding and fixing bugs, and is one of the things that makes OpenBSD so stable. It also helps make OpenBSD a great platform to develop on.
The best example I've seen of this recently is this commit message:
"8579 lines of KNF, ANSO and zap-junk diff without the resulting binary changing by a single byte."Now that's a code cleanup. Thanks a lot Henning and Theo and the rest of the OpenBSD team!"
(Comments are closed)
By joe bloggs is a sysadmin () on
Comments
By fips () pb@ on mailto:pb@
or is this "whoa, first post! let's troll!"?
*sigh*
By fips () pb@ on mailto:pb@
readable, "nicely" formatted code is important.
Read "Write-only code." on
http://www.blahonga.org/~art/rant/index.html
By Anonymous Coward () on
Comments
By Anonymous Coward () on
Regards
Comments
By Anonymous Coward () on
For a newbie I'd recommend starting with what's in /usr/src/bin - these are mostly very small, focused programs that perform exactly one task, and do it well. You'll find a few complex programs there, but just skip over them and come back when you're ready. Very importantly: read the man page for that program first, and play with it a bit to see exactly what it does and how it behaves under what conditions, then jump in and figure out what makes the code behave like that.
Never forget - a debugger is a great tool for understanding how code works, as it works.
By Anonymous Coward () on
Comments
By Brad () brad at comstyle dot com on mailto:brad at comstyle dot com