🚨 NEWS: Error Handling in Rust β€” Result, Option e il Simbolo ? per Codice Che Non Si Rompe

Ecco i punti chiave in breve:
πŸ’‘ Ogni sviluppatore che arriva a Rust da linguaggi con eccezioni vive lo stesso momento: scrive una funzione, chiama read_to_string, e si trova davanti un Result. Poi arriva unwrap(), l'app va in crash,...

πŸš€ LINK: https://meteoraweb.com/sviluppo-di-siti-web/error-handling-in-rust-result-option-e-il-simbolo-per-codice-che-non-si-rompe

#rust #patternMatching #errorHandling #result #option

@bbelderbos golang also includes putting a possible error return in the function signature. the typical function return then is either `val, nil` or `nil, error`. i also like it better than the `try, catch, finally` or `try, except, raise` blocks of other languages.

#GoLang #Rust #ErrorHandling

🚨 NEWS: Express.js: routing, middleware, error handling e struttura progetto β€” Guida operativa

Ecco i punti chiave in breve:
πŸ’‘ Hai un server Node.js che cresce e il file index.js Γ¨ diventato un mostro da 500 righe. Le rotte si accavallano, i middleware si pestano i piedi, e quando arriva un errore 500 lo scopri...

πŸš€ LINK: https://meteoraweb.com/analisi-dei-dati-e-metriche/expressjs-routing-middleware-error-handling-e-struttura-progetto-guida-operativa

#backend #javascript #node.js #guidaOperativa #errorHandling

🚨 NEWS: Promises, async/await e Error Handling in JavaScript: Guida Operativa per Codice Asincrono Pulito

Ecco i punti chiave in breve:
πŸ’‘ Il tuo codice JavaScript Γ¨ una piramide di callback? Ogni chiamata AJAX aggiunge un livello di indentazione, e quando arrivi al terzo livello non capisci piΓΉ nulla? Lo abbiamo visto decine di volte ne...

πŸš€ LINK: https://meteoraweb.com/analisi-dei-dati-e-metriche/promises-asyncawait-e-error-handling-in-javascript-guida-operativa-per-codice-asincrono-pulito

#javascript #eS6 #promises #async/await #errorHandling

Error handling is a team sport, not a copywriter problem. The quality of an error message depends entirely on what the system actually knows at the moment of failure. Engineers, PMs, and writers all own this. This Wix UX piece breaks down where the responsibility actually sits.

https://wix-ux.com/when-life-gives-you-lemons-write-better-error-messages-46c5223e1a2f

#uxwriting #uxdesign #errorhandling (https://uxbrad.com/activity/20260526/090000/)

When life gives you lemons, write better error messages

When it comes to error handling, it truly is a team sport

Medium
In today's thrilling saga of Python programming, we delve into the gripping world of... getting a 403 Forbidden error. πŸš«πŸ”’ Apparently, reading emails is now a top-secret mission requiring classified clearance! πŸ•΅οΈβ€β™‚οΈβœ¨
https://utcc.utoronto.ca/~cks/space/blog/python/EmailPackagesNotes #PythonProgramming #403Forbidden #ErrorHandling #EmailSecurity #HackerNews #TechHumor #HackerNews #ngated
Chris's Wiki :: blog/python/EmailPackagesNotes

When life gives you lemons, write better error messages

When it comes to error handling, it truly is a team sport

Medium
🐍✨ Ah, the epic #saga of snake oil: from promising cure-alls to... wait, is this an error message or an avant-garde art piece? #JavaScript, the true hero of this tale, valiantly attempts to untangle the digital spaghetti. πŸπŸ”§
https://www.historytoday.com/archive/history-matters/rise-and-fall-snake-oil #snakeoil #digitalart #errorhandling #webdevelopment #HackerNews #ngated
The Rise and Fall of Snake Oil

Over the course of the 19th century snake oil transformed from folk remedy, to industrial medicine, to notorious fake.

History Today

Last week, I went down a huge rabbit hole and tried to come up with a mathematical generalization of dealing with errors in circuits.

I am not a mathematician, but I tried to come up with a proof as rigorous as possible. However, other eyes are very much appreciated. I'd be happy about a boost and/or feedback.

And of course, I'd be glad if this was useful to anyone else :)

https://www.maxgenson.de/blog/demystifying-tolerances/

#electricalengineering #errorhandling #math #calculus #mathproblems #feedback #helpwanted

Demystifying Electrical Component Tolerances

Did you ever wonder how the tolerances of resistors influence a voltage divider? What happens if you put two components in parallel β€” does the effective tolerance increase or decrease? I had some very wrong assumptions about the answers to these two questions and am glad I looked deeper in to the topic. Some very suprising, yet satisfying and reassuring insights into error boundaries and propagation lie ahead. So buckle up and get ready for some math! (I enabled LaTeX \LaTeX LATE​X on my blog for this, hihi)

maxgenson.de
🎩✨ Ah, the #utopia where borrow-checking without type-checking is feasible! A dreamland where dynamic typing is sold as a feature and "useful error messages" are apparently the new nirvana. πŸš€πŸ˜ Let's marvel at this miraculous toy language that's less expressive than #Rust but more expressive than, well, absolutely nothing.
https://www.scattered-thoughts.net/writing/borrow-checking-without-type-checking/ #dynamictyping #errorhandling #programminglanguages #HackerNews #ngated
Borrow-checking without type-checking