LWN.net Logo

Object-oriented design patterns in the kernel, part 1

Object-oriented design patterns in the kernel, part 1

Posted Jun 2, 2011 8:51 UTC (Thu) by dajoli66 (subscriber, #61914)
In reply to: Object-oriented design patterns in the kernel, part 1 by brianomahoney
Parent article: Object-oriented design patterns in the kernel, part 1

LOL, this article is an analysis of (some of) the "cult programming styles" in the current kernel! Bear in mind that some cult styles can be helpful in hiding some necessary complexity and making algorithm simplicity more clear, e.g. macros for lock;call;unlock sequences, which can lead to cluttered code (or worse, coding errors) when spelled out in full.

FWIW, the stats over at langpop.com seem to suggest that "most programmers" find C++ perfectly usable, although C still gets as much or more discussion/committers/work etc.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds