r/AskReddit • • Feb 21 '17

Coders of Reddit: What's an example of really shitty coding you know of in a product or service that the general public uses?

29k Upvotes

14k comments sorted by

7.2k

u/diederich Feb 22 '17

If you've gone into a WalMart electronics department and listened to CD tracks (by scanning the CD) or watched movie clips (by scanning the DVD), you've been the beneficiary of some really shitty code I wrote in 1997. (I left WalMart in 2009, and the last time I spoke to someone in the know, in around 2014 or so, they were still using the system I made.)

The code I wrote managed the distribution of all of the audio and video bits that people viewed on demand via kiosks in electronics.

This content needed to be distributed to all 3000 (at the times) stores in 1997 every week. At the time, we only had dedicated 56kbit frame relay connections to each store, and the media files were over 2 gigabytes, so it was just too much to push through that way.

So a one-way satellite system was installed. Simply put, it offered good one-way bandwidth to all of the stores, via multicast. But this was no normal network connection. It was a proprietary multicast protocol.

Anyway, I won't go into the gory details, but this process was managed by hand in an Excel spreadsheet, and was very lossy and inaccurate to say the least. But it was discovered that electronic departments with updated content had a big up-tick in sales. This was, of course, a Big Damn Deal, so the rollout had to happen, it had to happen fast, and it had to happen accurately.

So I threw together a system that automated all of that....fast. Like, over a weekend. The CVS commits were in the middle of the night, commit text was 'wip', and it was all happening live, against the actual satellite dish. We had a 4 meter dish behind our main datacenter to talk to the bird.

Anyway, it's a steaming pile of shit. It used as a database, if I recall correct, MySQL 3.1.23(?) beta. This old version of MySQL didn't have transactions...hell, it didn't even have the fancy MyISAM table type. All it had was ISAM, which didn't let you put an index on a NULLable field.

But, remarkably, the pile of shit worked. And it worked very, very reliably.

Being a network engineer, this really wasn't the type of thing I would typically work on, so another small team was formed to manage this whole process. This other team took over, but they were never given a real programmer.

My very wise director at the time kept me firewalled off from that project for the rest of my years at WalMart, which was very good for me.

So as of 2014, they were still using it, as a totally black box application. I made a simple web UI that allowed basic editing of the various records.

When the host MySQL was on crashed, it came back up with some table corruption, as one would expect. The fix the team came up with was to write down all of the data elements of the corrupt record, the record before it and the record after it. They would then delete those three records, and then re-add them.

Good times!

1.8k

u/[deleted] Feb 22 '17

That's very interesting. I was obligated to attend a lecture where Walmart's CTO spoke about this exact thing. The way she presented it, it was like a major breakthrough at the time (as part of the Walmart = technological pioneers image she was presenting).

They still hadn't completely replaced it at that time, either late 2015 or early 2016, but she was talking about how it was a big problem for the company!

→ More replies (98)

131

u/[deleted] Feb 22 '17

Time to print a bar code with some sqlinjection

→ More replies (5)
→ More replies (160)

2.9k

u/the_goose_says Feb 22 '17

I do integrations for about a dozen marketplaces, and most of them are awful, but by far the worst is the Amazon MWS API. Their servers fail more often than I change underwear. I've received every HTTP status code except 418. You can break the throttle limits by sneezing. Their documentation is as useful as a chocolate teapot.

Just an example. To get our "Amazon Custom" customization, we have to submit for a report, get the report, we parse that massive text string for the line with the order number we need that has a URL that has a zip that has a json that points to an svg that contains the customization we need. Here's an illustration that demonstrates the process.

http://xroads.virginia.edu/~ug00/3on1/tobaccoads/images/scratch2.gif

1.3k

u/TheSanityInspector Feb 22 '17

"...as useful as a chocolate teapot". Stealin' that one!

→ More replies (72)

678

u/thefromanguard Feb 22 '17

418 is the best: "I'm a teapot"

→ More replies (20)

43

u/TheBeginningEnd Feb 22 '17

That's an issue endemic to Amazon in general. I've done some work developing on their FireOS (tablets, and TV devices). Never-mind the fact that nothing is documented, and they change things regularly and don't tell anyone which breaks things; you should see what they did to android to turn it into FireOS. Ripped apart and broke all sorts of features, some of which for no apparent reason.

They even at one stage (probably still do) had it documented that because of the way they screwed up FireOS's handling of video streaming and access to the hardware GPU, that apps won't properly release the GPU access when they stop or go to background and subsequently the solution they thought was the best was for developers to add code into the onStop or onPause methods that hard kill the apps process as that will ensure access is released.

→ More replies (7)

24

u/MsPenguinette Feb 22 '17

It's when you get 7xx and 8xx response codes the you know you really messed up.

https://github.com/joho/7XX-rfc

→ More replies (106)

255

u/EightsOfClubs Feb 22 '17

I write software for spacecraft. Manned spacecraft. Prior to this, I wrote software for unmanned spacecraft.

There is an absurd amount of spaghetti in my life.

25

u/TheSanityInspector Feb 22 '17

But somebody up-thread said that you space & aeronautic guys were the creme de la creme!

→ More replies (4)

62

u/[deleted] Feb 22 '17

Apollo code was worse, guaranteed.

Not because it was bad code, but because the rocket's guidance computer was programmed physically, by threading a large mass of wires through a bunch of ferrite cores. Literally spaghetti with meatballs.

→ More replies (4)
→ More replies (1)

3.3k

u/HapticSloughton Feb 22 '17

What about the Twitter app?

I had a clunky old Android phone and I found that if I used the app, my phone would slow to a crawl, often to the point of needing to pull the battery. However, if I just logged in on the website via the phone's browser, it worked fine.

93

u/TheSanityInspector Feb 22 '17

Same here. I tend to blame the old version of Android instead of Twitter app, but boy does it crash frequently!

4.2k

u/disposable-name Feb 22 '17

Fucking Facebook's official app is 255mb.

→ More replies (330)
→ More replies (60)

2.9k

u/doublekid Feb 21 '17

I'm a software and some things that come to mind are...

Most local government service websites (slow, poorly maintained)

Healthcare provider websites. - I've actually worked in this industry and holy hell is the technology archaic.

6.2k

u/Bad_brahmin Feb 21 '17

Hi Software.

327

u/TheSanityInspector Feb 21 '17

Technically, we're all "software"....

567

u/reaper1721 Feb 21 '17

Not when your mum's around

→ More replies (5)
→ More replies (6)
→ More replies (52)
→ More replies (141)

2.2k

u/[deleted] Feb 22 '17

Blackboard - the steaming pile of shit used in many schools and universities. As of a few years ago at least, if multiple markers had a class results entry page open and one pressed 'save', when others pressed 'save' it would re-write the old results (i.e. zeroes) back over the new ones just entered.

This is an undergraduate-level data synchronisation problem, and not really an issue for a class of 30 kids and one teacher, but in a massive first year university course with 1000 students and 20 tutors? Not fun.

88

u/TheStig1214 Feb 22 '17

My school uses Blackboard now, and it's actually an upgrade from the "Angel" site we were using. Blackboard has to be one of the least user friendly and least well though out website designs I've ever seen. I've been using it for 4 years and still have no idea how to do much of anything beyond get to my classes' individual pages.

→ More replies (8)

52

u/madramor Feb 22 '17

Related - Turnitin is garbage too.

I love (at my uni anyway) that students can change their name in their profile - all these comments in the discussion boards and I'm wondering who the fuck are these people

→ More replies (11)

50

u/magnue Feb 22 '17

Any website where if you click a link in one tab, it reloads all the other tabs on that website to the same page, is just terrible.

→ More replies (1)
→ More replies (55)

1.3k

u/tasinet Feb 22 '17

Reddit search. You're better off asking Jeeves

91

u/[deleted] Feb 22 '17

Tbf this issue is not just limited to Reddit, barring a few MAJOR websites (Amazon, YouTube, eBay) all in-site searching sucks. IMO the worst offenders are vBulletin forums; although most of them have implemented Google Custom Search, which you would assume helps, you can still never find what you are looking for. I frequent a few boating/sailing/yachting vBulletin forums, they have tons of useful info, DIYs, troubleshooting guides, etc.. But unless I remember to bookmark the threads, it can be nearly impossible to find the same thread twice without embarking on a ~hour long search.

