News for hackers. Stuff that matters.
Re:Clean your codebase with basic information theory by jpc0 on Monday February 19, 2024 @07:03AM (#39428863)
> All the issues with global variables can be solved with better tracing tooling

I would argue this problem is solved in most current languages with strict types.

Stop making all the things strings or abstract base classes.

Easy example I've worked on recently. An IPv4 address is an IPv4address in code. I don't care if it is just represented as an uint32 or string in Memory, in your code it should be an IPv4 address and if a function expects an IPv4 address and you pass it a string that is a compilation error.

There are no comments on this comment yet.