Re: Good editor for Linux?
On Apr 23, 2:50 pm, Erik Wikstr=F6m <eri...@student.chalmers.se> wrote:
On 23 Apr, 13:42, dave_mikes...@fastmail.fm wrote:
On Apr 22, 2:04 pm, Johs <a...@asd.com> wrote:
Are there any alternatives left or are there no tradition for using
autocompletion when writing c++?
Do you really type in code without knowing what you classes/member
functions you are about to use?
Are you saying that you know all the classes, members and functions in
standard C++, plus whatever other third part libraries you might be
using?
I think he's saying that if you don't know the function, you
won't be using it (or shouldn't be using it).
There are several usages of autocomplete, one is that you don't
have to know the exact names of all members and functions and stuff of
all the classes that you might encounter.
Then you still have to look them up. Or does auto completion
also ensure that you have the right number of arguments, with
the right types, and that all of the additional constraints have
been met? (Things like not passing a null pointer if the
function says it's forbidden.)
I don't think that auto completion is a real help here.
What's important as a
programmer is that you know that there is a method that does what you
want, and if you have an idea about the name that's just a bonus.
That's more a feature of your help, or whatever. If you know
(or even think) that there's a function which does what you
want, you'll want to see its documentation to be sure before
using it.
Another useful feature of autocomplete is that you don't have to spell
out all of InvalidDeviceSettingException or whatever.
And that you won't make a typo along the way. If you make the
typo in the first couple of characters, auto complete won't find
the match, so you can correct it immediately, and of course,
everything beyond that will match perfectly, because the program
does it, not you.
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34