this post was submitted on 02 Mar 2024
2 points (100.0% liked)

Programmer Humor

35334 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
top 12 comments
sorted by: hot top controversial new old
[–] fibojoly@sh.itjust.works 1 points 2 years ago

A few months back I crashed a db in prod. I detached it and when I tried to reattach it simply refused, saying it was corrupted or some shit.
Lucky me we have a backup solution.
Unfortunately it was being upgraded, with difficulties.
That was a long day.

[–] YtA4QCam2A9j7EfTgHrH@infosec.pub 1 points 2 years ago* (last edited 2 years ago) (2 children)

If you can fuck up a database in prod you have a systems problem caused by your boss. Getting fired for that shit would be a blessing because that company sucks ass.

[–] daq@lemmy.sdf.org 1 points 2 years ago

Small companies often allow devs access to prod DBs. It doesn't change the fact that it's a catastrophically stupid decision, but you often can't do anything about it.

And of course, when they inevitably fuck up the blame will be on the IT team for not implementing necessary restrictions.

Frequent snapshots ftmfw.

[–] fidodo@lemmy.world 1 points 2 years ago (1 children)

What if you're the one that was in charge of adding safe guards?

[–] YtA4QCam2A9j7EfTgHrH@infosec.pub 1 points 2 years ago (1 children)

Never fire someone who fucked up (again; it isn’t their fault anyways). They know more about the system than anyone. They can help fix it.

[–] raldone01@lemmy.world 2 points 2 years ago* (last edited 1 year ago)

This is the way usually but some people just don't learn from their mistakes...

[–] mikyopii@programming.dev 1 points 2 years ago

I always run my queries in a script that will automatically rollback if the number of rows changed isn't one. If I have to change multiple rows I should probably ask myself what am I doing.

[–] marcos@lemmy.world 0 points 2 years ago (1 children)

Don't you people have a development environment?

[–] nxdefiant@startrek.website 1 points 2 years ago (1 children)

The P in Prod stands for "It'll be Pfine"

[–] marcos@lemmy.world 0 points 2 years ago (1 children)

The letter you want after the P is an H.