Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Idea: Simple.

    Come across any shocking code recently? By shocking I mean outdated, redundant, absurd, etc

    Heres my first...

    Today, I saw... an alink attribute! I thought the Millenium got rid of them!

    Offending code:
    HTML Code:
    <body alink="#cc9933">

  2.  

  3. #2
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,656
    Member #
    1234
    Liked
    137 times
    Read this:
    www.thedailywtf.com
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Right on, Wired :-D

  5. #4
    Senior Member diddy's Avatar
    Join Date
    Jun 2008
    Location
    Sydney, Australia
    Posts
    502
    Member #
    16955
    Quote Originally Posted by bfsog
    Idea: Simple.

    Come across any shocking code recently? By shocking I mean outdated, redundant, absurd, etc

    Heres my first...

    Today, I saw... an alink attribute! I thought the Millenium got rid of them!

    Offending code:
    HTML Code:
    <body alink="#cc9933">
    at least hex code was used, instead of <body alink="blue">

  6. #5
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    Code:
    <cfif (site_guid is "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")>
      <cfoutput>
      <!--- we'll need to admin this --->
      <cfmail ... />
      </cfoutput>
    </cfif>
    
    <cfif (site_guid is "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")>
      <cfoutput>
      <!--- we'll need to admin this --->
      <cfmail ... />
      </cfoutput>
    </cfif>
    Now imagine that copied 76 times. Every time, you see that the "we'll need to admin this" comment is copied also, but nobody ever took the time to actually make it an admin feature or at least convert it to a function with a site guid parameter... Not even a switch statement or an if-else structure at the least, just a straight line of ifs... OMGWTFBBQ?!?!?!

    You can see why I beat my head on the keyboard once and a while.

  7. #6
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    I had a print out at my old job (not sure where that page is now), but it was the first page of a style sheet to a something.microsoft.com

    The first line was:
    /* stupid IE Margin Hack */


    (I believe I posted the link here and checked back every 6-12 hours to see if it had been taken down, and it didn't last a whole day.)
    Shani

    I have an eye for detail like you'd never believe.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:06 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com