Re:Write code that is easy to delete, not easy to extend
by Too on Sunday February 14, 2016 @12:36PM
(#11099099)
That's why you should use an IDE with proper "find all references" instead of coding in notepad.
Re:Write code that is easy to delete, not easy to extend
by falsedan on Sunday February 14, 2016 @08:02PM
(#11100888)
Bit trollish, but: IDEs which let you ignore the complexity of the code let you write complicated code. Writing in less-fully-featured environments forces you to consider simplicity as a desirable feature (so you can, y'know, work out what's going on when using a 80x24 terminal).
Re:Write code that is easy to delete, not easy to extend
by pm215 on Sunday February 14, 2016 @10:59AM
(#11098716)
C preprocessor macros can also be a great tool for making things ungreppable -- building families of functions using preprocessor token pasting to put together the function names certainly avoids repetition in all those function bodies but it also makes it really hard to find the definition later...
One of my pet peeves is when OO programmers take class's separate namespaces as a license to use super-generic method names. Method names like "add", "update", etc. Makes it near impossible to figure out where those methods are used!