Click here to Skip to main content
15,167,809 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: What's missing? Pin
Gary Wheeler13-Sep-13 2:43
MemberGary Wheeler13-Sep-13 2:43 
GeneralRe: What's missing? Pin
Rage13-Sep-13 2:46
professionalRage13-Sep-13 2:46 
GeneralRe: What's missing? Pin
Gary Wheeler13-Sep-13 2:52
MemberGary Wheeler13-Sep-13 2:52 
GeneralRe: What's missing? Pin
H.Brydon14-Sep-13 16:59
professionalH.Brydon14-Sep-13 16:59 
GeneralDon't you hate it when you do that? Pin
OriginalGriff9-Sep-13 10:41
mveOriginalGriff9-Sep-13 10:41 
GeneralRe: Don't you hate it when you do that? Pin
Sentenryu11-Sep-13 1:50
MemberSentenryu11-Sep-13 1:50 
GeneralRe: Don't you hate it when you do that? Pin
OriginalGriff11-Sep-13 1:53
mveOriginalGriff11-Sep-13 1:53 
GeneralRe: Don't you hate it when you do that? Pin
Sentenryu11-Sep-13 4:08
MemberSentenryu11-Sep-13 4:08 
OriginalGriff wrote:
because they prevent data loss if you forget to call the "Update" method after a user makes a change to the form


That also prevents Undo and Cancel functionality, and that's the sort of thing that should be picked up on tests.

For me, properties should at most contain simple value validation, like accepted ranges and non-null enforcement, leaving other kinds of validation and persistency to methods.

I've a technical level on mechanics, so the way i think is like a worker operating a lathe, when you set a property, you're positioning the metal part, when you call a method, you're actually turning the lathe on and working the metal.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

"Given the chance I'd rather work smart than work hard." - PHS241

"'Sophisticated platform' typically means 'I have no idea how it works.'"

GeneralRe: Don't you hate it when you do that? Pin
BobJanova11-Sep-13 7:01
MemberBobJanova11-Sep-13 7:01 
GeneralHardcoded Teacher Passwords Pin
1215drew9-Sep-13 6:54
Member1215drew9-Sep-13 6:54 
GeneralRe: Hardcoded Teacher Passwords Pin
ZurdoDev9-Sep-13 7:06
professionalZurdoDev9-Sep-13 7:06 
GeneralRe: Hardcoded Teacher Passwords Pin
H.Brydon14-Sep-13 17:01
professionalH.Brydon14-Sep-13 17:01 
GeneralRe: Hardcoded Teacher Passwords Pin
Ron Beyer9-Sep-13 7:33
professionalRon Beyer9-Sep-13 7:33 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 1:47
MemberSentenryu11-Sep-13 1:47 
GeneralRe: Hardcoded Teacher Passwords Pin
Brisingr Aerowing9-Sep-13 16:48
professionalBrisingr Aerowing9-Sep-13 16:48 
GeneralRe: Hardcoded Teacher Passwords Pin
1215drew9-Sep-13 18:04
Member1215drew9-Sep-13 18:04 
GeneralRe: Hardcoded Teacher Passwords Pin
NeverJustHere9-Sep-13 18:41
MemberNeverJustHere9-Sep-13 18:41 
GeneralRe: Hardcoded Teacher Passwords Pin
PIEBALDconsult9-Sep-13 17:03
professionalPIEBALDconsult9-Sep-13 17:03 
GeneralRe: Hardcoded Teacher Passwords Pin
Dave Kreskowiak9-Sep-13 17:28
mveDave Kreskowiak9-Sep-13 17:28 
GeneralRe: Hardcoded Teacher Passwords Pin
Silvabolt10-Sep-13 4:46
MemberSilvabolt10-Sep-13 4:46 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 1:49
MemberSentenryu11-Sep-13 1:49 
GeneralRe: Hardcoded Teacher Passwords Pin
GuyThiebaut13-Sep-13 3:58
professionalGuyThiebaut13-Sep-13 3:58 
GeneralHow about some paradox Pin
C.CoderCreator8-Sep-13 13:52
MemberC.CoderCreator8-Sep-13 13:52 
JokeRe: How about some paradox Pin
phil.o8-Sep-13 14:36
mvephil.o8-Sep-13 14:36 
GeneralRe: How about some paradox Pin
C.CoderCreator8-Sep-13 14:39
MemberC.CoderCreator8-Sep-13 14:39 

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.