this post was submitted on 14 Jan 2025
542 points (99.6% liked)

Programmer Humor

34810 readers
63 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 2 months ago (1 children)

I think it's a senior developer mistake. Even at midsized company developers should not have a direct access to production environment.

[โ€“] [email protected] 3 points 2 months ago

Email is kind of hard. There's usually only one API key to the email client, and there's no real safe way to call it. Personally over the years my approach is to have an internal library that reads what environment it is in, and then if it doesn't explicitly tell that it's in prod, it reroutes everything to safe email addresses.