Ad
  • Custom User Avatar

    Even tho you most likely won't see this, but hate to break it to you - not everyone cares about coding principles - if you can do something in one line of code and it is not very unreadable, a lot of people will do just that and most people are fine with that.
    In production and development codebases for huge apps - of course its better to keep things simple and readable, but if you can condense two or three loops to just 1-2 lines, but then explain the choice in documentation - thats way better.

  • Custom User Avatar

    I agree, but I also do not know how to overcome that hunger to fit an entire JS library into one line :D