Hacker News new | ask | show | jobs
by strajk 3666 days ago
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))
  }