Click here to Skip to main content
11,705,098 members (57,845 online)

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Message Other user using CodeProject Pin
OriginalGriff27-Dec-12 22:00
mvpOriginalGriff27-Dec-12 22:00 
GeneralRe: Message Other user using CodeProject Pin
Suvabrata Roy27-Dec-12 22:13
memberSuvabrata Roy27-Dec-12 22:13 
GeneralRe: Message Other user using CodeProject Pin
OriginalGriff27-Dec-12 22:23
mvpOriginalGriff27-Dec-12 22:23 
GeneralRe: Message Other user using CodeProject Pin
Suvabrata Roy27-Dec-12 23:22
memberSuvabrata Roy27-Dec-12 23:22 
GeneralRe: Message Other user using CodeProject Pin
Jan Steyn9-Jan-13 21:48
memberJan Steyn9-Jan-13 21:48 
GeneralRe: Message Other user using CodeProject Pin
OriginalGriff9-Jan-13 22:06
mvpOriginalGriff9-Jan-13 22:06 
GeneralRe: Message Other user using CodeProject Pin
ProgramFOX26-Dec-12 3:46
memberProgramFOX26-Dec-12 3:46 
GeneralMake the font red! No, black! Can we do both? Pin
AnalogNerd20-Dec-12 8:51
memberAnalogNerd20-Dec-12 8:51 
I just found this little gem in the same app I'm rewriting. This legacy website is the gift that just keeps on giving.

<span style="font-weight: normal; color: Red; font-size: 11pt; font-family: Arial">
    <span style="color: #000000">
        This paragraph is black!
        
 
       <a href="" style="color:black">And this link is black!</a>
    </span>
    
 
    But this paragraph is red!
    
 
</span>
<span style="font-weight: normal; color: Red; font-size: 11pt; font-family: Arial">
    And this other text is red, but identical in every other way.
</span>

Also, it goes without saying that I cleaned this up for the post. There's no rhyme or reason to the indentation and line breaks in this code.
GeneralRe: Make the font red! No, black! Can we do both? Pin
Rob Grainger20-Dec-12 9:21
memberRob Grainger20-Dec-12 9:21 
GeneralRe: Make the font red! No, black! Can we do both? Pin
Zac Greve20-Dec-12 11:23
memberZac Greve20-Dec-12 11:23 
GeneralRe: Make the font red! No, black! Can we do both? Pin
jlopez78826-Dec-12 18:21
memberjlopez78826-Dec-12 18:21 
GeneralRe: Make the font red! No, black! Can we do both? Pin
Marcus Kramer27-Dec-12 6:23
memberMarcus Kramer27-Dec-12 6:23 
GeneralRe: Make the font red! No, black! Can we do both? Pin
Zac Greve30-Dec-12 12:08
memberZac Greve30-Dec-12 12:08 
GeneralRe: Make the font red! No, black! Can we do both? Pin
Rob Grainger4-Jan-13 9:58
memberRob Grainger4-Jan-13 9:58 
GeneralVal Grind (the wrong kind) Pin
Rob Grainger20-Dec-12 5:12
memberRob Grainger20-Dec-12 5:12 
GeneralRe: Val Grind (the wrong kind) Pin
Naerling20-Dec-12 10:40
memberNaerling20-Dec-12 10:40 
GeneralRe: Val Grind (the wrong kind) Pin
Nagy Vilmos20-Dec-12 22:55
memberNagy Vilmos20-Dec-12 22:55 
GeneralRe: Val Grind (the wrong kind) Pin
Brady Kelly2-Jan-13 21:46
memberBrady Kelly2-Jan-13 21:46 
GeneralRe: Val Grind (the wrong kind) Pin
Nagy Vilmos2-Jan-13 22:52
memberNagy Vilmos2-Jan-13 22:52 
GeneralRe: Val Grind (the wrong kind) Pin
LesF4-Jan-13 9:51
memberLesF4-Jan-13 9:51 
GeneralRe: Val Grind (the wrong kind) Pin
Rob Grainger4-Jan-13 10:09
memberRob Grainger4-Jan-13 10:09 
GeneralRe: Val Grind (the wrong kind) Pin
Naerling4-Jan-13 11:56
memberNaerling4-Jan-13 11:56 
GeneralRe: Val Grind (the wrong kind) Pin
Member 46088986-Jan-13 11:45
memberMember 46088986-Jan-13 11:45 
GeneralRe: Val Grind (the wrong kind) Pin
Naerling6-Jan-13 12:26
memberNaerling6-Jan-13 12:26 
GeneralRe: Val Grind (the wrong kind) Pin
Chris Quinn24-Dec-12 0:19
memberChris Quinn24-Dec-12 0:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 29 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid