4 ms·
>Solutions and suggestions would be appreciated! Ban the usage of default values or default parameters anywhere outside of top-level / public facing functions.
by MonkeyMalarky 4y ago
>Solutions and suggestions would be appreciated!
Ban the usage of default values or default parameters anywhere outside of top-level / public facing functions. Plus assert everything all the time.
I've gotten into arguments with other developers over it but I'll take the inconvenience in developing now over tearing hair out over bugs later, anytime.
- bimboler38 4y ago>Plus assert everything all the time. This is where static checking comes in. Static tests should fail if it's assumed (and not asserted) that a key exists.