LWN.net Logo

Object-oriented design patterns in the kernel, part 1

Object-oriented design patterns in the kernel, part 1

Posted Jun 1, 2011 22:57 UTC (Wed) by brianomahoney (subscriber, #6206)
In reply to: Object-oriented design patterns in the kernel, part 1 by daglwn
Parent article: Object-oriented design patterns in the kernel, part 1

I could not disagree with you more, the biggest problem with C++ is it is just too complicates for most programmers, and fosters cult programming styles


(Log in to post comments)

Object-oriented design patterns in the kernel, part 1

Posted Jun 2, 2011 8:51 UTC (Thu) by dajoli66 (subscriber, #61914) [Link]

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.

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