• frits (unregistered) in reply to dugginator
    dugginator:
    funny...******** is my password
    Weird. I don't know how ******** relates to the article.
  • (cs) in reply to Number One
    Number One:
    Josh M.: Where am I? Number 2: In Innetech. Josh M. / Number 15: What do you want? Number 2: We want Customer Tables. Number 15: Whose side are you on? Number 2: That would be telling. We want Customer Tables... Customer Tables... Customer Tables. Number 15: You won't get it. Number 2: By hook or by crook, we will. Number 15: Who are you? Number 2: The new Number 2. Number 15: Who is Number 1? Number 2: You are Number 15. Number 15: I am not a number, I am a free man^H^H^H^H^H^H^H^H^H minimum wage slave.

    +6

  • Mitchell (unregistered) in reply to The Corrector
    The Corrector:
    Carlos:
    TRWTF is that 14 developers went by and nobody ever thought that maybe the cost of fixing the problems in the application is less that the cost of hiring 14 developers and getting them to know the code base management.
    FTFY

    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....

  • James (unregistered) in reply to MadX
    MadX:
    John Smith:
    Why are small companies so fucking stupid and ignorant of pretty much EVERYTHING, including most of the time their own core business?

    Snake-oil CEOS hire snake-oil managers hire snake-oil grunts.

    Uhm, and large companies are SOOOO different....

  • US HyperG33k (unregistered) in reply to Some guy
    Some guy:
    hoodaticus:
    US HyperG33k:
    LOOLLL! WHAT AM I ???AH EYS I FORGOT YOU DON NOW. GUESS THE ALZHEIMER IS TAKING YUO ::: FAGGOTTT!!!LOL XP

    WELL I GUSS THSI IS MA LAST POST ; YOU ARE ALL HYPER FAQS WITH NO RESPECT FOR MEH WISDOM NAD NO MUSTARD!!!

    CAPTHA!!! ABICO - IS TEH RED BULL IF THE DEATH !!! <-- XP LOOOOOOOOOOOOOOOOOL

    Thank God. It's gone.

    I was just about to ask who told JeffK about this site.

    CAPTCHA: inhibeo - video of people displaying inhibited judgement? giggity.

    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 !!!!!!!!!!!!

  • You'd think that...but you'd be wrong (unregistered) in reply to venio
    venio:
    The Corrector Corrector:
    Yes. Because everything PHP automatically sucks.
    Agreed. It's like you read my mind.
    It's a poor craftsman that blames his tools.

    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.

  • Wrong (unregistered) in reply to You'd think that...but you'd be wrong
    You'd think that...but you'd be wrong:
    venio:
    The Corrector Corrector:
    Yes. Because everything PHP automatically sucks.
    Agreed. It's like you read my mind.
    It's a poor craftsman that blames his tools.

    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.

    This argument is stupid. Would a mechanic use the jack they give you in the back of your car?

  • Wrong's Sock Puppet (unregistered) in reply to Wrong
    Wrong:
    You'd think that...but you'd be wrong:
    venio:
    The Corrector Corrector:
    Yes. Because everything PHP automatically sucks.
    Agreed. It's like you read my mind.
    It's a poor craftsman that blames his tools.

    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.

    This argument is stupid. Would a mechanic use the jack they give you in the back of your car?

    Does a sterile carpenter blame his wood?

  • Someone Who Can't be Bothered to Log In from Work (unregistered) in reply to Wrong's Sock Puppet
    Wrong's Sock Puppet:
    Wrong:
    You'd think that...but you'd be wrong:
    venio:
    The Corrector Corrector:
    Yes. Because everything PHP automatically sucks.
    Agreed. It's like you read my mind.
    It's a poor craftsman that blames his tools.

    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.

    This argument is stupid. Would a mechanic use the jack they give you in the back of your car?

    Does a sterile carpenter blame his wood?

    blue please

  • (cs) in reply to Wrong
    Wrong:
    You'd think that...but you'd be wrong:
    It's a poor craftsman that blames his tools.

    ...

    Guaranteed though, that the same morons would code crap regardless of the language.

    This argument is stupid: Would a mechanic use the jack they give you in the back of your car?
    FTFY; if the mechanic's car had a flat tire, yes, he would.

    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.

  • Fred (unregistered) in reply to dugginator

    OK, I'll play...

    dugginator:
    funny...******** is my password
    What's the point of posting your password, masked like that?
  • Aninnymouse (unregistered) in reply to frits
    dugginator:
    funny...******** is my password

    What a coincidence. ******** is the same combination I use on my luggage!

  • ÃÆââ†(unregistered) in reply to US HyperG33k
    US HyperG33k:
    Some guy:
    hoodaticus:
    US HyperG33k:
    LOOLLL! WHAT AM I ???AH EYS I FORGOT YOU DON NOW. GUESS THE ALZHEIMER IS TAKING YUO ::: FAGGOTTT!!!LOL XP

    WELL I GUSS THSI IS MA LAST POST ; YOU ARE ALL HYPER FAQS WITH NO RESPECT FOR MEH WISDOM NAD NO MUSTARD!!!

    CAPTHA!!! ABICO - IS TEH RED BULL IF THE DEATH !!! <-- XP LOOOOOOOOOOOOOOOOOL

    Thank God. It's gone.

    I was just about to ask who told JeffK about this site.

    CAPTCHA: inhibeo - video of people displaying inhibited judgement? giggity.

    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 !!!!!!!!!!!!

    Keep the WTF's coming. I know everytime we read a story like this, only someone like you can be that stupid to design a web app like that.

  • Brandon (unregistered) in reply to Fred
    Fred:
    OK, I'll play...
    dugginator:
    funny...******** is my password
    What's the point of posting your password, masked like that?

    hunter2 isn't masked on my browser???

  • CAhrens (unregistered) in reply to Brandon

    Of course it isn't masked in your browser since it is your password

  • cicobuff (unregistered)

    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.

  • A Random Guy (unregistered) in reply to CAhrens
    CAhrens:
    Of course it isn't masked in your browser since it is your ********
    Your what? Don't keep me in suspense!
  • Pr0gramm3r (unregistered)

    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".

  • Gunslinger (unregistered) in reply to Rob

    [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?

  • Cheng (unregistered)

    I Am Number Four!

  • US HyperG33k (unregistered) in reply to ÃÆâââ€
    ÃÆâââ€:
    US HyperG33k:
    Some guy:
    hoodaticus:
    US HyperG33k:
    LOOLLL! WHAT AM I ???AH EYS I FORGOT YOU DON NOW. GUESS THE ALZHEIMER IS TAKING YUO ::: FAGGOTTT!!!LOL XP

    WELL I GUSS THSI IS MA LAST POST ; YOU ARE ALL HYPER FAQS WITH NO RESPECT FOR MEH WISDOM NAD NO MUSTARD!!!

    CAPTHA!!! ABICO - IS TEH RED BULL IF THE DEATH !!! <-- XP LOOOOOOOOOOOOOOOOOL

    Thank God. It's gone.

    I was just about to ask who told JeffK about this site.

    CAPTCHA: inhibeo - video of people displaying inhibited judgement? giggity.

    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 !!!!!!!!!!!!

    Keep the WTF's coming. I know everytime we read a story like this, only someone like you can be that stupid to design a web app like that.

    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!!!!!!

  • Ben (unregistered) in reply to Miff
    Miff:
    Of course, this is definitely PHP's fault. This NEVER would have happened if he used, say, ASP.

    Oh wait.

    label1.Text = st[24];
    label2.Text = st[25];
    label3.Text = st[124];
    label4.Text = st[255];
    label5.Text = st[106] + "\r\n\r\n" + st[244];
    label6.Text = "";
    label7.Text = st[18];

    But TRWTF is PHP, right guyz?

    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.

  • just me (unregistered) in reply to US HyperG33k

    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!!+!!!+

  • US HyperG33k (unregistered) in reply to just me
    just me:
    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!!+!!!+

    YUO NOOOBIST!!!!!!!!!!!! LOOOOLLLLLS !!!!!! HAEV YUO TEH SIKKENS FRO COPYING TEH LORIM IPZIM INTO TEH L33TGEN OR WHUTT LOLOLLLLLLL XP!!!!

    CAPATAH!!!!!!! wisi -<<<< IS TEH SUPERLATIOVE OF TEH 
    ========       ^^^^       SUPERLATOVES OF WIZDOM 
                              === IZ MEHHHH!!!! XP 
    
    LPPPOOOOL
  • The Flaming Foobar (unregistered) in reply to Correction man Corrector
    Correction man Corrector:
    FTFTFYFY

    FTFY

  • Boz (unregistered) in reply to Mitchell

    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”

  • US HyperG33k (unregistered) in reply to Boz
    Boz:
    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”

    WELL HIS NAEM IS NICCOLÒ YOU UNG33K CAEN'T EVAN SPEEL AN O-GRAEV CORRICTLAY!!!!! LOOLLLL XP!!

    CEPATCHA !!!!!!!!!!!! sagaciter <----<<<< TEH LAST CUPP FO SAGACITRAYYAY I HED WASS BAXX THAN IN TEH OLDEN DAYS LOOOOLLLLLLLL XP !!!!!
                               ------------
  • Anon (unregistered) in reply to US HyperG33k

    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?

  • something (unregistered) in reply to You'd think that...but you'd be wrong
    You'd think that...but you'd be wrong:
    It's a poor craftsman that blames his tools.

    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...

  • meta-frits (unregistered)

    Reading US HyperG33k's comments is as mentally taxing as listening to someone with major speech impediment.

  • Bald Rick (unregistered)

    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

  • Peter (unregistered) in reply to meta-frits
    meta-frits:
    Reading US HyperG33k's comments is as mentally taxing as listening to someone with major speech impediment.
    You're reading them???
  • Stephen Cleary (unregistered) in reply to The Corrector Corrector
    The Corrector Corrector:
    Larry:
    TRWTF is President's Day.
    FTFYA

    TRWTF is that Canadians get President's Day off and that we (in the U.S.) do not.

  • (cs) in reply to Bald Rick
    Bald Rick:
    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

    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.

  • meta-frits (unregistered) in reply to Peter
    Peter:
    meta-frits:
    Reading US HyperG33k's comments is as mentally taxing as listening to someone with major speech impediment.
    You're reading them???

    I thought there might be something humorous in them. Unfortunately, there's none to be found.

  • Another Corrector (unregistered) in reply to meta-frits
    meta-frits:
    Peter:
    meta-frits:
    Reading US HyperG33k's comments is as mentally taxing as listening to someone with major speech impediment.
    You're reading them???

    I thought there might be a new article today. Unfortunately, there's none to be found.

    FTFY

  • Childish (unregistered) in reply to Larry
    Larry:
    TRWTF is internationalization.
    No, TRWTF is that the word is often internationalisation.
  • A Gould (unregistered) in reply to boog
    boog:
    Wrong:
    Would a mechanic use the jack they give you in the back of your car?
    FTFY; if the mechanic's car had a flat tire, yes, he would.

    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.

    Stephen Cleary:
    TRWTF is that Canadians get President's Day off and that we (in the U.S.) do not.

    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.)

  • english girl (unregistered) in reply to Childish
    Childish:
    Larry:
    TRWTF is internationalization.
    No, TRWTF is that the word is often internationalisation.

    Are you from the US, by any chance?

  • (cs) in reply to english girl
    english girl:
    Childish:
    Larry:
    TRWTF is internationalization.
    No, TRWTF is that the word is often internationalisation.

    Are you from the US, by any chance?

    The UZ? Never heard of it. I'm from America!

  • Brian White (unregistered) in reply to Miff
    Miff:
    Of course, this is definitely PHP's fault. This NEVER would have happened if he used, say, ASP.

    Oh wait.

    label1.Text = st[24];
    label2.Text = st[25];
    label3.Text = st[124];
    label4.Text = st[255];
    label5.Text = st[106] + "\r\n\r\n" + st[244];
    label6.Text = "";
    label7.Text = st[18];

    But TRWTF is PHP, right guyz?

    That is not ASP. I'm not sure what it is.
    ASP would be like

    <label><%= rs("Label1") %></label>

    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.

  • (cs) in reply to Brian White
    Brian White:
    Miff:
    Of course, this is definitely PHP's fault. This NEVER would have happened if he used, say, ASP.

    Oh wait.

    label1.Text = st[24];
    label2.Text = st[25];
    label3.Text = st[124];
    label4.Text = st[255];
    label5.Text = st[106] + "\r\n\r\n" + st[244];
    label6.Text = "";
    label7.Text = st[18];

    But TRWTF is PHP, right guyz?

    That is not ASP. I'm not sure what it is.
    ASP would be like

    <label><%= rs("Label1") %></label>

    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.

    What makes you think this isn't ASP.NET code behind?

  • (cs) in reply to US HyperG33k
    US HyperG33k:
    Boz:
    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”

    WELL HIS NAEM IS NICCOLÒ YOU UNG33K CAEN'T EVAN SPEEL AN O-GRAEV CORRICTLAY!!!!! LOOLLLL XP!!

    CEPATCHA !!!!!!!!!!!! sagaciter <----<<<< TEH LAST CUPP FO SAGACITRAYYAY I HED WASS BAXX THAN IN TEH OLDEN DAYS LOOOOLLLLLLLL XP !!!!!
                               ------------
    How about refusing to post any comment that has > 4/10 characters in upper case? Just a quick unicode scan of every tenth character should do it...
  • empathic (unregistered) in reply to hoodaticus
    hoodaticus:
    US HyperG33k:
    Boz:
    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”

    WELL HIS NAEM IS NICCOLÒ YOU UNG33K CAEN'T EVAN SPEEL AN O-GRAEV CORRICTLAY!!!!! LOOLLLL XP!!

    CEPATCHA !!!!!!!!!!!! sagaciter <----<<<< TEH LAST CUPP FO SAGACITRAYYAY I HED WASS BAXX THAN IN TEH OLDEN DAYS LOOOOLLLLLLLL XP !!!!!
                               ------------
    How about refusing to post any comment that has > 4/10 characters in upper case? Just a quick unicode scan of every tenth character should do it...

    Should-do-it-smell: Everytime one reads "xxx should do it", the proposer is usually wrong. In this case, bad bad crackers would simply ...

    012345678901234567890123456789012345678901234567890123456789
     I AM TEH  US HYPER  G33K LOOL LLLLL XP!!!!!!!!!!!!!!
    

    ... or ...

    012345678901234567890123456789012345678901234567890123456789
     I AM TEH uS HYPER G33K LOOL LlLLL XP!!!!!!!!!!!!!!
    

    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 ...

  • Titicaca (unregistered) in reply to Stephen Cleary
    Stephen Cleary:
    TRWTF is that Canadians get President's Day off on President's Day and that we (in the U.S.) do not.
    FTFY. More proof that Canadians are better lovers.
  • European (unregistered)

    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.

  • rycamor (unregistered) in reply to Jaime
    Jaime:
    Miff:
    Of course, this is definitely PHP's fault. This NEVER would have happened if he used, say, ASP.

    Oh wait.

    label1.Text = st[24];
    label2.Text = st[25];
    label3.Text = st[124];
    label4.Text = st[255];
    label5.Text = st[106] + "\r\n\r\n" + st[244];
    label6.Text = "";
    label7.Text = st[18];

    But TRWTF is PHP, right guyz?

    Yes, it's partly PHP's fault. PHP's feature of $ parsing inside strings seems be begging to be abused like this.

    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.

  • rycamor (unregistered)

    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).

    SELECT * (etc...)
    with no WHERE clause.
    while($row_st = mysql_fetch_array($result_st))
    {
        $st[] =stripslashes($row_st[st]);
    }
    

    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.

  • Bald Rick (unregistered) in reply to frits
    frits:
    Bald Rick:
    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

    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.

    Yep, I see your point.

    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 :-)

  • Brian White (unregistered) in reply to hoodaticus
    hoodaticus:
    Brian White:
    Miff:
    Of course, this is definitely PHP's fault. This NEVER would have happened if he used, say, ASP.

    Oh wait.

    label1.Text = st[24];
    label2.Text = st[25];
    label3.Text = st[124];
    label4.Text = st[255];
    label5.Text = st[106] + "\r\n\r\n" + st[244];
    label6.Text = "";
    label7.Text = st[18];

    But TRWTF is PHP, right guyz?

    That is not ASP. I'm not sure what it is.
    ASP would be like

    <label><%= rs("Label1") %></label>

    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.

    What makes you think this isn't ASP.NET code behind?

    The fact that the original comment said ASP. ASP and ASP.Net are not the same thing at all.

Leave a comment on “Number 15”

Log In or post as a guest

Replying to comment #:

« Return to Article