DEV Community

Discussion on: How Specific Are you With Your Imports and Why?

Collapse
 
lethargilistic profile image
Michael MacTaggert • Edited

There are only good reasons to be specific about what parts of your dependencies you're using. It helps with readability by signalling what you're doing with those dependencies far in advance and it makes your statements shorter, for just two.

I can hear someone saying "but those lines at the top are so verbose and they must be maintained!" to which I say "Your poor, auto-complete-less hands." We have tools for that if it's so upsetting.