this post was submitted on 05 May 2025
1244 points (99.5% liked)

Programmer Humor

23025 readers
1621 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Lv_InSaNe_vL@lemmy.world 7 points 22 hours ago (1 children)

We have an app that drivers use to file paperwork and stuff like that. We are going to start requiring them to do a vehicle inspection before each load (not CDL, so it's not required), and so I built a little form for them to use.

If there is no issue, it just saves their report to a database so we can keep record. But if there is an issue it's supposed to generate a report and send it off to the maintenance department.

While I was working on the formatting for the email, it just stopped working! I was trying to troubleshoot my code thinking I broke the SMTP send part, reading my HTML formatted email thinking I missed some syntax, working with the SMTP relay provider we are using. Nothing. Everything looked perfect. There were no errors. Reports were properly saving to the database. Just no emails.

I was forgetting to click the checkbox to mark that I had an issue ๐Ÿคฆโ€โ™‚๏ธ

Anyways, now you can't actually list issues or until you check that box haha

[โ€“] tja@sh.itjust.works 2 points 21 hours ago (1 children)

Why do you need the checkbox then? Can't you make soit that when they list issues, the mail will be sent?

[โ€“] Lv_InSaNe_vL@lemmy.world 2 points 21 hours ago* (last edited 20 hours ago)

Because they fill out the report regardless if there is an issue or not. Also, it was a requirement I was given.

I think it was to give the divers a more simplified form to fill out. Drivers tend to skew a little left on the bell curve so giving them a ton of stuff all at once means they just won't do it at all

Edit: Here's a longer explanation of what the form looks like:

  • Name: [text box]
  • Truck Number: [text box]
  • Are there issues [Boolean toggle]
  • Comments [text box]
  • Signature

Then if they toggle the "issues" checkbox, it expands to

  • What issues: [multi select list]
  • Description: [text box]
  • Pictures: [photo upload]