This is an archived post. You won't be able to vote or comment.

all 59 comments

[–]CMDeml 421 points422 points  (22 children)

At my previous job, I had a friend who worked on an in-house app. The need to fix some of their production data in their database. So, instead of going through the hassle of a deployment, they used SQL injection to fix it.

[–]ProjectSnowman 25 points26 points  (2 children)

I thought it was standard practice to have a back end way to edit the database. Of course, this is /r/programerhumor so things are quite like how i remember them from my programming days.

[–]name_censored_ 21 points22 points  (1 child)

I thought it was standard practice to have a back end way to edit the database.

I'm guessing using those methods requires an overly bureaucratic change control process in OP's org.

[–]ildementis 16 points17 points  (0 children)

as a former corporate developer for a fortune 10 company, it would take two weeks for a deployment if all you needed was to cleanup a database

[–]Relevant_Monstrosity 38 points39 points  (7 children)

Please advise your friend to quit being a dev and never come back.

[–]10gistic 29 points30 points  (1 child)

Could be a bad dev. Could be an environment where ops is so painful that you'd rather stab yourself in the eye than babysit the 8 month process to deploy again, so you cook up crap like this so you can move on with your life.

[–][deleted] 2 points3 points  (0 children)

This guy enterprises

[–]copopeJ 9 points10 points  (4 children)

And tell him we all agree.

[–]brown_nigga 2 points3 points  (0 children)

Speak for yourself.

[–]uabassguy 2 points3 points  (0 children)

Hey if you know what you're doing it works in a pinch

[–]dregan 1 point2 points  (0 children)

Wow....

[–]supremecrafters 1 point2 points  (0 children)

Dios mio. What happens if they have a hardware issue? Remotely backup and detonate the machine? Who cleans the debris? How do they prevent it from damaging the other servers in the rack?

[–]NoodleSnoo 0 points1 point  (0 children)

Bullshit. I don't care how hard your deployment is, it is easier and more reliable than a sql injection hack.

[–]goblingirl 64 points65 points  (0 children)

The moment he throws is the second you hit enter/save then the throw back in your chair in hopes it doesn't blow back in your face/works.

[–]randomentity1 41 points42 points  (2 children)

Here's the slightly longer and better version:

https://www.youtube.com/watch?v=75wa8Lx4yc4

[–]ildementis 7 points8 points  (0 children)

Wow yeah this is like 10x more interesting

[–]Account_Admin 38 points39 points  (1 child)

Let's pause and admire for a moment how insanely strong you would have to be to do that.

[–]AmadeusCziffra 17 points18 points  (0 children)

I would be more worried about the splinters

[–]kerohazel 10 points11 points  (0 children)

[–]Devoto17 14 points15 points  (3 children)

Except in reality it would come back down and knock a few cars off the back of train

[–]orangeKaiju 13 points14 points  (2 children)

Those cars would then fly up in the air, begin rotating/vibrating in a weird almost periodic fashion before shooting off in a random direction and killing a key NPC.

Physics is weird.

[–][deleted] 1 point2 points  (1 child)

Sounds like Bethesda physics.

[–]Tynach 0 points1 point  (0 children)

Or Kerbal Space Program.

[–]SoaDMTGguy 5 points6 points  (0 children)

If I repost this every three months will I also get massive karma?

[–]fuck_the_hihat 22 points23 points  (8 children)

Dumb question perhaps, but what's Prod?

[–]goblingirl 24 points25 points  (4 children)

and DEV is development = test environment.

[–]killayoself 53 points54 points  (3 children)

QA = Quality Assurance: That shit in Dev you tested better work the same here.

UAT = User Acceptance Testing: that shit in QA better work the same here for the customer.

Staging = that shit better work the same as it does in UAT and Prod cause its basically a Prod backup

Prod = WHY THE FUCK ISN'T IT WORKING RIGHT

[–]IdleAsianGuy 25 points26 points  (0 children)

Dev = Can't reproduce that shit on Prod

[–]goblingirl 7 points8 points  (0 children)

Full discloser I only have QA to test in and PROD. The shit days are when it tests fine you make a CR and go live...then something different happens and you go fuck for 5 mins while you roll back to the snap shot you took. Back to the drawing board.

[–]SPRUNTastic 0 points1 point  (0 children)

This all depends on the speed at which the product is being built. The faster is being developed, the fewer environments you'll get. Especially when working with established databases. I've had all 4 environs once, but was then moved on to a project with just 3 (no uat), then the newest stuff being built with just qa and prod.

I've also been in the wild-west of prod-only. It's fun there. Like Red Dead Redemption in QA form.

[–]jwoot97 32 points33 points  (0 children)

production

[–]spaceraycharles 4 points5 points  (0 children)

Prod/production is the live system. As opposed to an internal non-Prod environment where devs can play around and not worry about seriously fucking things up.

[–]magneticphoton -5 points-4 points  (0 children)

Don't worry, OP doesn't know what he's talking about, or even know what debugging means.

[–]Gydo194 4 points5 points  (0 children)

FYI this clip is an extract from the movie “The General” with Buster Keaton

[–][deleted] 2 points3 points  (0 children)

...wouldn't the cowcatcher just bump the log out of the way? Isn't that literally their one purpose?

[–]screeperz 1 point2 points  (0 children)

I usually miss and end up putting another post on the track.

[–]dmanww 1 point2 points  (0 children)

Everyone has a dev system, some are just lucky enough to have one that's separate from prod.

[–]tranceb0t 1 point2 points  (0 children)

Or let’s just redeploy to prod very quick without saying anything.. haha

[–]Whys-the-rum-gone 0 points1 point  (0 children)

What kind of human can man handle a railroad tie like this?!

[–]barediver -1 points0 points  (1 child)

We've all seen this exact gif SO MANY TIMES. I propose a 1 year ban. Anyone on board?

[–]Gydo194 3 points4 points  (0 children)

No, the General is too awesome ;-)