4 ms·
> 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 typ
by jpc0 3y ago
> 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.