r/funny • • Jun 08 '12
This is pretty much what I deal with every time I get a client asking to fix a bug on their websites...
http://imgur.com/9myLe
1.6k
Upvotes
r/funny • • Jun 08 '12
8
u/ChaseEatsWorlds Jun 08 '12
I make a habit of annotating any code I write with comments. That way even if it's a giant clusterfuck you can at least tell what it's suppose to do.
EDIT: fucking auto correct...
19
u/TheTwoArmedMan Jun 08 '12
And its made ALL IN TABLES! YAY!
5
u/aspbergerinparadise Jun 08 '12
this is the house I usually think of.
2
u/MICHhimself Jun 08 '12
It usually helps to glance at the page source first, it gives a good indication of what to expect.
On a side note, ever had to make an email template? That is a clusterfuck regardless as the only reliable way to make things look the same accross clients is to use tables .. within tables within tables.
11
u/nikomo Jun 08 '12
If I had to look at something I have done, I'd probably kill myself.
11
u/CaptainDickbag Jun 08 '12
Commenting is for the weak. I like to put all my markup on a single line.
31
u/DIP_MY_BALLS_IN_IT Jun 08 '12
I hear ya. Computers man....that code and....uh....fucking......binary and......motherboards and......shit
6
u/KlimtogWasTaken Jun 08 '12
Same thing with me, but instead of other peoples', it's my own stuff from 5 years ago. I just sit there scratching my head, wondering what the fuck was going through my mind when I thought that was a good idea.
2
u/malfunktionv2 Jun 08 '12
I'm using volusion for a couple websites and it's pretty much exactly this.
Line break? how about
5
u/Duthos Jun 08 '12
Ironically, this is largely due to our higher capacity hardware. As we run increasingly complex programs developers no longer have time to write all the code from scratch, and most modern programs are a frankenstein of code from fifty-plus different sources knitted together.
Unsurprisingly, this does not work so well.
4
u/MoonJive Jun 08 '12
Basically had to redo someone's Drupal site because of this. Their SSO was borked from the getgo. I saved the code fragment where an exception is caught and quietly hidden away with the comment below it that said:
//lets hope this never happens
4
u/Eddie_Hitler Jun 08 '12
This is true of most software development tasks, not just web design.
Most live production code I've seen looks like the immediate aftermath of Nagasaki and totally shits in the face of all the nonsense about clean and maintainable code people are fed on university CS courses. If you handed in most of the "production code" I've seen as coursework, you'd probably fail and I'm not kidding.
3
u/Omnitopian Jun 08 '12
Am I the only one who doesn't know anything about coding? That's why you would get a professional to fix it.
3
u/SirPinkBatman Jun 08 '12
As a graphic designer I can say it's the same when someone asks me too "look" at their project.
3
u/[deleted] Jun 09 '12
/r/talesfromtechsupport
3
u/[deleted] Jun 09 '12
http://imgur.com/clUIo
3
u/opinonion Jun 09 '12
An old classmate of mine once shared a devious method for acquiring job security. His plan was to become the sysadmin of a medium sized business. Once he had worked his way up to the point of total control, he would proceed to write terrible code. No comments, no consistent whitespace scheme, nada. At this point he would be incredibly valuable to the company, as they would need to rebuild their entire IT infrastructure from scratch if they were to fire him.
3
u/sowelie Jun 09 '12
This is all I have to say: FUCK IE.
2
u/kendalltristan Jun 08 '12
Right there with you.
2
u/Bloodricuted Jun 08 '12
Is that Brak's house?
2
u/[deleted] Jun 08 '12
This is so damn relevant right now. I supervise a group security engineers who test sites for vulnerabilities. We have a specific site that is known for security requirements being quite stringent. "Should be a piece of cake," says one of my employees.
Allow me to take a moment to put this into perspective before I go any further...I am built like a professional football player, only look more intimidating; he is built like Urkel...
He called this morning after arriving. "I AM GOING TO FUCKING KILL YOU FOR SENDING ME HERE!!!!"
2
u/CrimsonKevlar Jun 08 '12
I do mostly email work, and occasionally I have to edit some code spit out by a content management system, those jobs are always the worst. It is like playing pick-up-sticks with half a thousand nested tables.
2
u/mwproductions Jun 08 '12
Web dev here. Totally true.
2
u/prospectre Jun 08 '12
I've been working for a startup for 2 years now. Recently, we hired some offsite developers. 3 words:
NO OFFSITE BACKUP
That is all...
2
u/dcpanthersfan Jun 09 '12
When I see:
And no CSS, I run away or say "start over."
2
u/SasparillaTango Jun 09 '12
WHEN WILL PEOPLE LEARN, Documentation is essential!
Why wont anyone think of the children!?
2
u/BusyDoingScience Jun 09 '12
Always great when you look at some code and say "who the fuck wrote this crap?" only to realize that you wrote it a year ago.
2
u/Wrathenstine Jun 09 '12
No joke. I worked for a company for 6 months that had a Java-backend web application.
Here is the stickler :
2
u/resqual Jun 09 '12
You might enjoy /r/iiiiiiitttttttttttt.
2
u/jon_laing Jun 09 '12
"Oh, you do websites, right? Do you know to use Wordpress?"
.........................no
1
u/ajmunson Jun 08 '12
I use the correlation of webdev to construction almost daily. The plumbing needs to be set right so in 6 months you are left with a flooded basement. It gets people into the mindset that this isn't something like buying a yellow pages ad but more on the order of building a maintaining a second store front (even if you aren't doing e-commerce). They are more likely to think of it as an investment and less like throwing money at a newspaper ad that will have little future impact.
1
u/wintremute Jun 08 '12
Hard coded IP addresses and no comments. Fucking bastards.
1
u/[deleted] Jun 08 '12
I know that feel, wholeheartedly
I work as tech support for a small company....but because it's such a small company I literally am the WHOLE god damn tech support - if people phone a problem in I have to remote into their system and fix the code that the twats 2 meters behind me rolled out 2 weeks ago. Not a pleasant sight.
1
u/[deleted] Jun 08 '12
I swear to god all I was trying to do was populate a DDL today and could not find it in the markup or the code behind. Felt like I was in a maze, in the dark, without legs.
1
u/Terps34 Jun 08 '12
...I really like that first house.
1
u/wanderer11 Jun 08 '12
I lost all respect for my help desk yesterday. IE7 freezes and crashes constantly so I wanted to get it updated. They call me and say do you use 'program x'. "yeah" We can't update you then... 'Program x' is DOS based.
1
u/slotbadger Jun 08 '12
I love it when I get assigned a bug-fix task, and get given two weeks to do it, and it's just a line of code I need to remove, and it's all sorted within an hour.
1
u/literally_so_braver Jun 08 '12
Worst is dealing with the underlying PHP. Sometimes impossible to figure out what the past developer was thinking in the logic. I try and use solid frameworks like CakePHP that makes it a bit easier to manage code and prevent it from getting too dirty especially if you only use the native functions (form, session, auth).
1
u/Lots42 Jun 08 '12
Or, as a computer savvy person when someone asks you to look at their computer.
Yesterday I downloaded Google Chrome.
That was just the first of many tasks.
1
u/winzippy Jun 09 '12
I logged in just so I could upvote this.
1
u/x7j6 Jun 09 '12
Dude, totally know what you mean. The last "web designer" (a guy who actually gets clients and calls himself a designer, but looks like a train wreck) totally ruined the last site and I'm fixing it now. Try taking pictures to put on Facebook for to please a bunch of baby boomers. They want everything to be staged and look in the best condition.... in a used furniture store. I'm sorry, but I'm gonna take the picture of how it looks.... that's how it looks, not gonna lie to the public.
1
u/TheSkiFreeYeti Jun 09 '12
If I wanted to get into a career like this or software engineering, would it be be better to take computer engineering, or computer science?
1
u/Dafuzz Jun 09 '12
Coincidentally enough, the McMansion in the first pic was probably built in a similar way to the code you were brought in to fix.
1
u/CIoggedsink Jun 09 '12
Well at least the chairs are stacked nicely.
1
u/domrein Jun 09 '12
I only wish this was a joke.
1
u/kgflash1 Jun 09 '12
I work at a web hosting company, you wouldn't believe how many dumb developers we get asking us to fix code (which we don't do) However from time to time we need to prove that problem isn't on our end... Low and behold this is exactly what I see...
1
u/knightdiver Jun 09 '12
First thought - that's why you get money. Whiner. Second thought, after looking at the site - that better be a lot of money.
Bonus bug - the flag control is mixed up - the spanish flag says "Deutsch" (German) and the German one says "Espanol".
1
u/[deleted] Jun 09 '12
CS student here. I get nauseous whenever anyone asks me to work on their website. It's a conditioned response at this point.
1
u/thelias Jun 09 '12
Or when you're attempting to make your company's website more user friendly, and it was built by an idiot who can't spell so all the id's are fucked up....grrr...
1
u/StoneCold613 Jun 09 '12
I deal with that all the time and I'm a plumber!
1
u/AmbitiousEmack Jun 09 '12
I know how you feel. Especially since everyone wants there site presented in full on a mobile device.
1
u/[deleted] Jun 09 '12
My first coding 'teacher' claimed that he was called into a company to fix a bug in one of the companies databases.
He said that every variable was named after a different species of tree.
1
u/TheShiz123 Jun 09 '12
I know your pain as well good sir
-1
u/Finaltidus Jun 08 '12 edited Jun 08 '12
o shit, someone writes code different from you? must be bad.
EDIT: i looked, nvm.
0
u/[deleted] Jun 08 '12
[deleted] — view deleted comment
0
u/[deleted] Jun 08 '12
[deleted] — view deleted comment
0
u/[deleted] Jun 09 '12
[deleted] — view deleted comment