Hacker News

Hacker News

Programmers who don't use autocomplete,how do you write long imports?
2 points by rimlessspecs •                         
Suppose you are using Java or C# or Python without IntelliSense/Autocomplete. How are you able identify long import names? Do you peek in package or documents or any other way?
blinkbat •                         
I assume yes they would have to verify it somehow...
mittensc •                         
copy paste from the other files that I'm importing?, after checking out docs and what it does (and how)
MiroslavPokorny •                         
You could also not use taps in toilets at home, and walk to the local river or something... but why would you ?
micahdeath •                         
You'd create macros or templates. In C# & VB.NET you can alias your imports for simpler/smaller code below.

Imports Word = Microsoft.Word ' VB using Word = Microsoft.Word // C#

Imports you only do once so that wouldn't be a huge pain... Though, SOLID/DRY would be a pain with many more imports.