Also fuck Facebook. You want to find (stalk) someone but aren't 100% sure of their full name but are confident of their current city and university? Oh look at that, a big white text box saying "Search Facebook", naturally you type in "John, NYC, Harvard" look at the results and...fuck all. Instead you have to click on the creepy American-Gothic-looking-icon -> select "Find Friends" -> find the small grayed-out search filter box titled "Search for Friends" -> finally enter the rabbit hole. You would think that a company whose core customer-facing business is connecting people, would make this easier to do. But, nah.

→ More replies (1)
→ More replies (14)

1.3k

u/[deleted] Feb 22 '17

Adobe Bridge for Macintosh used to have a complete copy of the Opera Browser hidden inside. You didn't have to dig for it either it was in the package contents.

422

u/justjanne Feb 22 '17

Look at the new Minecraft Launcher or the Spotify app. Both have a full Chromium in them.

Yay for electron/node-webkit/CEF apps

→ More replies (74)
→ More replies (14)

224

u/_user_name__ Feb 22 '17

Anybody ever seen the realtek website? You're a technology company, for Christ's sake!

For the lazy

Best viewed at 800x600 with IE 6.0 or Netscape 7.02 or Mozilla Firefox 1.0.6 or higher. ©2017 Realtek Semiconductor Corp

42

u/ffxivthrowaway03 Feb 22 '17

Their actual software isn't any better. Fucking realtek drivers are such garbage.

→ More replies (1)

23

u/Darius2652 Feb 22 '17

Notice how their main banner resolution is 2310x576.

The page is in a table locked at 770px wide.

→ More replies (12)

28k

u/HyperdeathGoatGod Feb 22 '17

Pearson had an online ebook that cost $90, except students could use it free by changing the url from =false to =true.

College textbook companies are a massive joke.

4.3k

u/reverendsteveii Feb 22 '17

As a security nerd, anytime I see variables in a url I just have to play with them. Anything with a value of false, true, 1 or 0 in particular

→ More replies (319)

774

u/TheOtherDanielFromSL Feb 22 '17

They also have software that is AWFUL.

They had some software we needed to use - painful describes the installation. A joke describes everything else.

Then... the users actually get used to it, and get upset when we try to get them to use a far superior product because it's different.

→ More replies (36)
→ More replies (692)

3.1k

u/NiceLake Feb 22 '17

The ACH system, which handles pretty much all bank-to-bank transfers and vendor-to-bank transfers in the US runs on an archaic system where companies who want to pull or push money to an account literally drop a file on an SFTP server belonging to the bank over the internet. Essentially, anyone with access to this server could drop files requesting bank transfers of almost any amount to any account, and the ACH system would process them. Granted, there are protections behind access to the server but I was pretty shocked to learn that something so important doesn't use a more sophisticated system.

These transactions are also handled in large batches, which is why it takes so long to move money over the system. There is talk of making instantaneous and secure transfers possible and a lot of potential systems suggested to replace the aging ACH, but there really isn't the financial incentive to make it happen.

Some info for those interested about this system: http://engineering.gusto.com/how-ach-works-a-developer-perspective-part-1/

And an example file format: http://content.pncmc.com/live/pnc/corporate/treasury-management/ach-conversion/ACH-File-Specifications.pdf

94

u/Chrononi Feb 22 '17

this blows my mind. i come from a 3rd world country and my transactions over there are instantaneous. Meanwhile, here in the almighty USA i always have to wait for a deposit to be done. And i've never ever had to print a check in my life until i got here. who the f uses checks in 2017.

→ More replies (64)

61

u/donjulioanejo Feb 22 '17

I work in fintech, and SFTP is a lot more secure than you give it credit, especially if you take the time to do it properly. I.e. even just IP whitelisting would already make it very difficult for hackers to do something, as they'd need to compromise whitelisted servers first.

It's also very scalable. You can have one scipt/program pump out an XML file with all the payment details, and another one upload it to the bank.

It's fine to make a few hundred or even a thousand API calls, but what if you're a major company that's sending paycheques to 50,000 employees? A lot more stuff is likely to go wrong if you're doing it via an API as opposed to just dropping in an SFTP file, which can be also be recovered and reprocessed by either side at will.

Finally, many payment processors embed SFTP protocol directly into their application, so you don't even need to bother with uploading files to a generic dropbox.

→ More replies (17)
→ More replies (377)

179

u/BJosephD Feb 22 '17

Oracle software, use it daily. Patches for patches between software.

→ More replies (10)

2.7k

u/demisemihemiwit Feb 22 '17 edited Feb 22 '17

The reason there is no Windows 9 is because there's tons of legacy code in windows that tests for Windows 95 or 98 by checking if the version string contains "Windows 9".

 

Edit: Apparently, the hack was not from MS, but from third-party software that MS didn't want to break. Here's potential source(pcworld). It includes links to examples. That said, I don't have enough time or knowledge to completely validate them. Honestly, it made complete sense to me, so I wasn't skeptical about it.

1.0k

u/squrr1 Feb 22 '17

Mac OS X had a similar issue when 10.10 came out. A lot of legacy apps were checking for a compatible OS with comparisons like "if osVersion > 10.8" Guess what is greater than 10.8? 10.9. Guess what isn't? 10.10.

→ More replies (80)

212

u/TheCookieMonster Feb 22 '17 edited Feb 22 '17

because there's tons of legacy code in windows

Just to be clear, it wasn't code in Windows that broke, it was code in poorly written 3rd-party programs that ran on Windows.

And even the 3rd party apps weren't always to blame because the bad code was in frameworks and libraries they used. Microsoft didn't want to break legacy apps.

→ More replies (7)

35

u/Jestar342 Feb 22 '17

No, not tons of legacy code in windows, but tons of legacy code out in the wild. There is fuck all within windows that checks for "windows 9".

→ More replies (74)

1.5k

u/farmer0929 Feb 22 '17 edited Feb 22 '17

Any time you are filling out a form on a mobile device and you get a standard keyboard for a numeric only input. This drives me insane! Especially since it is basically less than one line of code to specify the keyboard type.

Edit: I have been made aware of the "," as a decimal point in some areas today.

https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html

This does create a bit of a problem, but I believe it could be solved with a region specific input mask.

644

u/Khord Feb 22 '17 edited Feb 22 '17

Or when they have an email/username field that auto-capitalizes the first letter. Or even worse, a password field doing the same - what the hell.

Edit: Oh and even even worse, auto-correct, as someone pointed out below.

→ More replies (21)
→ More replies (71)

3.2k

u/EternalJanus Feb 22 '17

Anything not written by me in the past six months.

> Looks at some code. <
"What neanderthal wrote this garbage!"
> Looks at commit history: /u/EternalJanus <
"Ahh, I see what I was doing there. Pure genius!"

1.1k

u/mathematical Feb 22 '17

Pretty much my life at work.

  1. Client wants X.
  2. Coworker asks if anyone has code to do X.
  3. I email saying I've got just the thing and it's ready to implement.
  4. I take a look at code I wrote a year ago to do X.
  5. Contemplate deleting TFS/ChangeControl entries, insta-quitting, or committing suicide to hide terrible coding practices.

The funny thing is, I'm certain that the code I'm writing this week that makes me feel like a problem-solving rockstar, will induce the same feelings in 6-8 months.

→ More replies (41)

34

u/MondayMonkey1 Feb 22 '17

Always write code as if the person who works on it in 6 months is a serial murderer who knows where you live. In the worst circumstances, that person is you.

→ More replies (1)

44

u/vicarofyanks Feb 22 '17

Everyone will love how clever this descriptive, 6 lines of code looks as a single line jammed edge to edge!

-Me in dumber days

→ More replies (10)
→ More replies (18)

10k

u/BoxedChickenPotPi Feb 22 '17

Government websites in general. It costs a ton to revamp them and the benefits are usually minimal.

1.8k

u/[deleted] Feb 22 '17

I can provide insight to this:

Gov developers (especially state level or lower) are drastically underpaid for their field. This means true talent isn't easily attracted. Government benefits aren't nearly as good as their private industry counter parts (at least in the software dev field).

This means you have a bunch of lower paid people, who are severely overworked (15+ applications per developer is the norm) that can't attract new help.

This, combined with budget constraints mean that people are simply coding enough to get something working until they have to move on to the next project.

→ More replies (261)

300

u/Spyder638 Feb 22 '17

Gov.uk is fucking brilliant though. It's actually used to teach design practices with large amounts of data in my class.

→ More replies (35)

