News for hackers. Stuff that matters.
Re:How to C in 2016 by moonchrome on Friday January 08, 2016 @08:36AM (#10864692)
Yeah, let's use copy & paste and C preprocessor macros as our abstraction tools ...

Avoiding unnecessary abstractions is important but at the same time those abstractions were invented for a reason. Basically the Go vs generics debate, except even more rudimentary. It's fine if your code doesn't need those abstractions, it sucks badly if it does (eg. gobject)

Re:How to C in 2016 by comex on Friday January 08, 2016 @10:56AM (#10865727)
Depends on your definition of rudimentary. The C preprocessor sucks in general, but you can use it to implement all sorts of abstractions Go basically isn't capable of.
Re:How to C in 2016 by moonchrome on Friday January 08, 2016 @04:05PM (#10868237)
If replacing standard high level programming concepts like generics/templates with C macros is your idea of a productive programming environment than I don't know what to say.

Just look at any C collection library for things like maps compared to C++.