News for hackers. Stuff that matters.
Re:Goodbye, Clean Code by mhh__ on Saturday January 11, 2020 @06:00PM (#22023003)
Good generics can be really helpful here.

Can't be specific without knowing the exact helper function but I find sitting down with a cuppa (away from the computer) and planning an interface (If it's C++) that accepts (say) a policy class with a default and a callable object ("Functor") very helpful.

Sometimes it can't be done but it's better to have a bugfree building block (Macros don't count!) that can accept buggy user defined tasks than lots of repitition.

Re:Goodbye, Clean Code by morelisp on Saturday January 11, 2020 @08:07PM (#22023674)
> Macros don't count!

Well, C++ macros don't count.