- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Admin
+6
Admin
Spot on!! Developers always want to leave their mark and most would be fighting for a chance to rewrite this. Management would see it as fraught with danger (hey, it works at the moment, let's not do anything). In a large enough organisation, some IT managers might be convinced to make the change but good luck selling the idea to core business groups who are happy that things work well at the moment.
People are scared to allow changes on things that work (especially in IT because they don't understand it). Because IT departments often don't have significant budgets in such organisations, it's difficult to make changes or prototype new ideas when noone approves funding. Also, gains in efficiency are probably not seen by business groups, so they don't care. In their view, if the system will appear the same (or have the same functionality) before and after, then what difference does the change make? If, on the other hand, the system will look vastly different, or function differently (even subtly different) then the business is scared of losing the product they know for an unfamiliar new design.
One of (IMHO) the fundamental problems facing IT is making any non-IT groups understand how bad the systems that they have (and are used to) actually are, and how prone they might be to disaster with future expansion. If there is no visible change (green lights vs yellow and red lights on monitors don't count - anyone can fudge them) then there is no change worth making. If there is a visible change, then the business feels they should be driving the change, not IT. Then again, maybe I've worked for the government too long....
Admin
Uhm, and large companies are SOOOO different....
Admin
ROFLLL XP !!!!!! OHW DIDCHER NKOW TIHS YUO GOTTA HAXX3D MEH UP OH WHUD???????????? TATHS IT ,IMA TAKLING TO MEH BROHTER H3'S MEH LEIGTIMATE SUXX3XXoR YUO FKUHHEAD!!!!!!!! LOLLLLLLL EH TEH BIGGEST OF NEO---_----HACK3RS !!!!!!! LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL
CAPATHA!!!!!!!! delenit <----> LOL WHUD CAPTCHA IS TAHT IT WILL OLNY CAPTCHA CHINESE GOLD FARMERS LOLLLLLL XP !!!!!!!!!!!!
Admin
PHP is a tool, just as is java, c#, c/c++, python, ect...What you do with the tool is the important thing. PHP's bad rep comes from it's low barrier of entry; any moron can pick it up. Hence, we see moronic code more often in php than other languages.
Guaranteed though, that the same morons would code crap regardless of the language.
Admin
Admin
Does a sterile carpenter blame his wood?
Admin
Admin
The GP is correct. Fetching all records and accessing by array index is irrelevant to PHP. The code's author was destined for this site purely because of his bad design choices; that he used PHP was simply a bonus.
Admin
OK, I'll play...
What's the point of posting your password, masked like that?Admin
What a coincidence. ******** is the same combination I use on my luggage!
Admin
Admin
hunter2 isn't masked on my browser???
Admin
Of course it isn't masked in your browser since it is your password
Admin
True story. I worked at a place that sold a product that was designed the same way. Except the fact that it's in JSP and the tables are stored in postgres. It's designed and coded by a PHD and a code difference consists of comparing SQL dumps from the database.
No 1 Reason given for the design? Java developers are hard to find this way, all they need to know is sql and how to insert html elements into the various columns.
Admin
Admin
It seems nobody understands the brillance of this method. If the programmers created microsoft access forms then upper management could now "edit" the website without any "hassle".
Admin
[quote user="Rob"]I like the sheer elegance of...
[quote] $first_line = "$st[106]
$st[244]"; $second_line = ""; [/quote]
Why not put multiple lines in the $first_line variable and nothing in $second_line?
Heck, why not actually put $st[244] in the second_line variable and use it like a second line?
Admin
I Am Number Four!
Admin
YUOR LAME N00B!!!!!! MEH WAP_APPS NEVRE BRAEK LIEK TIHS MEH CUSTOM3RS WIHCH INCLUD3 TEH APPEL ADN TEH INTAEL ADN TEH MIRCO$$$$$OFT HEAV A GRAET TIEM WIHT M3 LOL .BELI3VE TIHS || NOT BUT TIHS SI FACT!!!!! XP YUO LAEM BOON WAS NOT EVEN BOARNE WHEN I WAS BOARNE !!!!!!!!!!!!!!!!#
CAPATCH!!!!!!! !!!!!! similis -<<< SI TEH FAG SICKNSS OF YUO WTF COD3RS!!!!!!
Admin
Hey, I'll hate on VB and ASP just as much as PHP. It's all complete and utter garbage.
TRWTF is HTML, CSS, XML and JavaScript, and anything that generates that crap.
Fuck the word wide landfill.
Admin
LOOOR3M 1PSUM DOLOR STI AMEEEEET!!!!1!!
CN53CT7EUER 4DIPISCING 31337!!!+1! SED D1AMM N0NMUMY NIBH EUISMOD TINCIDUNT TU LAOREEEEET LOOOLL XP !!+!!1!!1!
DOL0RE MGNA AL1QU4M ERAT VOLUTPATTTTT!!+!!+!!11 UT WSII 3NIM 4D M1NIM V3NIAAAAMMMM LLLOOOOOLL!1!!+!!!+
Admin
YUO NOOOBIST!!!!!!!!!!!! LOOOOLLLLLS !!!!!! HAEV YUO TEH SIKKENS FRO COPYING TEH LORIM IPZIM INTO TEH L33TGEN OR WHUTT LOLOLLLLLLL XP!!!!
Admin
FTFY
Admin
It's not just in IT that people don't like change
On Innovation
“And let it be noted that there is no more delicate matter to take in hand, nor more dangerous to conduct, nor more doubtful in its success, than to set up as a leader in the introduction of changes. For he who innovates will have for his enemies all those who are well off under the existing order of things, and only the lukewarm supporters in those who might be better off under the new. This lukewarm temper arises partly from the fear of adversaries who have the laws on their side and partly from the incredulity of mankind, who will never admit the merit of anything new, until they have seen it proved by the event.”
Niccolo Machiavelli: “ The Prince”
Admin
WELL HIS NAEM IS NICCOLÒ YOU UNG33K CAEN'T EVAN SPEEL AN O-GRAEV CORRICTLAY!!!!! LOOLLLL XP!!
Admin
Oh come on. Alex is usually so quick to delete comments point out mistakes in the article, but this shit continues to pollute this thread?
Admin
Any time that was said to me was in situations such as having just explained that no, I can't actually install Windows XP on that 286 they've found...
Admin
Reading US HyperG33k's comments is as mentally taxing as listening to someone with major speech impediment.
Admin
You can write bad code in any language, some languages though are too easy and let idiots think they can program.
If the whole world, for example, was C and only C, then suddenly the number of people calling themselves "programmers" would drop dramatically.
IMHO
Admin
Admin
TRWTF is that Canadians get President's Day off and that we (in the U.S.) do not.
Admin
I don't know about that. I blame C for most of the procedural-masquerading-as-OOP crap I run across at my job. Electrical Engineers love C and program every language as if it was C.
I don't think barrier to entry is a good justification for having a steep learning curve for programming languages. If you like to trade maximum low-level control for ease of use, that's good for you. I prefer to have as much boilerplate taken care of so I can concentrate on the interesting stuff myself.
Admin
I thought there might be something humorous in them. Unfortunately, there's none to be found.
Admin
Admin
Admin
I rather doubt it - I've yet to meet a mechanic who didn't promptly replace the free jack with a proper one. (Because the cheap one in the back of the car is notoriously bad.) At least I've never met a mechanic who didn't tell me to replace my crap jack in the back of the car.
I don't get President's Day off. I get Family Day off, which we happened to park on the same day as your President's Day (because Heaven forfend we have a holiday on a day the Americans don't.)
Admin
Are you from the US, by any chance?
Admin
The UZ? Never heard of it. I'm from America!
Admin
That is not ASP. I'm not sure what it is.
ASP would be like
Storing the labels in the DB may still be a WTF unless it retrieves localized versions, and calling it label1 in the database would definitely be a WTF, but using rs(fieldName) is much more common, and much easier, and more readable, and more maintainable, than rs(fieldIndex). I have rarely seen the rs(fieldIndex) style used, and usually it was be people who were doing a loop and didn't know how to use for to loop over object, for each fld in rs.fields, which is hardly ASP's fault.
Admin
Admin
Admin
Should-do-it-smell: Everytime one reads "xxx should do it", the proposer is usually wrong. In this case, bad bad crackers would simply ...
... or ...
Oh, are you US HyperG33k, maybe? In case I got you wrong, and you really mean to go through the unicode alphabet, even if only every 10th entity, your post gets even worse ...
Admin
Admin
You citizens of USA render homage on your dictato... I mean president? Whoa, last time europeans did that half the world got into war and jews were gased.
Oh wait. The pattern fits perfectly: You drive the world permanently into war and pretend it's democracy.
Admin
Parsing the $ inside strings is extraneous to the WTF at hand. I don't even see how that predisposes one to the sort of WTF we see here.
Admin
97 boorish comments about PHP or "over-reliance" on databases (as if that is the problem here) and no one seems to have gotten the real WTF (except perhaps Jerry).
with no WHERE clause.Ponder that for a moment.
According to the code sample I see here, every page fetches all rows from one column ("st" but incorrectly referenced without quotes) of the table into a giant array $st ("set" , as in über-set?), and then the rest of the code decides which parts of that array actually apply to the page request at hand. It is hard to think of a more wasteful and incompetent method of using the database. This is not an example of a database jockey trying to wedge the database where it doesn't belong, but has all the classic signs of the person who thinks of the database as an "object store" and wants to dispense with any of the things relational databases were actually meant to solve.
Admin
Still think it would reduce the sheer number of people calling themselves 'programmers' at least then it'd be easier to round them up for the mass facepalming :-)
Admin
The fact that the original comment said ASP. ASP and ASP.Net are not the same thing at all.