(Featured image by Camille Couvez on Unsplash) When a measure becomes a target, it ceases to be a good measure But AndyG, doesn’t this just encourage a race to the bottom? Aren’t we sacrificing quality for speed?
His HolinessCasa Santa Marta00120 Vatican City
“I’ll compose a new type that holds a Doohickey and also indicates whether the fetch operation succeeded!” If you couldn’t have a utopia in the real world, then dammit you’d have one in your obscure codebase! It shall have clean logic untarnished by dirty, filthy hobbitses error-checking. Something like this:
If there’s an if condition inside a function, consider if it could be moved to the caller instead Finally, I want to briefly return to the notion of testing: Well, the answer to that is the same as the answer to exceptions; strengthen the type returned by the function, and let callers ignore scenarios they […]
*I’m pretty sure the only way to really tell if an email address is valid is to send an email to it and hopefully not get it bounced back as undeliverable. Regular expressions be damned. *In Haskell, this is only true if you ask it to
Cars People 0 0 1 1 2 4 3 9 4 16 5 25 Number of people on the first N train cars
Just put noexcept on your move constructors. Better yet, let the compiler do it.
*There is an excellent documentary called Behind the Curve where you can witness Flat Earthers do this exact thing when their experiments only continue to prove the earth is round.
Next entry: Conflict management
*Purely from an understandability point-of-view. As a side effect, you often end up with code that’s easier to test and maintain. *It turned out the developer both didn’t know that standard functions existed for all of this *and* they thought that even if the functions did exist, the developers’ code would be faster (it wasn’t). […]
Next entry: Make them seem small