LWN.net Logo

OO ignoramuses -- and proud of it!

OO ignoramuses -- and proud of it!

Posted Oct 20, 2003 14:55 UTC (Mon) by guest1 (guest, #13780)
Parent article: The zen of kobjects

This must be one of the twistiest, dumbest, worst code designs I've ever seen!

When they speak, at every opportunity they get, most kernel hackers love to complain
loudly about how stupid and useless C++ and OO development is. And now when they
code, at every opportunity they get, kernel hackers like to demonstrate how stupid and
useless their OO design skills are.

This is not a clean design. They are trying to solve 2 or 3 problems with 1 lump of code.
The sysfs, kset, and kobject "objects" are mashed together. 3 sets of pointers? The
functionality for adding an "object" to a "container" is supposed to be contained in the
container, not the object! What a joke, little early for April 1st, isn't it?

Even a quick high-level overview of any of dozens of OO libraries (especially where
containers are involed) would have given the kernel hackers any number of good ideas
how to create a clean, compartmentalized design. Oh yea, we don't do OO, it's dumb.


(Log in to post comments)

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.