Remix.run Logo
socalgal2 4 days ago

It was and still is

https://www.joelonsoftware.com/2005/05/11/making-wrong-code-...

Types help but they don't help "at a glance". In editors that have type info you have to hover over variables or look elsewhere in the code (even if it's up several lines) to figure out what you're actually looking at. In "app" hungarian this problem goes away.

hmry 4 days ago | parent [-]

I remember thinking this post was outdated when I first read it.

"Safe strings and unsafe strings have the same type - string - so we need to give them different naming conventions." I thought "Surely the solution is to give them different types instead. We have a tool to solve this, the type system."

"Operator overloading is bad because you need to read the entire code to find the declaration of the variable and the definition of the operator." I thought "No, just hit F12 to jump to definition. (Also, doesn't this apply to methods as well, not just operators?) We have a tool to solve this, the IDE."

If it really does turn out that the article's way is making a comeback 20 years later... How depressing would that be? All those advances in compilers and language design and editors thrown out, because LLMs can't use them?

selimthegrim 4 days ago | parent [-]

I wonder if LLMs grok multiple dispatch