News for hackers. Stuff that matters.
Re:Programming is boring art by tjchear on Sunday May 31, 2020 @03:52AM (#23367982)
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();

There are no comments on this comment yet.