Hacker News new | past | comments | ask | show | jobs | submit login

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();



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: