News for hackers. Stuff that matters.
Re:C99/C11 dynamic array that mimics C++'s std::vector by JoeAltmaier on Saturday January 07, 2017 @06:04PM (#13347206)
Sounds like a bitter old fossil. My first look at Linux, there were 200 sound-card drivers in the source base. Mostly identical except for the layout of bits in the control register. Any change to the api or conventions, 200 files had to be edited. An ideal place to refactor as a 'sound card' base class and derive classes to handle the (miniscule) differences.

"Keeping new ideas away" is a good working definition of an old coot.

Re:C99/C11 dynamic array that mimics C++'s std::vector by st3fan on Saturday January 07, 2017 @07:14PM (#13347460)
You don't necessarily need C++ to implement a good driver design with base classes and minimal code duplication. It is perfectly possible in C.