Click here to Skip to main content
15,887,477 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
harold aptroot2-Nov-12 0:25
harold aptroot2-Nov-12 0:25 
GeneralRe: Trick for young players. Pin
englebart2-Nov-12 2:54
professionalenglebart2-Nov-12 2:54 
GeneralRe: Trick for young players. Pin
_Maxxx_4-Nov-12 11:49
professional_Maxxx_4-Nov-12 11:49 
GeneralRe: Trick for young players. Pin
CafedeJamaica2-Nov-12 10:54
professionalCafedeJamaica2-Nov-12 10:54 
GeneralRe: Trick for young players. Pin
AspDotNetDev2-Nov-12 11:28
protectorAspDotNetDev2-Nov-12 11:28 
GeneralRe: Trick for young players. Pin
BotReject4-Nov-12 10:54
BotReject4-Nov-12 10:54 
GeneralRe: Trick for young players. Pin
TheCoolCoder5-Nov-12 1:13
TheCoolCoder5-Nov-12 1:13 
GeneralRe: Trick for young players. Pin
_Maxxx_5-Nov-12 1:40
professional_Maxxx_5-Nov-12 1:40 
TheCoolCoder wrote:
whoever coded it dint realize this beforehand.


in fact, when the framework was written, I think there were only a very limited number of objects that were intended to be passed - and all of these would have been reference objects. So, not necessarily that he didn't realise it, but more that he didn't consider anyone might try to pass a bunch of booleans!


TheCoolCoder wrote:
the tendency to assume object arg1 and object arg2 as reference types.


Spot on! Looked at in isolation, that is exactly what most people assume (myself included!).

This would be a great example of where TDD would possibly have been useful - as in setting up tests with a variety of parameter types, this issue may have been spotted before going into production!
MVVM# - See how I did MVVM my way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011

.\\axxx
(That's an 'M')

GeneralRe: Trick for young players. Pin
Super Lloyd5-Nov-12 17:47
Super Lloyd5-Nov-12 17:47 
GeneralRe: Trick for young players. Pin
_Maxxx_5-Nov-12 22:25
professional_Maxxx_5-Nov-12 22:25 
GeneralSomebody getting paid by the character typed? PinPopular
esaulsberry29-Oct-12 10:17
esaulsberry29-Oct-12 10:17 
GeneralRe: Somebody getting paid by the character typed? Pin
Br.Bill3-Jan-13 12:36
Br.Bill3-Jan-13 12:36 
GeneralThe occasional flash of brilliance Pin
Eddy Vluggen29-Oct-12 9:50
professionalEddy Vluggen29-Oct-12 9:50 
GeneralRe: The occasional flash of brilliance PinPopular
enhzflep29-Oct-12 15:49
enhzflep29-Oct-12 15:49 
GeneralRe: The occasional flash of brilliance PinPopular
CDP180229-Oct-12 19:51
CDP180229-Oct-12 19:51 
GeneralRe: The occasional flash of brilliance Pin
enhzflep29-Oct-12 20:04
enhzflep29-Oct-12 20:04 
GeneralRe: The occasional flash of brilliance PinPopular
CDP180230-Oct-12 1:21
CDP180230-Oct-12 1:21 
GeneralRe: The occasional flash of brilliance Pin
enhzflep30-Oct-12 6:47
enhzflep30-Oct-12 6:47 
GeneralRe: The occasional flash of brilliance Pin
Florin Jurcovici1-Nov-12 0:50
Florin Jurcovici1-Nov-12 0:50 
GeneralRe: The occasional flash of brilliance Pin
Reelix1-Nov-12 1:27
Reelix1-Nov-12 1:27 
GeneralRe: The occasional flash of brilliance Pin
KP Lee1-Nov-12 8:28
KP Lee1-Nov-12 8:28 
GeneralRe: The occasional flash of brilliance Pin
BlackMilan29-Oct-12 22:34
BlackMilan29-Oct-12 22:34 
GeneralRe: The occasional flash of brilliance Pin
Dan Neely1-Nov-12 2:41
Dan Neely1-Nov-12 2:41 
GeneralRe: The occasional flash of brilliance Pin
Sasha Laurel1-Nov-12 4:34
Sasha Laurel1-Nov-12 4:34 
GeneralRe: The occasional flash of brilliance Pin
patbob1-Nov-12 5:54
patbob1-Nov-12 5:54 

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.