-

If you truncate a UUID I will truncate your fingers
“Oh I just needed something random but also human-readable” you said, as you casually called .Substring(8) on a UUID. You probably also “casually” mutilate animals like you did to that poor UUID. Great job on that name, too, Shakespeare. Item_019b1999 is going to be the next buzzword all the youths are yelling. Very human-readable.
-

Minimum Reviewable Unit
In 2016, Microsoft made a pull request to Node.js that added almost 3 million lines of code. The Node.js maintainers were actually super cool about it, since it enabled Node.js to use Microsoft’s pretty decent Javascript engine (ChakraCore) optimized for Windows. They were in a bit of a pickle, however, since they didn’t really get…
-

Don’t push ifs up, put them as close to the source of data as possible
If there’s an if condition inside a function, consider if it could be moved to the caller instead
-

Friendly reminder to mark your move constructors noexcept
Just put noexcept on your move constructors. Better yet, let the compiler do it.




