Click here to Skip to main content
15,127,003 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: Style Guide for Obfuscation? Pin
Richard Deeming11-Feb-16 3:36
mveRichard Deeming11-Feb-16 3:36 
GeneralRe: Style Guide for Obfuscation? Pin
#realJSOP11-Feb-16 3:38
mva#realJSOP11-Feb-16 3:38 
GeneralRe: Style Guide for Obfuscation? Pin
RugbyLeague11-Feb-16 4:58
MemberRugbyLeague11-Feb-16 4:58 
GeneralRe: Style Guide for Obfuscation? Pin
Nish Nishant17-Feb-16 4:16
sitebuilderNish Nishant17-Feb-16 4:16 
Generaltesting 1.2.3. Pin
Duncan Edwards Jones9-Feb-16 2:06
professionalDuncan Edwards Jones9-Feb-16 2:06 
GeneralRe: testing 1.2.3. Pin
F-ES Sitecore9-Feb-16 3:50
mveF-ES Sitecore9-Feb-16 3:50 
GeneralRe: testing 1.2.3. Pin
Rob Grainger15-Feb-16 1:41
MemberRob Grainger15-Feb-16 1:41 
GeneralIntellisense Strikes Again Pin
Foothill5-Feb-16 9:00
professionalFoothill5-Feb-16 9:00 
I ended up doing this to myself a few weeks ago.
C#
public class MyObject
{
  private int _number;

  public MyObject(int number)
  {
    _number = number;
  }

  public int Number
  {
    get { return Number; }
  }
}


If took me 20 minutes to figure out why I kept getting a stackoverflow execption. D'Oh! | :doh:
I need to pay more attention to what intellisense is suggesting I type. This goes double for properties since VS steps over them by default.
if (Object.DividedByZero == true) { Universe.Implode(); }

GeneralRe: Intellisense Strikes Again Pin
PIEBALDconsult5-Feb-16 10:00
professionalPIEBALDconsult5-Feb-16 10:00 
GeneralRe: Intellisense Strikes Again Pin
Brisingr Aerowing5-Feb-16 10:01
professionalBrisingr Aerowing5-Feb-16 10:01 
GeneralRe: Intellisense Strikes Again Pin
kmoorevs6-Feb-16 6:04
Memberkmoorevs6-Feb-16 6:04 
GeneralRe: Intellisense Strikes Again Pin
Brisingr Aerowing6-Feb-16 6:10
professionalBrisingr Aerowing6-Feb-16 6:10 
GeneralRe: Intellisense Strikes Again Pin
wout de zeeuw5-Feb-16 13:11
Memberwout de zeeuw5-Feb-16 13:11 
GeneralRe: Intellisense Strikes Again Pin
Brisingr Aerowing5-Feb-16 13:52
professionalBrisingr Aerowing5-Feb-16 13:52 
GeneralRe: Intellisense Strikes Again Pin
wout de zeeuw5-Feb-16 14:02
Memberwout de zeeuw5-Feb-16 14:02 
GeneralRe: Intellisense Strikes Again Pin
Camilo Reyes5-Feb-16 17:01
professionalCamilo Reyes5-Feb-16 17:01 
GeneralRe: Intellisense Strikes Again Pin
wout de zeeuw5-Feb-16 17:26
Memberwout de zeeuw5-Feb-16 17:26 
GeneralRe: Intellisense Strikes Again Pin
Brisingr Aerowing6-Feb-16 6:11
professionalBrisingr Aerowing6-Feb-16 6:11 
GeneralRe: Intellisense Strikes Again Pin
wout de zeeuw8-Feb-16 0:41
Memberwout de zeeuw8-Feb-16 0:41 
GeneralRe: Intellisense Strikes Again Pin
Shameel8-Feb-16 23:01
professionalShameel8-Feb-16 23:01 
GeneralRe: Intellisense Strikes Again Pin
Abhinav S9-Feb-16 7:44
MemberAbhinav S9-Feb-16 7:44 
GeneralRe: Intellisense Strikes Again Pin
Sinisa Hajnal17-Feb-16 1:18
professionalSinisa Hajnal17-Feb-16 1:18 
GeneralRe: Intellisense Strikes Again Pin
Sascha Lefèvre17-Feb-16 2:09
professionalSascha Lefèvre17-Feb-16 2:09 
GeneralRe: Intellisense Strikes Again Pin
Sinisa Hajnal17-Feb-16 21:39
professionalSinisa Hajnal17-Feb-16 21:39 
GeneralRe: Intellisense Strikes Again Pin
Kornfeld Eliyahu Peter17-Feb-16 2:40
professionalKornfeld Eliyahu Peter17-Feb-16 2:40 

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.