News for hackers. Stuff that matters.
Re:Ask HN: Programmers who don't use autocomplete/LSP, how d... by fpoling on Tuesday December 24, 2024 @04:46PM (#42505168)
LSP optimizes writing the code. Yet debugging, reviewing and reading other people code take significantly more time than writing. If code is organized badly and go-to-definition or even moving the mouse to trigger the tooltip is required when doing those tasks, it makes the whole experiences worse.
Re:Ask HN: Programmers who don't use autocomplete/LSP, how d... by ecoffey on Tuesday December 24, 2024 @05:00PM (#42505239)
> LSP optimizes writing the code.

I would actually phrase that as “LSP optimizes for understanding” (which is of course important for writing code).

For example, when doing code reviews I routinely pull the branch down and look at the diff in context of the rest of the code: “this function changed, who calls it?”, “what other tests are in this file?”, etc. An IDE/LSP is a powerful tool for understanding what is happening in a codebase regardless of author.

Re:Ask HN: Programmers who don't use autocomplete/LSP, how d... by antihero on Tuesday December 24, 2024 @05:00PM (#42505240)
LSP optimises consumption of other code and reading/exploration of code. It's especially useful with types.