3 ms·
A bit tangential, but since OP mentioned abstraction, I'd like to add this: One of the marks of a readable piece of code is that it does not mix different level
by tjchear 6y ago
A bit tangential, but since OP mentioned abstraction, I'd like to add this:
One of the marks of a readable piece of code is that it does not mix different levels of abstractions.
Here's a contrived example:
if (a < b && c == d)
createUserProfile();
Instead, do this:
if (userIsAuthenticated())
createUserProfile();