Skip to content
Search AI Powered

Latest Stories

Programmers Share The Biggest F*** Ups They've Seen That Resulted From A Tiny Error

Make us preferred on Google

Programmers are responsible for the way a ton of stuff works - things we don't even think about! Every time you scan something at the grocery store, pump gas, or even make toast (if you've got a super fancy toaster) a programmer was behind it.


The thing is, code is really really easy to mess up. A simple typo can send the whole thing tumbling down. One Reddit user asked:

Programmers, what is the biggest fck up you've ever seen caused by a tiny mistake in the code?

Some of these are screw ups that directly effected users in a "small-scale" way like the person who accidentally flooded their place trying to auto-fill their fish tank. Some of these are massive and impacted thousands of people.

What they have in common is those tiny errors; a space bar, a misplaced character ... sometimes all it takes is one wrong keystroke to send canisters of molten hot metal flying through the air.

"Please Try Again"

A co-worker made a change to our credit card processing code on a Friday evening, didn't test it, pushed it to prod, and then went home.

He made a typo in his code that caused a runtime error on the back end. Everyone that tried to make a purchase received a generic "Couldn't process your card. Please try again." But it did process their card... it was failing at some step after. People would retry several times and their credit cards were being charged every time.

Super cluster fck on Monday morning.

- fade_00

Leave

Giphy

There was a leave application at a company I was working for, it was a nice 30k employee strength software company.

The leave application had a workflow built in. If an employee's leave wasn't approved by his manager for 3 days it would go to the next level manager and stay there for 5 days and so on..

To test some aspect of this workflow feature, the approval waiting time was reduced from x days to 3 mins. Then without reverting this test change the code was pushed to production.

The next day, the company's CEO had around 500 leave applications in his mailbox.

- dominus_selenos

The Wildcard

One of our engineers, when writing some custom scripting for a customer, made the decision to use what's called a wildcard character in the delete statements. For those who don't know, what these characters do is let you do comparisons that do not need to be an exact match, such as using "*ing"

The system would then match any value that ends in "ing". Besides the already WTF of using a wildcard when trying to delete they also did not validate that the data being supplied was present. So basically what ended up happening is the customer processed an order where this data was empty, causing the wildcard to be all by it's lonesome and matching with literally anything.

The end result was about 6 months worth of orders being deleted.

- Kirgio

Employee #1

I was on-call for a retail company when, early one morning, we had a problem where inventory couldn't be taken in any of our stores. Tracked the problem down to 25-year-old code written for the hand scanners that wasn't in source control.

Turns out, the startup code did a check to validate the database connection; the way it did this is by looking up employee #1.

She'd retired a week earlier and removed from the database the previous evening, causing everything to crash like dominoes. The company was going to replace the scanners at some point, and we had no way to build a Java version that old, so they re-added her info and added code to exclude her as a recognized employee for discounts/etc.

- cjcmd

Praying

