this post was submitted on 29 Jan 2024
1017 points (99.1% liked)

Technology

59377 readers
4340 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] assassin_aragorn@lemmy.world 87 points 9 months ago (1 children)

still need someone knowledgeable in the loop to describe the things it needs to do, and handle exceptions

And any engineer or technician will tell you, exceptions are 80% of their job.

[–] JDubbleu@programming.dev 15 points 9 months ago (1 children)

I had to rewrite our entire scheduling system at work to use Outlook instead of Google Calendar. The guy who wrote the Google Calendar scheduling system made it so unmaintainable that it was faster to just rewrite the entire thing from scratch (1000+ line lambda function with almost 0 abstraction).

At least 90% of what I wrote is just exception handling. There's ~15 different 4xx/5xx errors that can be returned for each endpoint, but only 1 or 2 200 responses.

[–] wabafee@lemmy.world 12 points 9 months ago (2 children)

I bet in the future someone who will see your code will also think of the same. Just the nature of things.

[–] wizardbeard@lemmy.dbzer0.com 4 points 9 months ago

🎵It's the circle of homegrown-coded-solutions, and it moves us all🎵

[–] JDubbleu@programming.dev 2 points 9 months ago

This is fair, but it's at least broken up so they can selectively gut the parts of it they don't like instead of having to figure out what a 300 line method named "process" does.