|
Just found this.. not really a horror per say, but WTF:php:<? <style> <?if(!$_GET['article']){?> *{ } <?}?> </style> ?>
|
# ¿ Apr 14, 2008 17:17 |
|
|
# ¿ Apr 28, 2024 17:10 |
|
Munkeymon posted:That was amateur horror. It takes professionals to create Live Horrors I want to see the thought process on the variable name.... "I'll call it 's'! No, wait, that could be confusing. 'ss'! Oh man, that's like all nazi and poo poo. 'sss' it is!"
|
# ¿ Jan 6, 2010 01:36 |
|
MasterSlowPoke posted:maybe he doesn't know that == tests for equality? Yeah, but != tests for !equality. So..... !?
|
# ¿ Jan 25, 2010 06:10 |
|
I got asked to help out on a project while the guy doing the dev work was on vacation. This is what I found. Formatting and variable names preserved as found, a couple function names and a domain changed to protect the innocent. (this is javascript)code:
|
# ¿ Jun 18, 2010 22:03 |
|
Broken Knees Club posted:I just really like the one liner version. It's [0] is true, but also equals false?? It's "I don't understand javascript 101" [0] creates an array with one value, so by itself, it evaluates to TRUE, since it exists. When you do a compare, [0].valueOf() is done, and since it's a single element array, it returns that element: 0. \/ it has it's moments for sure. Lumpy fucked around with this message at 19:34 on Aug 15, 2010 |
# ¿ Aug 15, 2010 19:21 |
|
CHRISTS FOR SALE posted:
I'm not sure hitting paste twice is really a coding horror, especially since it doesn't affect functionality or introduce any display bugs.
|
# ¿ Sep 2, 2010 16:17 |
|
Bozart posted:HTML position information only. An old boss of mine had this sign hanging on his wall: "Anything I don't understand must be easy."
|
# ¿ Sep 3, 2010 14:30 |
|
Surface posted:Ohhh, so it's your code that causes other developers to cry when it comes time for maintenance. Huh? Having a duplicated selector in a CSS rule isn't something one should aspire to, and if I saw one, I'd remove it. But since it cannot cause any unwanted behavior, isn't propagated anywhere else, can't break any other CSS files or rules, and I can't fathom it's existence causing anyone to cry at any point, I didn't think it was a HORROR. A minor annoyance that should be cleaned up, sure, but not a horror. How you infer that my code causes people to cry because of that....
|
# ¿ Sep 8, 2010 00:22 |
|
Jabor posted:Because the kind of person who double-pastes and doesn't notice or correct it is also the kind of person who is sloppy in other areas of their code. So they should post a picture of the person in the thread instead!
|
# ¿ Sep 8, 2010 00:29 |
|
Here's some type-related fun I came across in some vendor code today:code:
|
# ¿ Sep 27, 2010 19:13 |
|
ToxicFrog posted:So wait, is it calling Number() on something that's already numeric? Or are they not only using systems hungarian, but lying about the type? The inputs to this method come from SELECT elements, so technically that is a String always. There's a lot of weird stuff like this, which I gather comes form said vendor being a .NET developer who had to do a little bit of javascript.
|
# ¿ Sep 27, 2010 19:29 |
|
Ryouga Inverse posted:This is the funniest coding horror I've seen in a while, and this post just makes it even better. I immediately thought of this: http://video.adultswim.com/tim-and-eric-awesome-show-great-job/erics-banking-problems.html
|
# ¿ Nov 8, 2010 18:31 |
|
Munkeymon posted:I still think the string manipulation function I found at work is worse than Duff's, which is at least somewhat understandable. Wow, that's impressive. Here's some zingers from an app I just got told I have to "fix": code:
code:
|
# ¿ Nov 10, 2010 20:26 |
|
Incoherence posted:This is more a coder horror than a coding horror, but we had something fun happen in one of my freshman CS classes. We had take-home exams, because doing a CS exam in a lecture hall on paper is really dumb and just means the graders have to figure out exactly how many syntax errors we let you make before we decide you actually don't know how to program (I ended up TAing the same class afterward). If the professor was smart / evil, he would have accepted the job himself, taken some of the kids cash, then flunked the kid for plagiarizing the profs work.
|
# ¿ Dec 13, 2010 21:58 |
|
pokeyman posted:What an obnoxious way to write. That's how screenplay software is written.
|
# ¿ Dec 20, 2010 01:53 |
|
revmoo posted:
Why are you still using that DOCTYPE?
|
# ¿ Mar 31, 2011 18:17 |
|
revmoo posted:What in the world is wrong with that doctype? It's depreciated, and if you want to actually use any feature of HTML5, your stuff won't validate any more? What features of XHTML Strict do you actually need? Lumpy fucked around with this message at 18:44 on Mar 31, 2011 |
# ¿ Mar 31, 2011 18:42 |
|
revmoo posted:Deprecated in favor of HTML5? I'm not switching to HTML5 until IE catches up. "catches up" with what? IE6 renders pages perfectly fine using the HTML5 doctype. I suspect you are a little unsure on what a Doctype is and does. <!DOCTYPE html> puts IE6 into standards mode exactly like XHTML 1.0 strict. A note on IE6 and HTML5: http://ejohn.org/blog/html5-doctype/ EDIT: and another: http://diveintohtml5.org/semantics.html
|
# ¿ Mar 31, 2011 18:52 |
|
Zombywuf posted:
"Depreciated" was a poor choice of wording on my part. I meant "unless you have an actual valid reason to use XHTML Strict, you should use HTML5, since the XHTML spec is no longer being worked on, and while it works fine now, maybe IE10 or FF 5 (or IE15 or FF12, or whatever) won't support it, whereas even if you don't use any HTML5 tags or features, your regular old web pages will render just fine even in the no-longer supported IE6 if you use the HTML5 doctype, so there is no *default* reason to use XHTML Strict instead of HTML5." Again, you may have a valid reason to do so, and then by all mean, go nuts.
|
# ¿ Mar 31, 2011 23:10 |
|
rjmccall posted:While depreciate and deprecate have some overlap in ordinary English, only deprecate is accepted technical jargon. My spelling is the real horror.
|
# ¿ Apr 1, 2011 00:06 |
|
Orzo posted:what are the comments like, is anyone a member? I am, and let's just say it's mainly a place for designers.
|
# ¿ May 22, 2011 14:13 |
|
Ugg boots posted:No, this is fine, and I do it when it is like this: At the job I just quit, I left blocks like this in commits: code:
|
# ¿ Jun 9, 2011 02:57 |
|
NotShadowStar posted:No loving way. Pics or it didn't happen. At my last job, we had one SVN repo for every single project in the history of company; all 200+ of them. You'd do an initial commit on a new project, and it would be #96345. The next day, you'd commit your first change, and it would be #100032. A year ago, a bunch of the devs were pushing for moving to Mercurial or git, but it got vetoed because, I poo poo you not, the Director of Development was upset that "we can't have every project in the same repo, so no way."
|
# ¿ Jun 11, 2011 16:58 |
|
Scaramouche posted:It's to the point now where I don't even know what CSS is >for< anymore, since it's been manhandled into so many roles, and seems worst-suited to what it was originally intended for (a nice portable way of presenting formatting). It seems like to do anything worthwhile with it you have to have JQeury, JSON, less.js, etc. etc. unless all you're doing is changing link behaviour and image alignments. I think making it a 'proper' language is almost moving in the wrong direction because it just becomes a less ugly JS with relatively sane markup and totally insane everything else. 99.5% of hacks and so on aren't needed if people simply 1) used a real reset.css and 2) used minimal, valid, sematic markup. Sadly, 94.6% of people calling themselves Web Designers (or web developers, or whatever the hell they call themselves these days) do not do either of those things.
|
# ¿ Jul 25, 2011 22:07 |
|
JediGandalf posted:So in this very thread I posted some rather horrific Javascript for a mortgage calculator we use and then attempted to "clean" it up with some jQuery. Well here is my solution: I'm sure you mean the incorrect getting of the radio group value, but not caching your jQuery selectors is the worse part. \/\/ correct. Lumpy fucked around with this message at 01:16 on Sep 3, 2011 |
# ¿ Sep 3, 2011 00:47 |
|
BonzoESC posted:Oh duh; this is why I prefer to use the DOM: Except your way doesn't work either. You are just getting the value of a single radio input by ID just like the other example: http://jsfiddle.net/WxThT/
|
# ¿ Sep 3, 2011 13:13 |
|
lord funk posted:My own idiocy that cost me 10 minutes of confusion: is it because you forgot to do this? [array0 removeAllObjects] I'd do that and then wonder why my loop only ran once.
|
# ¿ Sep 11, 2011 18:59 |
|
Presto posted:I know Adobe Flexbuilder bitches if you do 'for (int i; ...' more than once. I think it's just a warning though. Because actionscrpt is function scoped, not block scoped, so you are duplicating the creation of i.
|
# ¿ Oct 19, 2011 12:19 |
|
Clavius posted:Yeah don't do this. It's much better to just let IE have the square corners and use border-radius. Don't you know that if everything doesn't have drop shadows and rounded corners in all browsers, your site won't work at all / visitors will immediately leave / nobody will understand the 'vision' / be unable to read the content that's nowhere near the rounded corners / become outraged?
|
# ¿ Dec 8, 2011 02:45 |
|
Suspicious Dish posted:Move over AES and PGP, it's time for "The most secure data cryption program in the world": KRYPTOChef! In a million years, whatever humans have evolved to will have this inscribed on their buildings / on their currency: some sort of crazy posted:Who it does not know can only say there. That does not know so exactly !
|
# ¿ Jan 23, 2012 02:13 |
|
Bohemian Cowabunga posted:So can we bitch about lovely teachers here?.. He's obviously just showing you what *not* to do....
|
# ¿ Jun 4, 2012 18:51 |
|
So I had to poke around in a homegrown CMS system that a client's old web dev shop wrote ~6 years ago. It is full of horrors, but the README file takes the cake:code:
|
# ¿ Jun 20, 2012 16:32 |
|
Biowarfare posted:Can we post HTML? Well, the important thing to remember is that all those font loads don't slow down the page load. Oh, wai I'm going to pretend that's a page designed simply to show off every google font in a list. Because my small designer brain can't handle any other possibility.
|
# ¿ Aug 2, 2012 13:30 |
|
Wheany posted:
You fool! Now the one DIV where they didn't want those colors is all wrong!! Put them back! My guess is that whoever wrote than has no clue what a .class is.
|
# ¿ Sep 14, 2012 13:47 |
|
Maluco Marinero posted:I really don't get this. I mean firstly, what security consultant in this day and age will tell them anything other than 'change now god drat it', and secondly, is their architecture so screwed up that they can't migrate to hashed passwords? I mean, they HAVE the passwords, they wouldn't even need the user to enter their password to do the migration to hashes, and they still don't do anything about it. A few jobs ago I discovered they were storing passwords as plain text. I immediately brought it up to my boss, who brought it up to his boss, etc. A couple days later I was told we were not to change anything because Marketing had vetoed it... because how would we email user's their passwords when they clicked "forgot password"?
|
# ¿ Feb 27, 2013 16:03 |
|
MrBadidea posted:
"Ace can be one *and* 11? What kind of God would allow that!"
|
# ¿ Mar 23, 2013 21:01 |
|
Volmarias posted:employeeID and I dare anyone to tell me otherwise code:
|
# ¿ Jul 10, 2013 01:12 |
|
Dren posted:People complain and make snide remarks because they tire of waiting for everyone engaged in the discussion to realize they've been fighting windmills and decide to self-impose a limit on their pedantry. You're both wrong: https://kuler.adobe.com/
|
# ¿ Jul 10, 2013 16:38 |
|
Jewel posted:Ah but that comment is vague you have to specify which operator you're calling! What if that operator is removed at some point from the language? code:
|
# ¿ Jul 25, 2013 15:30 |
|
|
# ¿ Apr 28, 2024 17:10 |
|
Strong Sauce posted:They're required to put them in by law I believe. So not really their fault. As someone who does a lot of work for the booze industry, yes. They have to be there because The Man says so. The Man says so for those awful reasons pointed out earlier, but the companies themselves would love to get rid of those stupid things.
|
# ¿ Jul 25, 2013 21:43 |