37

u/nolo_me Feb 22 '17

In quite thankful for the gov.uk project.

→ More replies (3)

83

u/IfWishezWereFishez Feb 22 '17

Getting them revamped involves a massive amount of bureaucracy. Someone at the top of the org/agency sets the requirements, we meet the requirements, turns out that's not what they need at all. So someone a little lower down who has actually done the work semi-recently sets new requirements, we meet them, turns out that's not what they need, either. Finally someone who actually does the groundwork sets new requirements, but by then the project is almost over so we have to prioritize what we can.

And that's actually sort of the idealized work flow with the government because usually the person in charge of requirements changes every few months or so as the project gets passed around.

I'm talking about very basic requirements, too, like permissions.

It is massively inefficient.

→ More replies (18)
→ More replies (776)

6.7k

u/[deleted] Feb 21 '17

Facebook on android

4.0k

u/Lostsonofpluto Feb 22 '17

The fact that it crashes when it's not even (visibly) open is proof enough of this

→ More replies (133)

112

u/[deleted] Feb 22 '17

What we have now is miles better than what we had before.

I remember when Android Facebook was just a really crappy app that anyone with an hour of free time could have coded. And there's iOS with their full fledged app right over there! It got to the point where Zuckerberg started making the devs use Android phones to see how shitty the app was first hand and fix it.

Also, back when the app was ridiculously shitty in the early days of Android, I believe the app was actually contracted out to a third party. Which made things even worse.

→ More replies (12)
→ More replies (155)

17k

u/ReconSnipes Feb 22 '17

MyMathLab.

3.1k

u/the_Demongod Feb 22 '17 edited Feb 22 '17

Whoever designed MyMathLab and WebAssign need to be publicly flogged with a cat o' nine tails.

Edit: some have been saying WebAssign works fine for them; my understanding of it is that the course has a lot of control over the setup and the default one is just awful in my experience. I'll get 50 problems in one homework and they all take 5x longer than they should because the only feedback it gives you is "right" or, more frequently, "wrong!" and I always end up spending a ton more time scouring my work for mistakes without any idea how far off I am or what I did wrong. Oh, and the error was because I didn't put the arrow over a vector variable.

→ More replies (248)

681

u/bowawaythrow Feb 22 '17 edited Feb 22 '17

Cries and screenshots/copy and pastes responses before submitting them for the 1,427th time.

→ More replies (3)

1.4k

u/[deleted] Feb 22 '17

MyMathLab made me swtich my major.

I always did great in math classes. And my first semester at Uni I aced the math class. But then they decided to switch to MyMathLab and I actually failed the second semester. Fuck that shit, it never worked, it never accepted proper answers, and it was a chore to even get running.

→ More replies (154)

32

u/[deleted] Feb 22 '17

MyMathLab always at least doubled the amount of time it took me to finish my homework. It was such a pain in the ass. I did like the website though because it could help teach you if you didn't understand the problem.

I'm about to graduate with a bachelors degree in math though and I haven't used MyMathLab since my senior year of high school dual enrollment classes thankfully

→ More replies (3)
→ More replies (549)

2.1k

u/TseehnMarhn Feb 22 '17

Eve Online. I can't say how many times some feature couldn't be added, or had to be done awkwardly, because ~legacy code~.

They've gone through many devs over the years, and I'm pretty sure they don't know exactly how some code works anymore.

CCP_round() is actually a running joke in the community.

572

u/Zonetr00per Feb 22 '17

Ahahahaha, yes.

For some context for those unfamiliar: The core of the game was basically coded by a bunch of drunk Icelanders in a warehouse who never expected it to really grow as big as it did, and as a result never documented anything.

This leads to some occasionally bizarre things - like, for instance, certain ingame items had been placing two separate calls to the server when they were used. This was, of course, immediately corrected when it was discovered.

They've certainly gotten far better at managing it as of late, but it's still a problem that sometimes rears its head.

→ More replies (78)

693

u/[deleted] Feb 22 '17

Don't forget the whole boot.ini clusterfuck.

The rule used to be always set a skill with a long train time before any major updates because the servers would most likely be down for days and you would lose valuable SP.

That said I still love the damn game, even if I am not currently subbed anymore.

They have also recently been cutting into that legacy code. Mostly by throwing it all away. POS are being removed etc. etc.

→ More replies (63)
→ More replies (86)

10k

u/prairir001 Feb 22 '17

Skype. Just all of. It's buggy, it's slow, it's insecure, it's some of the worst code I've ever seen.

1.2k

u/AsianBarMitzvah Feb 22 '17

move to discord now, i love discord

→ More replies (166)
→ More replies (500)

661

u/uncleSpaghetti Feb 22 '17

I worked for Adobe briefly and apparently Photoshop is a total cluster fuck. It's got code in it from the 90's and is so tough to work on it's nearly impossible to optimize for performance.

195

u/bumblebritches57 Feb 22 '17

I mean, yeah, it's Photoshop of course it's a clusterfuck lol.

They had to rewrite it for cocoa at the last minute, and have been shoving nothing but features in it for the last 25 years.

→ More replies (4)

42

u/WannaWaffle Feb 22 '17

Ha Ha! Code from the 90s. That's new fangled baby code. Left my job a few years back, but was still dealing with code from the mid 70s... 90s... that's practically new code.

(not related, but one of the last systems I worked on was about a million lines of code, various languages, but the worst was the Java because the developers thought it was self documenting and there were no comments but lots of variables with names like a, and b, and i, and j. )

→ More replies (9)
→ More replies (43)

1.9k

u/fallthrowaway234 Feb 22 '17

Ha, got one for this.
EVE online, how bad is the coding you ask? It is so bad that in spite of the fact that the same people own it, they can't change it. They tried for years to change it causing massive outages. A dev was talking about it one time. He said we went through the bit we wanted to change and every time we made a change something unrelated would break.
The figured out that it would be cheaper to start from scratch.
But as either would bankrupt the company they ended up introducing totally new things and testing the hell out of them before letting them hit production.

476

u/Eve_Asher Feb 22 '17

Here's the story about the POS code of Eve. This is pieced together from years of chatting with devs, little bits dropped in interviews, etc. It's hard to know exactly where the truth and legend intersect.

In Eve there are structures known as Player Owned Starbases (POS). POS are very important structures used for a number of operations (moving ships in relative safety, moon mining, reacting moon minerals, building ships and parts of ships, many other things). The POS code was mostly written by one programmer. This programmer ended up writing over 1.5 million lines of code. He later gets killed in an auto accident.

So now they have one very important system that touches on many vital parts of Eve. The dev is gone. The other devs go in to look at the code and try to figure out what to do with it. They find 1.5 million lines of code without one.single.comment. The entire thing was written by one guy who knew everything and explained nothing.

So over the last ten years the Eve devs have tried to touch the POS code as little as possible. It's extremely easy to break, for reasons undiscernible and vexing.

Over the years the Eve devs have wanted to fix the pos code so they could change things easily. Eventually they just gave up on the idea. Eve introduced a new structure last year called citadels. Citadels were brand new structures coded from the ground up. They will eventually take over all the functions of the current POS, and then, eventually - POS will be turned off.

However there is a rumour going around that the developers have already tried this on some test servers and when they did that all kinds of weird things happened, computer controlled enemies (rats in Eve parlance) started not dealing damage. Why? Because they used the POS code to do damage calculations of course. So, slowly, the POS code in Eve is being phased out, and eventually 1.5 million lines of uncommented vexing, inscrutable code will disappear, more than a decade after its designer passed on. His final legacy was the power of job security reaching beyond the grave.

→ More replies (47)

42

u/CrossedSemantical Feb 22 '17

EVE online has had a few issues. My favorite was when the replaced the system's boot.ini file with their own. If I remember correctly, they had their own boot.ini in the program's directory structure, and instead of replacing that one, they replaced the root one. Oops. I still have no idea how that got through QA.

→ More replies (20)

28

u/TheMadmanAndre Feb 22 '17

EvE Online's code is in terms of software about as close as you can get to a massive raging dumpster fire inside the ruined reactor of Chernobyl. It's entirely plausible that at some point a Dev made a pact with some eldritch horror from a higher plane of existence, and that might explain how it still functions.

→ More replies (2)

53

u/[deleted] Feb 22 '17

Was EVE the game that had an update which irreparably fucked with player's system files to the extent that they had to reinstall Windows?

→ More replies (9)
→ More replies (196)

