Hacker News new | ask | show | jobs
by squeaky-clean 1587 days ago
> He didn’t use a IDE, He didn’t get method name suggestions, code completion, and so on. His solutions were completely different, and they were smaller and faster.

I'm confused by this. I've used pretty much every major IDE and ignoring Github Copilot, I've never had one suggest code for me to write or suggest a method name. I've had them do things like find a typo in a method name , or alert me that I'm calculating a value twice when I could just re-use a variable. Stuff like that. But I don't understand how it could suggest a method name for me.

The only code completion IDEs give me are things that are rigidly fixed by the syntax of the language. If I start writing ' for (var i', it will automatically complete the for loop header and brackets. But it's never actually written code inside the loop.

I guess I've had Rider suggest ways to convert imperative code to LINQ, but that's only after writing the original code.

1 comments

I'm not sure why you're getting down-voted, but I want to ask about this.

> "I've never had one suggest code for me to write or suggest a method name"

That's confusing to me. You mean if you were coding something in, say, JavaScript, and you typed `Math.` that never in your experience has any IDE popped up a list of methods, like `abs` or `random`, that you could down-arrow through and select by hitting enter?

Like, go here - https://www.typescriptlang.org/play - and type "Math" on line 1 and then type "."

That list of pop-ups is a completely novel experience for you?