OO ignoramuses -- and proud of it!
Posted Oct 20, 2003 14:55 UTC (Mon) by guest1
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.
to post comments)