1.9k

u/Rishloos Feb 22 '17

Any sites that use screen size to force the mobile version of their site when someone visits it from a phone or other mobile device. So "request desktop version" doesn't work as a result. Brownie points if the mobile version of the site is super watered-down and key aspects of the desktop site are missing.

Screw you, Rotten Tomatoes and your ilk.

858

u/ClubMeSoftly Feb 22 '17

Or when you're trying to google search something, and instead of the specific page you want showing up, it "detects" that you're on a mobile platform, and redirects to the main page

→ More replies (43)

54

u/seattle-dad Feb 22 '17

I think the way you're describing this might be causing some confusion. There are mobile specific sites, that actually redirect when detecting the User Agent, not the screen size. This redirect is usually to a mobile specific site that doesn't share the same code base as the desktop version. This makes it difficult to have a consistent user experience and also makes it more costly to maintain.

This shouldn't be confused with a responsive site, which does use the browser size to switch element sizes based off of breakpoints defined with media queries in CSS. Responsive sites are considered the best practice by today's standards. When done right, the experience is consistent with the desktop version. You guessed it, it's more cost effective to do things this way.

There was a big push over the past ~5 years to migrate over to a responsive site, or do things "mobile first". It's definitely a smart choice, but it can easily be executed poorly.

→ More replies (3)
→ More replies (78)

1.3k

u/the320x200 Feb 22 '17 edited Feb 22 '17

Most of these aren't actually coding examples...

I saw this once in a well known, super expensive software application I'm not going to name to protect the stupid.

  • int a;
  • int b;
  • int* addr = &a;
  • *addr = 1234; // store in a
  • addr++;
  • *addr = 1234; // store in b

Complete, mind-blowing hackery. Only works if the compiler happens to allocate a and b back to back, otherwise crashes.

This is like seeing a car parked in a parking spot, closing your eyes and pulling in next to the car completely blind, assuming there is also a parking spot there too. Often times there is, many times there is not...

180

u/[deleted] Feb 22 '17

What's the benefit to doing this? Why not just assign the value directly to a and b?

→ More replies (53)

38

u/Alborak2 Feb 22 '17

Hooray undefined behavior. This is why you run unit tests with full warnings AND optimizations on. (Let alone have meaningful code review).

I once had someone try to compare strings using ==, and claimed it worked. It did - because the value of both sides were always string literals and the compiler was de-duping strings so they always had the same pointer - The coder in question had no idea why it was working. It would have failed in production, but the tests passed.

→ More replies (16)

27

u/reverendsteveii Feb 22 '17

Not only can I not understand how this would ever work two times in a row, I can't imagine a context where it's better than just directly assigning your variables. It takes 2 lines of code that will always work and turns it into 6 lines that only ever work by accident. That's so dumb it's almost magic. Instead of protecting the stupid, please tell us what this is to protect us from using it.

→ More replies (2)
→ More replies (179)

22k

u/bizitmap Feb 21 '17 edited Feb 22 '17

Snapchat doesn't properly call the camera's video feed, instead it just records the screen. This significantly limits the options for video resolution and quality.

edit: to people asking "isnt that to save data?" It would be better to fully grab the camera functionality, allow adjustment of exposure and such, grab a NICE picture, then decrease the resolution on that. Also yes, I've heard that recent versions fixed this after Google cockslapped them about over the Pixel. But it's recent.

3.1k

u/IamEclipse Feb 21 '17 edited Feb 22 '17

That's why snapchat always looks super shitty on my G4's camera, it's been bugging me since I got the phone

Took 2 pics of my shelf, the first (top) with my phones camera on auto mode, the second (bottom) on snapchat, just so you can see what OP means

As you can see, there's a lot of grain on the snapchat image, it's atrocious. The image is also a lot darker becuase of this.

Also, try zooming in, the stock photo is pretty detailed until you get right up in there, the snapchat one? The grain just becomes unbearable.

Snapchat also seems to apply weird colours to everything according to the lighting, see below

I'm gonna take some more odd pictures to show you guys even more of this shit, and attempt to make witty remakes about them, becuase it's 2am, I can't sleep, and I have nothing better to do.

Again, top picture is always my phone camera set to AUTO.

Bottom picture is snapchat.

Here's some dying flowers, they remind me of my soul

My Gamecube, the graphics on this thing look better than the pictures snapchat take

My wallpaper, the blocks are about the size of the pixels in the second pic

Here's some water, I need to hydrate goddammit

I was eating grapes earlier, helped me out in the long run

