Live data from Hacker News

Features I'd like to see in future IDEs

mordenstar.com

51–59 of 59 posts

Re: Features I'd like to see in future IDEs

#51

Earlier quoted context omitted.

Can you elaborate? Mature IDE's already customize the presentation of things like annotations or comments, inject inline hints, and provide alternate editors for things like XML, markdown, or established UI description formats, etc

Imagine you like two spaces and I like four spaces for indents. With the above idea we both get what we want, locally you see two spaces and I see four, and there's no diff for indents whenever one of us edits a file. Similarly for any other formatting preference.

Isn't this what tabs are for? Or is this /s?

Re: Features I'd like to see in future IDEs

#52
post #51

Earlier quoted context omitted.

Imagine you like two spaces and I like four spaces for indents. With the above idea we both get what we want, locally you see two spaces and I see four, and there's no diff for indents whenever one of us edits a file. Similarly for any other formatting preference.

Isn't this what tabs are for? Or is this /s?

Spaces are just an example to demonstrate the idea. You could apply the same logic to braces, whether curlies are on their own line or not, whether there are spaces between some delimiters or not etc. The idea is that specific formatting doesn't matter, anyone could use their own personal preference because the AST behind it is the same.

Re: Features I'd like to see in future IDEs

#53
post #42

Emacs already let's you embed images in comments with iimage-mode

There needs to pe a standard that all editors understand. Propriatory answers like emacs don't count as some of us do not have the same editor religion.

Personally, I use markdown for comment content, not that IDEs do much with it, at least Markdown supports images with the `![alt text](filename)` syntax.

I think I've seen some tree-sitter grammars actually define injections such that their comment are rendered with markdown (but now I can't figure out where I saw that, maybe one of the Zed specific ones).

Re: Features I'd like to see in future IDEs

#54
post #2

The queryable expression thing is something I struggle with all the time in Rust. It's especially bad in that language because (unlike in e.g. Java or C#) there is no way to view the Debug representation of your types in the debugger, you just get the raw memory layout which adds a huge barrier to 'what is going on with this code?' and requires you to dig around through countless nested layers to understand it.

I also find this super annoying. In C++ land, Microsoft solves this problem by having "natvis" [0] files which allows you to have custom representations of complex & deeply nested objects. Unfortunately, most third-party debuggers don't support it. And like you said, any non-trivial program in Rust is basically not parsible without digger though 50 layers of nested abstractions.

[0]: https://learn.microsoft.com/en-us/visualstudio/debugger/crea...

Re: Features I'd like to see in future IDEs

#55
post #9

> Coloration of Tagged Comments He mentions Jetbrains let you do this. I do it in vscode using the TODO Highlight extension.

I use "Todo Tree" in VS Code which is one of my mandatory extensions wherever I go. Super useful for not only tag highlighting, but as a general bookmark system inside the codebase.

[0]: https://marketplace.visualstudio.com/items?itemName=Gruntfug...

Re: Features I'd like to see in future IDEs

#56

Commit masks remind me of that time I couldn't run a Java app because it assumed a specific classpath order, but the classpath order is random on each boot, and my randomized classpath makes the app crash. I've also seen some development teams rely way too much on IDE plugins to get anything done. Horrible software architecture with a 45 minute start-up time, I shit you not. They paid a shitload of money on software…

Could you elaborate on the class path order issue?

I can think of pathologic cases where multiple jars contain the same class but only one version is the right one, but how can something like that happen in practice?

Re: Features I'd like to see in future IDEs

#57
post #51

Earlier quoted context omitted.

Imagine you like two spaces and I like four spaces for indents. With the above idea we both get what we want, locally you see two spaces and I see four, and there's no diff for indents whenever one of us edits a file. Similarly for any other formatting preference.

Isn't this what tabs are for? Or is this /s?

No, tabs are for formatting tables. It’s literally in the name.

Re: Features I'd like to see in future IDEs

#59

Commit masks remind me of that time I couldn't run a Java app because it assumed a specific classpath order, but the classpath order is random on each boot, and my randomized classpath makes the app crash. I've also seen some development teams rely way too much on IDE plugins to get anything done. Horrible software architecture with a 45 minute start-up time, I shit you not. They paid a shitload of money on software…

Could you elaborate on the class path order issue? I can think of pathologic cases where multiple jars contain the same class but only one version is the right one, but how can something like that happen in practice?

A custom modding framework that patches code at runtime to dodge legal issues of binary patching, or more accurately shift the legal issues from us to end consumers. Companies don't pursue end consumers for things like that, or so I heard. Either way, problem was that the modding framework and the app itself shared a couple of libraries. Our modding framework used features of newer versions of libraries, features that the app with outdated libraries didn't have. Sometimes, the class path order put older versions of libraries first, causing the modding framework to use a class, function, etc. that doesn't exist in that version of the library yet. This rarely was an issue since most libraries didn't change much from version to version, but the class path lottery did have a few uncommon combos that made the app crash until you restart your computer.
Post reply on HN