News for hackers. Stuff that matters.
Re:Autocomplete as an Interface (2015) by bradstewart on Thursday January 16, 2020 @11:20AM (#22065962)
This. I find it's even more valuable with the explosion of 3rd-party libraries and packages--I'm constantly interfacing with code I didn't write, and autocomplete is _way_ faster than context switching to look at the docs/source of a library.
Re:Autocomplete as an Interface (2015) by aratakareigen on Thursday January 16, 2020 @04:16PM (#22069044)
Interesting, but why not just have the autocomplete as a pane on the side so that you can focus, in the 99% case where you do have a good grasp of your dependencies?
Re:Autocomplete as an Interface (2015) by bradstewart on Thursday January 16, 2020 @04:47PM (#22069333)
That would certainly be a viable middle ground, but I simply don't find the in-editor popup to be distracting. I find a good many things distracting while working, but I actually like the autocomplete popups.
Re:Autocomplete as an Interface (2015) by cdo256 on Friday January 17, 2020 @08:36AM (#22074471)
I don't think the main problem is that they're distracting, in the drawing attention away from what you're writing sense. I think the main problem is that, for an unfamiliar editor, the autocomplete takes an unknown subset of keystrokes, meaning that common things like inserting a newline or navigating vertically can interrupt your train of thought.

Once you get familiar with a particular editor then these problems become less acute. What remains is the obscuring of other lines of code which can be fixed by making the autocomplete box only appear when you press tab.

Re:Autocomplete as an Interface (2015) by jonhohle on Thursday January 16, 2020 @03:42PM (#22068667)
Yeah, really! Who would want to read the docs of a library!?
Re:Autocomplete as an Interface (2015) by scarface74 on Thursday January 16, 2020 @04:10PM (#22068970)
Re:Autocomplete as an Interface (2015) by omaranto on Thursday January 16, 2020 @05:41PM (#22069807)
I think you meant to ask who would want to memorize the docs and never ever need confirmation they are remembering correctly?
Re:Autocomplete as an Interface (2015) by bradstewart on Thursday January 16, 2020 @04:43PM (#22069296)
I always read the docs first. And then usually skim the source code (when available). But that doesn't mean I've memorized every method name and signature.