top | item 40394454

(no title)

Osmose | 1 year ago

Maybe it's just me but if I felt like my application's error messages weren't easy enough to understand I'd try to improve the messages instead of throwing all the context at an AI and hoping for the best.

discuss

order

hu3|1 year ago

DevTools can't force frameworks and libraries to output better error messages.

But it can help us humans understand them better.

ivanjermakov|1 year ago

Pretty much all web frameworks are open source. And most web developers are more than capable to improve unfriendly errors upstream.

ajross|1 year ago

People have been trying to get compilers and runtimes to generate better errors for decades, and sites like StackOverflow exist to backfill the fact that this is a really hard problem. If an AI can get you a better explanation synchronously, doesn't that in fact represent an improvement in the "messages"?

olliej|1 year ago

No because all the AI is doing is making up statistically plausible sounding nonsense? The best case output is a correct summary of the documentation page - why add a huge amount of power use alongside massive privacy invasion just to deal with that?

I have read and re-read this article and I don’t understand how this is better for any purpose other than “we put AI in something, increase our stock price!”

jraph|1 year ago

Yep. The Web console could just link to some documentation.

The link could even be parameterized so the URLs or other elements related to the error replace placeholders in the doc. But I'm sure a developer is capable of enough abstraction to replace example data themselves.

rishab_kokate|1 year ago

Agreed! it would be really helpful if the console just showed me some documentation but if google manages to make something similar to github copilot then it could potentially be a game changer.