Click here to Skip to main content
15,885,936 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.

 
GeneralRe: Kinda guy Pin
CDP18029-May-12 23:14
CDP18029-May-12 23:14 
GeneralRe: Kinda guy Pin
BillW3310-May-12 4:05
professionalBillW3310-May-12 4:05 
GeneralRe: Kinda guy Pin
PIEBALDconsult10-May-12 6:19
mvePIEBALDconsult10-May-12 6:19 
GeneralConstant Headache Pin
AspDotNetDev7-May-12 15:04
protectorAspDotNetDev7-May-12 15:04 
GeneralRe: Constant Headache Pin
ekolis9-May-12 6:26
ekolis9-May-12 6:26 
GeneralRe: Constant Headache Pin
AspDotNetDev9-May-12 7:12
protectorAspDotNetDev9-May-12 7:12 
GeneralRe: Constant Headache Pin
ZurdoDev10-May-12 6:39
professionalZurdoDev10-May-12 6:39 
GeneralRe: Constant Headache Pin
AspDotNetDev10-May-12 7:10
protectorAspDotNetDev10-May-12 7:10 
ryanb31 wrote:
At least VB allows the 1 to be concatenated into the string.


Which is completely terrible that it allows you to do that. I also came across some code the other day that said something like this:

VB.NET
Dim str As String = "blah" & i + 1


In C#, you'd do this:

C#
string str = "blah" + (i + 1).ToString();


Which I think is much more understandable.

GeneralRe: Constant Headache Pin
Jörgen Andersson11-May-12 8:44
professionalJörgen Andersson11-May-12 8:44 
GeneralRe: Constant Headache Pin
AspDotNetDev11-May-12 10:34
protectorAspDotNetDev11-May-12 10:34 
GeneralRe: Constant Headache Pin
AspDotNetDev12-May-12 10:13
protectorAspDotNetDev12-May-12 10:13 
GeneralRe: Constant Headache Pin
Jörgen Andersson15-May-12 21:17
professionalJörgen Andersson15-May-12 21:17 
GeneralRe: Constant Headache Pin
AspDotNetDev15-May-12 22:09
protectorAspDotNetDev15-May-12 22:09 
GeneralRe: Constant Headache Pin
Ankush Bansal12-May-12 6:26
Ankush Bansal12-May-12 6:26 
GeneralRe: Constant Headache Pin
BobJanova11-May-12 3:56
BobJanova11-May-12 3:56 
Generalbad SQL case PinPopular
crazedDotNetDev7-May-12 10:19
crazedDotNetDev7-May-12 10:19 
GeneralRe: bad SQL case Pin
Brisingr Aerowing7-May-12 11:44
professionalBrisingr Aerowing7-May-12 11:44 
GeneralRe: bad SQL case PinPopular
crazedDotNetDev7-May-12 11:55
crazedDotNetDev7-May-12 11:55 
GeneralRe: bad SQL case Pin
Sentenryu8-May-12 9:14
Sentenryu8-May-12 9:14 
GeneralRe: bad SQL case Pin
crazedDotNetDev8-May-12 11:41
crazedDotNetDev8-May-12 11:41 
GeneralRe: bad SQL case Pin
KP Lee9-May-12 21:13
KP Lee9-May-12 21:13 
JokeApparently there is no limit to naming conventions for method PinPopular
thedavejay3-May-12 5:27
thedavejay3-May-12 5:27 
GeneralRe: Apparently there is no limit to naming conventions for method PinPopular
OriginalGriff3-May-12 5:58
mveOriginalGriff3-May-12 5:58 
GeneralRe: Apparently there is no limit to naming conventions for method PinPopular
thedavejay3-May-12 6:23
thedavejay3-May-12 6:23 
GeneralRe: Apparently there is no limit to naming conventions for method Pin
Gary Wheeler4-May-12 1:08
Gary Wheeler4-May-12 1:08 

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.