3 ms·
If I don't remember how to use some function it's a sign that I have to read the documentation. The documentation can have important tips around performance, se
by nimmer 6y ago
If I don't remember how to use some function it's a sign that I have to read the documentation. The documentation can have important tips around performance, security & recommended usage patterns that I need to know.
And if you don't remember a lot of methods it means you might be out of your league and need to read the documentation and go through a tutorial to understand what you are doing.
Keyword, method and variable completion is ok, but overzealous completion encourage churning out code on "autopilot".
If you are not Torvalds it's better to write code good slowly than the opposite.
- ketzu 6y agoUnfortunately, there are functions where I know how to use them, and still can't reliably spell them correctly. Also it helps preventing confusion between languages. Is it length or size? Are the math operations qualified with type information or overloaded (e.g., labs/abs/fabs in cmath)? Lastly, at least the auto completion I used in intellij and visual studio is a peak into the documentation, it lists the full method signature, including all other methods, and opens the documentation on click.
- nly 6y agoMy feeling is we (developers) should be able to figure out how to use a function reliably and safely from just the signature for 95% of functions...if you can't then the API is badly written.