Click here to Skip to main content
15,899,313 members

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

 
GeneralTo Self-Close the BR or Not to Close the BR PinPopular
AspDotNetDev15-Jul-11 8:54
protectorAspDotNetDev15-Jul-11 8:54 
JokeRe: To Self-Close the BR or Not to Close the BR PinPopular
StM0n15-Jul-11 20:11
StM0n15-Jul-11 20:11 
GeneralRe: To Self-Close the BR or Not to Close the BR Pin
Jeroen De Dauw16-Jul-11 6:58
Jeroen De Dauw16-Jul-11 6:58 
GeneralRe: To Self-Close the BR or Not to Close the BR [modified] Pin
dawmail33316-Jul-11 21:19
dawmail33316-Jul-11 21:19 
GeneralRe: To Self-Close the BR or Not to Close the BR Pin
MikeD 226-Jul-11 4:14
MikeD 226-Jul-11 4:14 
GeneralRe: To Self-Close the BR or Not to Close the BR PinPopular
Naruki26-Jul-11 5:22
Naruki26-Jul-11 5:22 
GeneralRe: To Self-Close the BR or Not to Close the BR Pin
Ravi Sant26-Jul-11 5:56
Ravi Sant26-Jul-11 5:56 
GeneralRe: To Self-Close the BR or Not to Close the BR Pin
BobJanova26-Jul-11 6:09
BobJanova26-Jul-11 6:09 
There is a semantic difference between <p> (or other similar elements like <pre> and <dd>) and <br> (and I don't just mean that one is a container tag and one is a separator). It's not just a matter of (ab)using styles to make one look like the other. A paragraph is one group of related text, which may have explicit line breaks (<br> or, if being XHTML compliant, <br/>) within it. <br> shouldn't be used to split paragraphs, any more than <p> should be used to cause an in-paragraph line break, even if you can mess with the styles so that is the appearance.

(An exception would be code listings where it's usual to run the whole thing inside one <pre>, even though one could logically argue that it should be one per method.)
GeneralJumping on the Band wagon Pin
icestatue14-Jul-11 15:55
icestatue14-Jul-11 15:55 
GeneralRe: Jumping on the Band wagon Pin
dawmail33316-Jul-11 21:17
dawmail33316-Jul-11 21:17 
GeneralRe: Jumping on the Band wagon Pin
Johann Gerell26-Jul-11 2:27
Johann Gerell26-Jul-11 2:27 
GeneralWhen an error just doesn't give you enough information PinPopular
OriginalGriff13-Jul-11 8:53
mveOriginalGriff13-Jul-11 8:53 
GeneralRe: When an error just doesn't give you enough information Pin
fjdiewornncalwe13-Jul-11 10:18
professionalfjdiewornncalwe13-Jul-11 10:18 
GeneralRe: When an error just doesn't give you enough information Pin
CDP180213-Jul-11 22:23
CDP180213-Jul-11 22:23 
GeneralRe: When an error just doesn't give you enough information Pin
Fabio Franco14-Jul-11 4:03
professionalFabio Franco14-Jul-11 4:03 
GeneralRe: When an error just doesn't give you enough information PinPopular
BrainiacV14-Jul-11 3:28
BrainiacV14-Jul-11 3:28 
GeneralRe: When an error just doesn't give you enough information Pin
John R. Shaw16-Jul-11 6:56
John R. Shaw16-Jul-11 6:56 
GeneralRe: When an error just doesn't give you enough information Pin
S Douglas23-Aug-11 17:01
professionalS Douglas23-Aug-11 17:01 
GeneralRe: When an error just doesn't give you enough information Pin
BrainiacV24-Aug-11 3:44
BrainiacV24-Aug-11 3:44 
GeneralRe: When an error just doesn't give you enough information Pin
S Douglas24-Aug-11 4:49
professionalS Douglas24-Aug-11 4:49 
GeneralRe: When an error just doesn't give you enough information Pin
BrainiacV24-Aug-11 10:08
BrainiacV24-Aug-11 10:08 
GeneralRe: When an error just doesn't give you enough information Pin
StM0n14-Jul-11 20:45
StM0n14-Jul-11 20:45 
GeneralRe: When an error just doesn't give you enough information Pin
BobJanova14-Jul-11 22:30
BobJanova14-Jul-11 22:30 
GeneralRe: When an error just doesn't give you enough information Pin
Lutosław14-Jul-11 23:27
Lutosław14-Jul-11 23:27 
GeneralRe: When an error just doesn't give you enough information Pin
BillW3315-Jul-11 5:11
professionalBillW3315-Jul-11 5:11 

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

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