News for hackers. Stuff that matters.
Re:There’s No Such Thing as Clean Code by cerved on Friday January 28, 2022 @06:47AM (#30113475)
> Prefer polymorphism to if/else or switch/case (oh, the joy of tracing a simple task through 50 files)

If this is arduous it may be worthwhile to change your dev environment

Re:There’s No Such Thing as Clean Code by ziml77 on Friday January 28, 2022 @09:38AM (#30115105)
I can hit F12 or Ctrl-Click to navigate to definitions and I get a back button to return to where I was across those navigation operations. Yet it still sucks to bounce through all those files. And it's usually not just a matter of drilling down through the calls, but also moving back up to find out how a dependency of a class that I've ended up in is initialized.