Comment

Comment by strajk

I prefer importing whole modules too. One of the benefit is much easier code reviews:

Imagine this diff in the middle of a file (in Javascript)

  if (includes(users, userId)) {
    open(load(userId))
  }

vs

  if (_.includes(users, userId)) {
    Modal.open(UserApi.load(userId))
  }
parent strajk 10 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton