Click here to Skip to main content
15,038,345 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: Intellisense Strikes Again Pin
Shameel8-Feb-16 22:01
professionalShameel8-Feb-16 22:01 
GeneralRe: Intellisense Strikes Again Pin
Abhinav S9-Feb-16 6:44
MemberAbhinav S9-Feb-16 6:44 
GeneralRe: Intellisense Strikes Again Pin
Sinisa Hajnal17-Feb-16 0:18
professionalSinisa Hajnal17-Feb-16 0:18 
GeneralRe: Intellisense Strikes Again Pin
Sascha Lefèvre17-Feb-16 1:09
professionalSascha Lefèvre17-Feb-16 1:09 
GeneralRe: Intellisense Strikes Again Pin
Sinisa Hajnal17-Feb-16 20:39
professionalSinisa Hajnal17-Feb-16 20:39 
GeneralRe: Intellisense Strikes Again Pin
Kornfeld Eliyahu Peter17-Feb-16 1:40
professionalKornfeld Eliyahu Peter17-Feb-16 1:40 
GeneralRe: Intellisense Strikes Again Pin
Sinisa Hajnal17-Feb-16 20:58
professionalSinisa Hajnal17-Feb-16 20:58 
GeneralRe: Intellisense Strikes Again Pin
Richard Deeming18-Feb-16 3:03
mveRichard Deeming18-Feb-16 3:03 
Or, with C# 6:
public int Number { get; } = 42;

// Or:

public int Number { get; }

public YourClass()
{
    Number = 42;
}

Smile | :)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralFrom this week's mobile newsletter Pin
Richard MacCutchan21-Jan-16 5:09
mveRichard MacCutchan21-Jan-16 5:09 
GeneralRe: From this week's mobile newsletter Pin
F-ES Sitecore8-Feb-16 23:56
mveF-ES Sitecore8-Feb-16 23:56 
Generaltricky C# literals Pin
Tomas Takac20-Jan-16 3:00
MemberTomas Takac20-Jan-16 3:00 
GeneralRe: tricky C# literals Pin
PIEBALDconsult20-Jan-16 3:09
professionalPIEBALDconsult20-Jan-16 3:09 
GeneralRe: tricky C# literals Pin
Tomas Takac20-Jan-16 3:46
MemberTomas Takac20-Jan-16 3:46 
AnswerRe: tricky C# literals Pin
John Torjo20-Jan-16 3:43
professionalJohn Torjo20-Jan-16 3:43 
GeneralRe: tricky C# literals Pin
Tomas Takac20-Jan-16 3:50
MemberTomas Takac20-Jan-16 3:50 
GeneralRe: tricky C# literals Pin
den2k8820-Jan-16 4:00
professionalden2k8820-Jan-16 4:00 
GeneralRe: tricky C# literals Pin
TheGreatAndPowerfulOz20-Jan-16 4:17
MemberTheGreatAndPowerfulOz20-Jan-16 4:17 
GeneralRe: tricky C# literals Pin
den2k8820-Jan-16 4:34
professionalden2k8820-Jan-16 4:34 
GeneralRe: tricky C# literals Pin
Tomas Takac20-Jan-16 4:29
MemberTomas Takac20-Jan-16 4:29 
GeneralRe: tricky C# literals Pin
den2k8820-Jan-16 4:36
professionalden2k8820-Jan-16 4:36 
GeneralRe: tricky C# literals Pin
John Torjo20-Jan-16 9:10
professionalJohn Torjo20-Jan-16 9:10 
GeneralRe: tricky C# literals Pin
den2k8820-Jan-16 20:50
professionalden2k8820-Jan-16 20:50 
GeneralRe: tricky C# literals Pin
KarstenK20-Jan-16 6:23
mveKarstenK20-Jan-16 6:23 
GeneralOne of my own.... Pin
Duncan Edwards Jones14-Jan-16 0:11
professionalDuncan Edwards Jones14-Jan-16 0:11 
GeneralRe: One of my own.... Pin
PIEBALDconsult14-Jan-16 12:23
professionalPIEBALDconsult14-Jan-16 12:23 

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.