this post was submitted on 05 May 2025
1250 points (99.5% liked)
Programmer Humor
23052 readers
1784 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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
Why do you need the checkbox then? Can't you make soit that when they list issues, the mail will be sent?
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:
Then if they toggle the "issues" checkbox, it expands to