Remix.run Logo
lazyasciiart a day ago

That’s a very simple operation. Try “take these 100 user generated pdfs and translate all of them”. Oh, “cannot parse unexpected character 0x001?” Cool beans, I wish I knew more.

Retric a day ago | parent [-]

That’s ok, I’ll just check the log. 50MB of ‘This is my happy place.’ followed by a one liner “cannot to parse unexpected character 0x001?’

Any library can do a bad job here, that doesn’t come down to logging vs error messages.

dpark 11 hours ago | parent [-]

The unspoken assumption you are making is that anyone who would disagree with your philosophy on this is incompetent.

Retric 9 hours ago | parent [-]

Being incorrect doesn’t imply general incompetence.

dpark 8 hours ago | parent [-]

Your statement that logging would contain zero useful information indicates an assumption of incompetence.

Retric 7 hours ago | parent [-]

No, I’m only saying a useless error code and a useless log are both possible. Either could be useful or they could both be useless because the creator was actively malicious etc. Thus, the possibility of a useless error code doesn’t inherently mean a log would improve things.

Really the only thing we can defiantly say is when both approaches are executed well it’s harder to use log entries in your code. If something returns an error that’s tied to a specific call to a specific bit of code, where a log entry could in theory be from anything etc.