Click here to Skip to main content
15,892,537 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: Trick for young players. Pin
BobJanova1-Nov-12 3:28
BobJanova1-Nov-12 3:28 
GeneralRe: Trick for young players. Pin
Jörgen Andersson1-Nov-12 5:07
professionalJörgen Andersson1-Nov-12 5:07 
GeneralRe: Trick for young players. Pin
Florin Jurcovici2-Nov-12 1:41
Florin Jurcovici2-Nov-12 1:41 
GeneralRe: Trick for young players. Pin
BobJanova1-Nov-12 3:26
BobJanova1-Nov-12 3:26 
GeneralRe: Trick for young players. Pin
J4amieC31-Oct-12 22:24
J4amieC31-Oct-12 22:24 
GeneralRe: Trick for young players. Pin
Jörgen Andersson1-Nov-12 0:12
professionalJörgen Andersson1-Nov-12 0:12 
GeneralRe: Trick for young players. Pin
_Maxxx_1-Nov-12 1:35
professional_Maxxx_1-Nov-12 1:35 
GeneralRe: Trick for young players. Pin
J4amieC1-Nov-12 2:05
J4amieC1-Nov-12 2:05 
_Maxxx_ wrote:
Object1.equals(object2) == true;

 

When object1 and object2 are different objects that have the same value?


Exactly, the point is I understand valuetype equality semantics from referencetype equality semantics. I agree they're somewhat confusing to new programmers.
GeneralRe: Trick for young players. Pin
_Maxxx_1-Nov-12 2:12
professional_Maxxx_1-Nov-12 2:12 
GeneralRe: Trick for young players. Pin
BobJanova1-Nov-12 3:27
BobJanova1-Nov-12 3:27 
GeneralRe: Trick for young players. Pin
OriginalGriff1-Nov-12 9:28
mveOriginalGriff1-Nov-12 9:28 
GeneralRe: Trick for young players. Pin
_Maxxx_1-Nov-12 11:41
professional_Maxxx_1-Nov-12 11:41 
GeneralSo to really make you weep Pin
Jörgen Andersson1-Nov-12 21:28
professionalJörgen Andersson1-Nov-12 21:28 
GeneralRe: So to really make you weep Pin
_Maxxx_4-Nov-12 11:54
professional_Maxxx_4-Nov-12 11:54 
GeneralRe: So to really make you weep Pin
Jörgen Andersson4-Nov-12 22:54
professionalJörgen Andersson4-Nov-12 22:54 
GeneralRe: So to really make you weep Pin
Stefan_Lang5-Nov-12 1:33
Stefan_Lang5-Nov-12 1:33 
GeneralRe: So to really make you weep Pin
Jörgen Andersson5-Nov-12 1:38
professionalJörgen Andersson5-Nov-12 1:38 
GeneralRe: So to really make you weep Pin
Stefan_Lang5-Nov-12 2:03
Stefan_Lang5-Nov-12 2:03 
GeneralRe: So to really make you weep Pin
Jörgen Andersson5-Nov-12 2:10
professionalJörgen Andersson5-Nov-12 2:10 
GeneralRe: Trick for young players. Pin
BobJanova2-Nov-12 0:47
BobJanova2-Nov-12 0:47 
GeneralRe: Trick for young players. Pin
_Maxxx_2-Nov-12 1:15
professional_Maxxx_2-Nov-12 1:15 
GeneralRe: Trick for young players. Pin
BobJanova2-Nov-12 1:46
BobJanova2-Nov-12 1:46 
GeneralRe: Trick for young players. Pin
_Maxxx_2-Nov-12 2:01
professional_Maxxx_2-Nov-12 2:01 
GeneralRe: Trick for young players. Pin
Harley L. Pebley2-Nov-12 6:18
Harley L. Pebley2-Nov-12 6:18 
GeneralRe: Trick for young players. Pin
_Maxxx_4-Nov-12 11:56
professional_Maxxx_4-Nov-12 11:56 

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.