I used to work for a company that got people (mainly Americans) online and sent out tons of CDs as ways to sell their service. There were a bunch of scripted jobs that you could use to restart servers, as our naming conventions were pretty good (so if you wanted to restart all the webproxy servers, you could run `./script webproxy*` and have all those servers restarted. Good for code upgrades or patches, or whatnot. Script worked off of a big inventory list and could restart multiple "classes" of servers in case you were doing work on an entire subsystem.

Someone ran it like so:

script webproxy *

Notice the space. The script began restarting every host everywhere. One of the VP's was in the war room trying to fix things, was offered a chair (as he was kneeling in front of a keyboard) to which he responded "No, I'm praying" and kept on working.

- faisent

Do The Robot

Giphy

During work experience, me and my friend went to the schools IT department and had been tasked with building and programming robots as well as making a presentation on how to recreate our results. They were remote controlled except they all shared the same radio channel so due to a single line of code 1 controller controlled 8 robots.

So we turned off the lights and made them dance with flashing disco lights on them.

- gaVtehchAV436

Identity Thief's Playground

I do a lot of internet screen-scraping, and was getting healthcare provider information from a large insurance site. I got to the listings of physicians and found that the parameters to see a physician's details were made up of a giant database dump of information. It had the doctor's name, office address, phone, SSN, birthday, home address ... it went on and and into tiny details. One wouldn't see it on the site, but click on the source, and you it was an identity thief's playground.

I called the insurance site immediately, but no one could get me to a web-admin or IT, so I looked up the CEO's number, and called there. I talked to an executive assistant. I told her if it wasn't fixed in a day, I would need to start calling the affected doctors.

The site was down about a day and a half later, and after a few days returned without that egregious error.

- SurlyJason

Fish Tank

I'm learning python and micropython right now.

Photo by James Harrison on Unsplash

- benign_saidbenign_said

Molten Aluminum

At long-defunct car parts manufacturer. A big robot was taking a crucible of molten aluminium and pouring it into molds. Suddenly there was this loud whine of rapidly moving servos, and it threw the crucible of, I repeat, molten aluminium through the roof.

Later I asked one of the engineers what had happened. "We lost the tacho" he said, laconically.

In more detail, they lost the signal which told the controller how far the arm was moving - loose wire I guess. So the controller decided to feed in more power to make it move. Lots more power.

Apparently you could tell the experienced people because they were the ones under the benches as soon as they heard the whine.

- thx1138a

More from Trending/best-of-reddit

Erin Brockovich
This Past Weekend with Theo Von

Erin Brockovich Perfectly Lays Out Why AI Data Centers Are 'Pushing People Too Far' In Viral Clip

Self-described "people advocate"—a term she prefers over environmental activist or consumer advocate—Erin Brockovich recently sat down with comedian Theo Von on his podcast This Past Weekend. They spoke about her now adult children, the court case and resulting film that made Brockovich a household name, and what she's done since.

About a third of the way into the hour and a half long sit down, Von noted that what made him want to connect with Brockovich was an article she wrote for her Substack, The Brockovich Report, titled, "If Data Centers Are So Great, Why Are They Being Built in Secret?" which launched her mapping initiative posted on the website Brockovich AI Data Center Reporting.

Keep ReadingShow less
Jens Spahn
Bernd von Jutrczenka/Picture Alliance via Getty Images

Gay Conservative German Politician Resigns After Welcoming Child Via Surrogacy Despite Publicly Opposing It

German conservative Jens Spahn resigned from his position as the leader of the joint CDU/CSU (Union) parliamentary group in the 21st Bundestag after it emerged he and his husband welcomed a child via surrogacy despite openly opposing it.

Per the 1990 Embryo Protection Act, surrogacy remains illegal in Germany, a position long supported by the Christian Democratic Union (CDU), which reaffirmed its opposition earlier this year. While German law allows parents to raise children born through surrogacy abroad, arranging a surrogate within Germany is punishable by up to three years in prison or a fine.

Keep ReadingShow less
Donald Trump; JD and Usha Vance
Saul Loeb/AFP via Getty Images; Anna Moneymaker/Getty Images

Trump Dragged After Posting A Photo Of JD And Usha Vance's New Baby Before They Did

President Donald Trump was criticized after he took to social media to share a photo of Vice President JD Vance and Second Lady Usha Vance's new baby boy Alec to congratulate them before the Vances could even do so themselves.

The Vance family welcomed their fourth child, Alec Neel Vance, who joins older siblings Ewan, 9, Vivek, 6, and Mirabel, 4. Trump later shared a photo showing Vivek holding his newborn brother while Mirabel looks on.

Keep ReadingShow less
Robbie Williams performs live onstage during the Robbie Williams: Britpop tour.
Andreas Rentz/Getty Images

Robbie Williams Offers Hilarious 'Apology' After Viral Clip Sparks Rumors He Was Taking Drugs During World Cup Final

Robbie Williams is putting a viral World Cup mystery to rest after viewers became convinced they had witnessed something far more scandalous than what actually happened.

During an interview with German TV ahead of the World Cup final between Spain and Argentina, a tiny white object suddenly dropped from Williams' mouth onto a magenta T-Mobile microphone.

Keep ReadingShow less
Reid Rasner
@reid.rasner/Instagram

MAGA Wyoming Candidate Dragged After Sharing Ultra-Cringey Video Of Himself Gearing Up To 'Ban Sharia Law'

Wyoming MAGA Republican House candidate Reid Rasner's social media campaign is so unhinged that Wyoming newspaper Cowboy State Daily titled an article about him "Despite His Videos, Wyoming Politicos Say Reid Rasner Campaign Is Not A Parody."

In one of his more viral videos, posted on TikTok, Rasner journeyed to Fort Collins, Colorado, to find a mosque to stand in front of in a too small camouflage vest and oversized MAGA hat to claim he was banning Sharia Law.

Keep ReadingShow less