More of my desk (yes I'm watching Superbad)

Decorative towels, nope, I'm not shitting you with this one

Let there be light

I almost forgot about snapchat s purpose

TL;DR: Snapchat is shit at taking decent quality photos on Android

I'm going to bed now, this is irrelevant but I've been posting pictures of towels, grapes and fucking water for the last hour soo...

→ More replies (250)

106

u/tyler_shaw24 Feb 22 '17

I believe Snapchat actually uses the camera API now, at least the beta does.

→ More replies (8)
→ More replies (392)

193

u/[deleted] Feb 22 '17

OpenSSL

It provides the TLS (HTTPS) and cryptographic capabilities for huge proportion of websites, operating systems and applications.

Functionally it works great. But the code quality is pretty rough by modern standards (it is, at least consistent). Major defects and security vulnerabilities are released every couple of months. Some of them have been present for more than a decade.

Up until the last couple of years the project was barely funded and was largely maintained by only a handful of volunteers.

31

u/Kanuktukistan Feb 22 '17

By handful, you mean two dudes.

→ More replies (3)
→ More replies (14)

7.7k

u/[deleted] Feb 21 '17

Itunes. Especially the windows version.

4.7k

u/bizitmap Feb 21 '17

iTunes on Windows contains a significant chunk of OS X's window management code, instead of using the functions Windows offers for the same tasks.

This results in it eating up a bunch of RAM it didn't need to.

→ More replies (168)

230

u/phthophth Feb 21 '17

Something I hated in the Walter Isaacson biography of Steve Jobs was in the part about iTunes. Isaacson claims that Jobs found these brilliant software developers who singlehandedly invented the digital music application. In fact, SoundJam was a hopeless piece of shit with a terrible interface. In fact, Jobs went with SoundJam after approaching the developers of the vastly superior Audion. Why didn't Audion join Apple? I'll let Cabel Sasser explain. It's a good story:

https://panic.com/extras/audionstory/

edit: I was a fanatical Audion user. I still miss it. It had features still not found in iTunes.

→ More replies (21)
→ More replies (553)

938

u/SeasonofMist Feb 22 '17

In all honesty everything. It's all paper clips and duct tape. Sometimes you find a piece of code that is documented well and is well done. But it is rare at least by the time I get to it. I notice stuff like mobile apps junking up when I'm using an Android, sites that ask for credit card info that just aren't all that secure, and just exceptions and back doors used to hide errors.

82

u/JBHUTT09 Feb 22 '17

paper clips and duct tape

I like describing the systems I've inherited as "old gum and used band-aids". Because it conveys not only the flimsiness of it, but also the disgust I experience when I have to touch it.

→ More replies (1)
→ More replies (46)

8.2k

u/athaliah Feb 21 '17

Any site that only works with Internet Explorer. WHY. Why must their code be so bad that it only works with IE?

3.7k

u/monty845 Feb 22 '17

The worst are the ones that actually work fine in other browsers, but have code to detect and try to block them...

→ More replies (240)

377

u/[deleted] Feb 22 '17

This is a really annoying thing in South Korea. Many government websites only work in IE.

→ More replies (58)
→ More replies (335)

235

u/Next_Yngwie Feb 22 '17

Not used by the public really but my the online textbook and homework problems for my current math class are graded based on completion. However, you have to complete everything 100% correctly to get any credit and often the answers aren't so straight forward so you have to do a lot of trial and error to figure out what exactly the computer wants.

However, this is true with a lot of online math software. The real problem with this one is that when there is an error, the idiot(s) who coded it required that the entire page be updated to fix ANY error. So if ONE of the problems has ONE small thing off, you can't complete it 100%. So you have to erase all your progress and do it all again to get any credit.

23

u/[deleted] Feb 22 '17

Is this Blackboard? I'm taking Level 3 spanish at my college and we have assignments nearly hundred problems long and sometimes the answers for the key are literally WRONG and it erases all your work for one mostake. Annoying as fuck.

→ More replies (1)
→ More replies (7)

650

u/jplevene Feb 22 '17

I'm a web developer and it is so rare that I see a well put together web app, most don't even properly attribute inputs so that users get the correct keyboard on iPads, etc (this is super basic stuff by the way).

→ More replies (32)

78

u/[deleted] Feb 22 '17

Diebold posted their source code for voting machines on their website. The source code had their default DES key hardcoded in, allowing anyone with basic knowledge to access the system on their voting machines and alter the results. Additionally, the admin access pin to their machines was default set to 1111. In 2005 Harri Hursti showed how easy it was to alter voting results on Diebold's shitty voting machines.

→ More replies (2)

291

u/Teddy-Westside Feb 22 '17

You know every time you use your credit card somewhere? That probably runs through some supercomputer to process all the data and return back approved or not, apply all the correct credits and debits, etc, right? Nope, runs through the some fortran code that it's been using as a backend for the last 30+ years. Why? Certifications are expensive and cumbersome

30

u/[deleted] Feb 22 '17

I thought they were using COBOL, not Fortran.

→ More replies (2)

23

u/some_lie Feb 22 '17

Why? because it has been proven to work. If it ain't broke, don't fix it I guess.

→ More replies (1)
→ More replies (19)

1.9k

u/[deleted] Feb 22 '17

Want more? r/softwaregore

671

u/[deleted] Feb 22 '17

I fucking love that subreddit even though I have next to no experience with coding.

→ More replies (80)
→ More replies (11)

1.5k

u/bepseh Feb 22 '17

Apple Music on Android. Seriously wtf.

935

u/[deleted] Feb 22 '17

I didn't even know Apple made anything for android

→ More replies (86)
→ More replies (70)

65

u/pzPat Feb 22 '17

I work for one of the largest banks in the country. I honestly don't know how it does not fall apart at the seams. It feels like everything is held together with shoe strings and bubblegum.

We use a lot of vendor products fiserv, ncr, and others. Even when using their stuff it has so many weird bandaids in place to make it work with our goofy mainframe setup that im amazed it works.

→ More replies (9)

64

u/BadDreamInc Feb 22 '17

Shutterfly has terrible coding on their website...

My wife was trying to use their site the other day to order some prints of our wedding photos. The site was continually fucking up as it has before on certain things. Being a programmer she decided to look at the actual coding for the site and discovered 37 javascript errors and 6 warnings within the code. There were lines to elements that didn't exist and many undefined properties.

→ More replies (1)

733

u/Sackyhack Feb 22 '17

Not really shitty, but some news websites that make you buy a subscription to read more than 3 articles a day or whatever, you can open the source code and just delete the HTML element that is covering up the article exposing the rest. It's three clicks of a mouse and then pressing "delete" key and it's technically "hacking"

296

u/screennameoutoforder Feb 22 '17

Might I suggest the "f*ck overlays" extension for Chrome? Does exactly this with just a right click, no need to even open the source.

Not to be confused with the "fuck shit up" extension, which does something entirely different.

→ More replies (22)

23

u/HaniiPuppy Feb 22 '17

javascript:document.body.contentEditable='true';%20document.designMode='on';%20void%200

^ ^ ^ Save that in a bookmark then open. One of the handiest things in my bookmarks bar.

→ More replies (12)
→ More replies (56)

58

u/Flare77 Feb 22 '17

There was a case in an ATM from a huge bank here in my country where someone tried to withdraw money but got an error. He got an error but his account was STILL deducted and as a coder, me and my boss (who saw the FB post) thought that the ATM machine's exceptions were disabled so it continued the error code but it didn't stop the procedure.

Guy was not amused and he thought it was too much of a hassle to go to the bank for it.

→ More replies (2)

117

u/Smileynator Feb 22 '17

The public transport card system in the netherlands. I mean it took millions to make. They broke every promise made about it. And in the end a single scriptkiddie could change some data on their chipcard, and then have the system scan it which would instantly crash the system. So 1, 13y old could completely cripple an entire train station in 5minutes tops and nobody would be the wiser. And lets not talk about security.

It was great!

→ More replies (9)

150

u/Ali3nat0r Feb 22 '17

Used to deliver pizza for an independent shop that was on Just-Eat. If someone used quote marks or apostrophes in their comments, for example:

Call me and I'll come downstairs

it would show on our receipt as

Call me and I&#39;ll come downstairs

which is just lazy escaping.

Also, the amount of websites I've used that have emailed me my password IN PLAINTEXT when clicking "forgot my password" is ridiculous.

EDIT: Reddit formatting

→ More replies (9)

51

u/cucufag Feb 22 '17

HR portals of any company that tried to create a digital channel for employees to do things.

→ More replies (4)

161

u/Mookyhands Feb 22 '17

The popular video game The Division.

In simple terms, games need to keep track of things like how much health you have, how many bullets, how powerful your weapons are, etc. This happens either on the game's server or on your PC/PS4/Xbox (the "client"). Most big budget games shell out to have everything validated on the server, but not The Division. Ubisoft was cheap and coded the game so it trusts your machine to do the math, making the game infinitely hackable with no way to fix (without re-writing it). If your PC tells Ubisoft's server you have 9,000% health and bullets made out of freight trains, who are they to argue?

59

u/4builders4tools Feb 22 '17

Basically the same thing with Grand theft auto V. Your client can fucking attach entities to other players and teleport around the entire map. The server doesn't actually care all it does is handle entity positions and the day/night cycle and the server trusts the client to do whatever it wants to.

→ More replies (1)

58

u/Matrix_V Feb 22 '17

I can't believe a company would make such a stupid decision at a basic level.

Ubisoft

Ok, never mind.

→ More replies (2)
→ More replies (15)

1.0k

u/Zouea Feb 22 '17

Pokemon Go: seriously you are professionals why do touch events still break randomly, and how do you keep fucking up playing music over it worse every time you update. I understand that undertook a massive project with a small team but the bugs in the final product baffle me.

Minecraft (Java version not Windows 10): so Oracle of all companies doesn't fix things very quickly, but there's was a memory issue causing the game to randomly crash or not load correctly on some computers that Oracle addressed in 2011 that Mojang didn't fix in Minecraft until late last year.

Bluetooth controlled lights (specifically Playbulb): many have little to no security on them, and the apps to control them are surprisingly terrible, with connectivity issues, bad UIs and constant crashing.

Uber: despite using the Google Maps API their navigation for drivers uses impossible routes long after Google Maps stops. They've hired so many talented engineers to do such shitty work simply because their corporate culture is so horrendous.

32

u/Pausbrak Feb 22 '17

Bluetooth controlled lights (specifically Playbulb): many have little to no security on them, and the apps to control them are surprisingly terrible, with connectivity issues, bad UIs and constant crashing.

This is a perfect description of the entire Internet of Things, aka the Internet of Shit. Incidentally, the Dyn DNS attack that brought down a large portion of the internet last year was largely powered by a botnet of compromised IoT devices. I am being perfectly serious when I say we are living in a future where hackers take control of printers and baby monitors and use them to disrupt global communication networks. The future is ridiculous.

→ More replies (5)

83

u/[deleted] Feb 22 '17

Regarding Pokemon Go: Ingress users tried to warn them that Niantic was prone to getting their heads stuck up their asses, and here we are. Even to this day I'm still having issues loading the game. (the map will load but nothing appears for like a minute and then suddenly a horde of Pokemon appear.)

Also since I spoke of Ingress, around when it was released on iOS it was said that the iOS client was basically the Android app running over a translation layer for iOS.

→ More replies (6)
→ More replies (152)

40

u/rddime Feb 22 '17

My sister once complained to me that her college textbook contained an USB key that didn't work because the computer I built for her ran linux. Since the USB key was supposed to give her access to electronic versions of labs she needed to do, I had a crack at figuring out why. Plugged it in and watched it go and apparently, this USB key loads a USB keyboard driver, then injects a windows+r and an URL as if the USER typed it in. The webpage requests a login provided on the label of the USB key. What the...

TLDR: College textbooks hire a malware author instead of just printing a fucking URL.

→ More replies (3)

78

u/_Nathan_37 Feb 22 '17

Most phone apps, I don't believe Facebook needs to cache 200 mb worth of data, get rid of it!

→ More replies (2)

497

u/Katholikos Feb 22 '17

League of Legends.

In programming, there's a concept that if you're going to do the same thing multiple times, you should probably just use one separate piece of code and call that code every time you want to do this thing.

Every single game of league ends in one of two ways: either it has a "VICTORY" or "DEFEAT" splash animation. The proper way to do this would be to call the code that runs the animation. That way, if you, for instance, update the splash animation, you just put the new animation in the same location with the same name as the old one and every single map you've got now plays the new animation - makes for easy updates!

League of Legends ignores this simple concept. Instead of doing that, they have individual animations for every single map. That's why the old maps still show an old victory/defeat animation, while the updated maps show a new one.

There are multiple reasons this could be the case, but I can't think of a single time where life is good for the programmers and you run into issues like this.

238

u/2016-08-16 Feb 22 '17

Pfft.

In league of legends, there are ~150 playable characters, and they all have several skins. These skins are cosmetic overhauls that have no gameplay effect whatsoever. You'd think that it would just be a change of the texture and model, pretty simple.

Nope.

Every league of legends skin is essentially an entire new character with its own unique kit that just happens to be the same kit as the other skins.

→ More replies (27)

24

u/Barthas Feb 22 '17

The community jokes about the awfulness of the code on a regular basis. You don't need to know anything about coding to see some of its effects, sometimes changes bring out bugs that you wouldn't even think were possible.

If you don't believe me, here is a link the game's wiki for a champ named Azir. (Azir, it should be noted, is quite a bit buggier than most other characters.) Go to the 'History' tab, and scroll down to the Patch History section. The summary of that section in [bugfix][bugfix][actual change][bugfix][change][bugfix for that first change], it's really an incredible mess of spaghetti.

→ More replies (11)
→ More replies (55)

38

u/fongaboo Feb 22 '17

Not a coder. But attended a lecture by two programmers. And they described how Apple would contribute code back to the open-source BSD project, since OS X is based on it. And they would find comments in code like 'this will fail the first time but the user will just click again.'

→ More replies (2)

166

u/flipsidemeobius Feb 22 '17

The official reddit app (or even the mobile website) trying to do searches is painful

57

u/dumbrich23 Feb 22 '17

Use google. "site:reddit.com"

→ More replies (1)
→ More replies (20)

36

u/[deleted] Feb 22 '17 edited Feb 22 '17

Everything used by schools

I'm barely an amateur and am able to see the extreme flaws in programs like mathxl and edgenuity. Khan academy is an example of one that isn't made by amateurs, as well as Duolingo.

Edit: Snapchat is also the worst app I've ever used in Android. No excuse for how slow, buggy, and data hungry it is.

Edit again: Spotify on Android.

Edit again again: Elaborate on school websites. They look like a webpage form 2004 and are often so poorly coded that even Firefox can't display them properly.

→ More replies (5)

601

u/[deleted] Feb 22 '17

I'm not a programmer, but my husband said, "You really don't wanna know how airplanes fly..."

→ More replies (83)

152

u/Zalthos Feb 22 '17 edited Feb 22 '17

I might be wrong here, and this is a very specific irritation, but companies keep applying anti-aliasing to particle effects. This is a HUGE performance killer, because particle effects (like smoke, for example) generate sometimes hundreds of sprites, to put it as basic as possible, and if anti-alias is turned on but NOT turned off for that particular layer, it'll remove jagged edges on things like smoke... AKA: It'll remove jagged edges on things with edges that you CANNOT SEE because they're transparent, and because there's freaking HUNDREDS of them, it'll also utterly destroy your performance along the way.

And from the game engines I've used, it's very simple to just tell graphics settings like anti-aliasing to just NOT do their thing on something like a particle effect. Simple shit from what I know.

To test this, all you need to do is put anti-aliasing on x8 or something and then run into smoke. If your frames plummet, you know that the dev kinda fucked up there. And honestly, I see it in like... 95% of games at the moment.

→ More replies (8)

315

u/jun_sato Feb 22 '17 edited Feb 22 '17

WordPress.

The framework that is used for an estimated 27% of the sites on the internet is a code base I wouldn't wish on my worst enemy.

  • They don't follow their own coding guidelines from file to file so be careful looking at core when trying to figure out how to do something
  • the recommended PHP version is 5.6 which is now a month past end-of-life (for active updates, although security updates go another year and a half I believe, but still)
  • the difference between functions and classes are completely arbitrary and sometimes duplicated
  • they still use SVN (obviously personal preference for a lot of people but is awful in my opinion shudder )
  • updates are usually undocumented (or very lightly documented)
  • there is no 'right' way to do things despite having a coding guidelines, some of Automattic's own plugins wouldn't make it through a theme or plugin review on wordpress.org
  • security bugs are ridiculous and the number of out-of-date sites out there is enormous and just waiting to be taken control of (more on this later)
  • they care more about the customizer than about security
  • much like Apple if they see a plugin that works and is popular they will copy it and put it out, stealing business from their own dev community (see: jetpack) (are you next? The fun is not knowing!)
  • even their latest sample themes like twentyseventeen and _s use a mix of practices from file to file and don't match each other
  • their coding guidelines recommend out of date practices (see: @subpackage in phpdocumentor). Example in twenty seventeen (their latest) theme:

    • @subpackage Twenty_Seventeen // Obsolete in phpdocumentor
    • @since 1.0 // Not semantic versioning, should be 1.0.0
    • @version 1.0 // Not semantic versioning, should be 1.0.0
  • And another fun example of changes from file to file, also from twenty seventeen:

    • @since Twenty Seventeen 1.0 // Woo hoo, not semantic versioning AND different style, this time including the theme name. The real fun is seeing all the cool variations in their code from file to file
  • Oh look! Another example of not following their own coding guidelines from file to file in twenty seventeen. No @since tag which is in the coding guidelines and so far has 2 variations in other files.

    /**

    • Add SVG definitions to the footer.

    */

    function twentyseventeen_include_svg_icons() {

  • backwards compatibility when updating is unpredictable at best resulting in a special rule for people who make WordPress sites: 'Once you get it how you like it, NEVER update it (or be prepared to ruin your next week, and God help anyone who updates on a Friday)' (yes, I know you shouldn't be updating on production, but I'm about to get to that), which is not a good rule to have when dealing with programming code and security vulnerabilities
  • there are URL's stored in the database and as GUID's, which means switching URLS (like dev to production) is a giant pain in the ass
  • post id's (the table where most of the content is stored including pages) are numerical/serial so making changes in dev and pushing them to production is damn near impossible in an efficient manner causing people to do dumb things like not testing an update in dev first and getting themselves into trouble
  • changes to the URL's can break all the track/ping backs (bc of the URL GUID)
  • another inconstancy: a WP_Post class has properties that make no sense, $post->ID vs $post->post_title, why the random uppercasing? and why isn't it $post->post_id or $post->title? Why are some properties prefixed with post_ and others aren't?

I could go on and on.

And the founder and owner, Matt Mullenweg, is a giant piece of shit who is not to be trusted under any circumstances and will bury without mercy anybody he disagrees with, going so far as to steal a domain name out from under a long time WordPress developer over a personal disagreement and forwarded that domain to a WordPress blog just as a 'Fuck You' (among many other vendettas he has pursued against people who disagree with him).

There is a lot of things to like about WordPress, especially for end users. The core code is not one of those things.

edit: clarified and added a few things

31

u/ADHDengineer Feb 22 '17

God I hate wordpress too.

The fact that it's nearly impossible to take a copy of an inprod website and develop locally then push up the changes is the most obnoxious thing in the world.

→ More replies (11)
→ More replies (72)

31

u/[deleted] Feb 22 '17

Job application websites.

Why the FUCK do you have me upload my resume if you're going to make me type out every goddamn piece of it one piece at a time on a separate static HTML form.

→ More replies (3)

27

u/salmonmoose Feb 22 '17

Westpac.

Rather than allow us to use a secure password, we are limited to 6 characters (one must be numeric).

Some bright spark programmer has decided the best way to add security to this is to make you type your password on a on-screen keyboard - which encrypts what you type as you type it - the server knows what keyboard it sent you, so can decrypt it.

Of course, this means you can't use a password manager, and more importantly, when you have 30" screens at work, you pretty much broadcast your password every time you log in.

→ More replies (3)

26

u/[deleted] Feb 22 '17

I worked on the Apple web store when it was first implemented. I can't believe that in 2017, they still take the website down for hours to update the product mix. Even near the turn of the century, we were saying, "can you imagine if Amazon ran their web storefront this way?"

→ More replies (5)

363

u/New_York_Rhymes Feb 22 '17

I can't actually say cause this user name has been seen by colleagues before. But Google. Most of the code is amazing. But there are a few BIG Google sites that, man, they're done badly.

→ More replies (56)

990

u/-eDgAR- Feb 22 '17 edited Feb 22 '17

Not a coder, but this reminds me of that time a redditor found out you could edit the categories on the Sears website to say whatever he wanted and a bunch of people started having fun with that. Here's a screenshot since you can't really see anymore.

Edit: A Sears representative was in the comments acknowledging that it was a change on their end and as /u/akm-scout and /u/AButWhole point out below this change was on their database so everyone could see it, not just one person.

Edit 2: Apparently not as cool as I thought https://www.reddit.com/r/AskReddit/comments/5vexe9/coders_of_reddit_whats_an_example_of_really/de1t3ct/

160

u/SilasX Feb 22 '17

Didn't something similar happen on Youtube, where it would execute arbitrary javascript submitted in the comments, so you could basically rewrite the whole page?

→ More replies (26)
→ More replies (65)

23

u/HyperTextCoffeePot Feb 22 '17

The tinder app has a beautiful UI, but the actual underlying programming is the most inconsistent crap I've ever used in a professional, popular app.

→ More replies (2)

21

u/LeftyDan Feb 22 '17

Not exactly coding but my company uses IE6 for some bizarre reason. The IT also decides to randomly block random websites. Ex) wiki images but not Wikipedia.

→ More replies (8)

21

u/Twirrim Feb 22 '17

Everything is terrible. Everything.

With possibly the singular exception of the code used to run critical components of the space shuttles https://www.fastcompany.com/28121/they-write-right-stuff. Quoting from that website "the last three versions of the program — each 420,000 lines long-had just one error each." That's almost unfathomable.

→ More replies (2)

104

u/xRNGesus2 Feb 22 '17

Any Valve game with a life span of 2+ years.

...And Mojang

65

u/DesmondDuck Feb 22 '17

You mean poor old TF2, bloted with cosmetics, glitter, and unusual effects that make he game run like a sloth in a vegitative state?

→ More replies (4)

65

u/bekeleven Feb 22 '17

Fun fact: As of the UI update in '09 or '10, steam now has higher system requirements than half life.

→ More replies (3)
→ More replies (9)

73

u/bunnyfreakz Feb 22 '17

League of Legends spaghetti code. They hard code everything including skins. Skin is entirely its own champ. Thus if they need to update certain champ, they need update also all its skins. Thus why they forgot to update skins so damn often and pretty game breaking.

→ More replies (5)

19

u/Fireslide Feb 22 '17

Not in the general public, but during my PhD I had to write some code to find a plane of best fit to a set of atoms from a molecular dynamics simulation.

My test code was simply a loop that that took all the atoms in the set, and for each pairing, found the vector, then averaged all those normalized vectors together, the end result was I'd have a vector that'd be in the normal of the plane.

It worked fine for test cases with only a handful of atoms, but as anyone with some math background will recognise, it's the worst possible scaling, n! vectors needed to be calculated for n atoms. So for a test case of say 10, it's fast enough to be instant, but that rapidly became minutes/hours/days for larger sets.

Once I realised this I found a much more efficient way to calculate a plane of best fit and implemented it. It still was an amusing moment when I realised "oh, this scaling is not going to work for a system of 100 atoms" and probably the worst thing I've coded in my life.

→ More replies (3)

18

u/ook-librarian-said Feb 22 '17

Most legacy banking systems back office and the ETL's are usually built on horrible legacy code plus wings and prayers. RBS could not sell a UK branch chain because of their legacy code position, and the work required to make separation.

→ More replies (2)

35

u/illonlyusethisonceok Feb 22 '17

Sites that email you your login information are storing it in plain text.

→ More replies (6)

17

u/Noah-R Feb 22 '17

Certain programs with long startup times have idle pauses built into the loading screen, just so it looks like the program is working harder to load itself.

(Obligatory not a professional coder)

→ More replies (1)

17

u/AnonCoder12 Feb 22 '17 edited Feb 22 '17

Visual Composer for WordPress.

Summary:

It's a really popular drag-and-drop builder that lets anyone build pages on their website with no coding knowledge.

The reality:

WordPress uses something called shortcodes that allow you to plug a piece of code into a page without having to write HTML, PHP, etc. They look like this:

[slide-show] [slide-show items="10"]

Simple enough and really handy. The problem though is that the only way you can make a drag-and-drop builder on the WordPress framework is to dump a bunch of shortcodes into your content. So basically, if you go to edit your website one day and the drag-and-drop builder fails for whatever reason, you're presented with a giant wall of shortcodes. You are totes screwed unless there is an available patch for the plugin.

Here's the cool part though. A lot of fly-by-night WordPress theme developers on places like Theme Forest bundle Visual Composer into their themes. So this means that they have their own purchased license of the tool that the end user doesn't have to purchase. In theory it sounds nice... but it fucking isn't. The plugin has a constant barrage of updates and patches to fix and add things. So when the plugin is bundled into a theme, you have to manually patch it, which means you have to purchase your own license. So say you update WordPress core and there is a plugin update for Visual Composer that goes in tandem to fix things, update methods, etc. If you're a clueless end user, you're absolutely fucked.

It gets better though. If the dev from which you bought your theme goes out of business (this happens all the time), there is no way to contact them or their support into order to get a Visual Composer patch.

BUT WAIT, THERE'S MORE!

If you have a theme that isn't updated to match anything new or changed that Visual Composer does and the theme dev is gone or has no new patches/releases, you're absolutely screwed. You then have to contact a dev to fix it, fix it yourself, roll back your updates, or ditch it and start over.

Have some extra salt

  • Visual Composer updates have broken all kinds of shit. I've seen entire important JavaScript variables go missing. I've seen page content just die after WordPress core updates and thus dump out unrendered shortcodes on the front end. I've seen it completely take down an entire site and require a temporary roll back after a client borked shit (WordPress is a chore and a half to update cleanly and one should NEVER do anything of the sort on a production environment--obviously)
  • Before a patch, the popular Yoast SEO plugin would automatically pull the unrendered shortcodes into its meta data. So your meta description would look something like [thing-1] [thing-2] [button color="blue"] and have absolutely nothing of value. NOTE: if you're using any SEO plugin you should probably manually write your meta descriptions, etc. but if you're a clueless end user, this can be a nightmare. I think Yoast has since written their own patch for this (or perhaps the VC team wrote their own; I can't remember)
  • Checkout this rad chunk of CSS!
  • If you're a developer like me and you have the joy of taking over a Visual Composer-driven website, you immediately want to put the site and all of its styles into a repo, right? Well let's just hope the previous "developer" didn't write random fucking CSS on every single page. Visual Composer offers the ability to write specific CSS on the fly on a per-page basis. This means it gets stored in the database and thus is nowhere to be found in your newly created repo. This can prove to be an absolute nightmare. I've had instances where I was trudging through a website for over an hour just to locate like 3 lines of CSS that was dumped into the <head> of the site like nobody's business, and was then overrode somewhere else in some cases
  • Your mileage may vary on what each of Visual Composer's tools outputs. I once had an issue where I was trying to change a user-selected icon on a button but the icon itself was not appearing at all on the front-end. I ended up getting fed up and having to write a small bit of JS that would plug the icon in for me. The comment I wrote for it was pretty entertaining
  • A lot of the element creation tools in Visual Composer are really poorly explained and the consistency is terrible. I've had background image and font styles work really well on one button creation tool, and then on a similar one, they absolutely sucked.
  • If you like watching your web browser eat all the RAM on earth, Visual Composer is a good tool for this. If your page editing requirements are pretty minimal, you're probably fine, but when you get into really complex pages, it's the most frustrating thing ever
  • The plugin has features where you can create grids and nest them, etc. This isn't anything new. There are tons of shortcode plugins that let you do this. The problem with Visual Composer's is that if your columns and rows get complex, sometimes the visual tool shits itself and shows you empty rows that you can't select, delete, nothing. What does this mean for the dev? SURPRISE MARTHA FOCKER, you have to view the page in the standard WordPress editor, copy the wall of shortcodes you see, manually find that wonky empty column shortcode, manually delete it, plug your edited wall-o-shortcodes back in, switch to Visual Composer's visual editor and see if it's fixed. Rinse and repeat if it's still fucked

Conclusion

I absolutely do not recommend any drag-and-drop builder for WordPress. They are essentially nothing but unwieldy shortcode factories that can render a website useless. Come time to make any sort of design updates, you either have to carry over the legacy crap that was built with the editor, or you have to start over. ZERO of the content Visual Composer generates can be ported into anything, unless you sit there and copy it verbatim from the browser (lol good fucking luck).

The amount of sites I've had to fix because of this tool is insane. It's so bad that I have become the go-to Visual Composer fix guy. I have various versions of the plugin saved locally with written instructions on how to fix it, what errors to look for, what version to patch with, etc.

FUCK VISUAL COMPOSER

→ More replies (4)

15

u/heisthechosenone Feb 22 '17

Any antivirus ever. There are pages and pages of researchers basically shitting on antiviruses, some go to kernel level and start on boot. Honestly you're better off without protection than with it.

→ More replies (1)

14

u/[deleted] Feb 22 '17

www.wowhead.com

Super bloated now.

Also, PWInsider. That page makes Geocities pages look perfect.

→ More replies (3)

13

u/futureformerteacher Feb 22 '17

The basis of a lot of education software is absolute garbage. Most of it hasn't been updated since the 1990s, and it is BARELY functional. But are you going to be the one that fixes it?

13

u/[deleted] Feb 22 '17

Yahoo! Chat (the HTML version) back in the mid/late 90's, when you could insert javascript code as your message, and it would actually execute on whoever is in the same chatroom to see it.

12

u/phl_fc Feb 22 '17

It's since been patched, but EA's sports games used to have terrible account security. They validated your credentials when you first create a session with their server. Once you have a valid session you could execute commands against any account you want. It was easy to figure out the internal IDs of other people's accounts and you could use that ID to execute commands against their account when you were logged into your own. This led to a lot of people having their Ultimate Team accounts wiped out.

→ More replies (2)

23

u/MicrosoftTay Feb 22 '17

Remember ~6 years ago when Toyota cars were randomly accelerating and the company blamed it on the floor mats? An independent group took a look at the source code that controlled the control system (gas, break, steering etc.) and found that there were bugs that caused the car to accelerate and the only way to stop accelerating was to release the break completely then reapply it. It had to do with some functions taking the time to complete in terms of linear-time instead of constant-time. Read here to learn about constant-time vs. linear-time

→ More replies (2)

11

u/now_i_am_george Feb 22 '17

Sharepoint. Just... everything. The crud it produces is like it's giving birth to a thousand little Frontpages every time.

→ More replies (2)

11

u/_jbass Feb 22 '17

You know those soda machines that have like 100 different flavor switch the touch screens... well if you want water, you have to hit water, then hit water again... that design always bothered me

→ More replies (2)

39

u/MakeUpAnything Feb 22 '17 edited Feb 22 '17

Literally any that don't take the time to singularize a noun (i. e. those that say "1 seconds remaining"). Completely unusable.

→ More replies (9)

225

u/StupidRobber Feb 22 '17

Intermediate programmer here.

Some websites will post job postings within their code or scripts.

If you'd like to see this for yourself (in Google Chrome), go to the official PayPal page, and right click and 'View page source'. This will open another tab and redirect you to the HTML5 code. Boom. Instant magic.

→ More replies (34)

0

u/[deleted] Feb 22 '17

[deleted] — view deleted comment

990

u/RickandSnorty Feb 22 '17

I have had multiple passwords put IN THE SUBJECT LINE. It feels so much worse

→ More replies (28)

2.4k

u/[deleted] Feb 22 '17

You could capture the password, send the email, then hash it and store it in the database as it should be.

Don't get me wrong, it's an awful idea to send passwords in plaintext, but they could technically still be storing them appropriately as a hash. I've encountered that a handful of "enterprise" applications :/

→ More replies (157)

604

u/DJBESO Feb 22 '17

Salted hash is delicious. Just a little burnt 🌝

→ More replies (19)
→ More replies (307)

0

u/[deleted] Feb 22 '17

[deleted] — view deleted comment

65

u/jutct Feb 22 '17

The funny thing about this is that I worked for years on credit card payment terminals. These were specifically for the laundry industry. They "load" value onto a smartcard, and used a dial-up modem to handle debit and credit cards. We were VERY careful about not storing any sensitive data. Literally everything else about the software running on these things was a steaming, festering, rotting pile of shit such as main() loops that were 3,000 lines long with GOTOs to control execution flow. But, we were careful with your card data. A lot of people probably don't realize that any ATM or terminal that takes debit cards has a certified, encrypted PIN Pad on it. That pad where your enter your PIN encrypts the PIN and never sends it anywhere in the clear. So the software on the thing doesn't have your PIN. It's a pretty decent system.

→ More replies (4)
→ More replies (166)

1.8k

u/[deleted] Feb 22 '17

[removed] — view removed comment

1.0k

u/ThatCrazyCanadian413 Feb 22 '17

Boy do I love having Chrome progressively get slower until it crashes because Tumblr doesn't know how to unload images when I'm not looking at them.

→ More replies (26)

39

u/andrewia Feb 22 '17

Twitter is miles better than Tumblr on Android. If you are 10 pages deep and leave the app in the background for a few hours, Twitter resumes fine. Tumblr decided to unload itself and dumps you back at the top of your feed so you have to scroll for minutes to get back to where you were. And if you accidentally press the back button on the feed, Twitter will launch back exactly where you left, and you can just tap the feed icon to scroll back to the top. Tumblr, again, forgets where you were and dumps you at the top.

→ More replies (2)

31

u/SolongStarbird Feb 22 '17

Ah, tumblr, not only is their code shitty, but when a third party guy fixed it all for free, they chased him away with pitchforks for some trivial reason.

→ More replies (13)

28

u/Ryinth Feb 22 '17

I don't understand how their video player is the worst, worst, worst thing in the world.

→ More replies (1)

25

u/standbyyourmantis Feb 22 '17

The last fun bit of fuckery it introduced was ads on your blog, which okay fine it's a free site whatever. Except those ads for some reason fucked with any page that had a lot of links. So about half my friends who write fanfic there lost their entire masterlists and had to start all over. Lucky for me, I had put mine on different pages because of how long it was so I avoided needing to rebuild but it was still annoying.

→ More replies (33)

575

u/[deleted] Feb 22 '17 edited Feb 22 '17

[removed] — view removed comment

→ More replies (30)

18k

u/[deleted] Feb 21 '17 edited Jul 02 '23

[removed] — view removed comment

8.4k

u/Perfekt_Nerd Feb 22 '17 edited Feb 22 '17

The best part is that you declare, "I will hold myself to the highest coding standards, unlike all these chef Boy-Ar-Dees!"

Then you get your first deadline

→ More replies (399)

847

u/[deleted] Feb 22 '17

I hate the moment you realize you're now the professional. That moment you have to stare at your own code because no one else can help you debug it is scary. Now all the possible mistakes are in your hands and if you leave then good luck to the next guy.

→ More replies (136)

2.0k

u/[deleted] Feb 22 '17

"If builders built houses the way programmers built programs, the first woodpecker to come along would destroy civilization." -Gerald Weinberg

→ More replies (183)

599

u/monty845 Feb 22 '17

Beautiful code exists, and is common as long as you don't want to do anything complicated or unusual. If it wasn't complicated or unusual, there would already be cots software to do it, and you wouldn't get getting paid to develop it.

→ More replies (62)

1.1k

u/[deleted] Feb 22 '17 edited Aug 16 '17

[removed] — view removed comment

→ More replies (179)
→ More replies (363)

44

u/[deleted] Feb 22 '17 edited Feb 22 '17

[removed] — view removed comment

→ More replies (2)

0

u/[deleted] Feb 22 '17

[deleted] — view deleted comment

3.0k

u/Jdawg27 Feb 22 '17

If you scroll down to the bottom there's a duck that say's meow and that made me incredibly happy. http://imgur.com/a/jEFC1

→ More replies (128)

72

u/[deleted] Feb 22 '17

That just looks like that because there's a bunch of inline javascript and css that's most likely been embedded from separate files when the page was generated. It's not gonna look like that for whoever edits it.

26

u/ShimReturns Feb 22 '17

At least some of that javascript has been minimized. The source may look beautiful, but a minimization library will remove all the comments, variables get renamed to the shortest possible, and even the line breaks are removed to reduce the size to served to your browser.

→ More replies (3)
→ More replies (147)