Click here to Skip to main content
15,174,232 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 Wheeler12-Sep-13 4:59
MemberGary Wheeler12-Sep-13 4:59 
GeneralRe: What's missing? Pin
Brisingr Aerowing12-Sep-13 9:32
professionalBrisingr Aerowing12-Sep-13 9:32 
GeneralRe: What's missing? Pin
Rage13-Sep-13 2:36
professionalRage13-Sep-13 2:36 
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 
I added a feature to one of my apps at the last revision which needed a new column in the DB.
I thought the latest version was slower to start that it used to be, but dismissed it as my imagination - with a note to investigate moving the DB load into a background task when I was doing major mods.
Until tonight...

I just added another feature that needs another column and found that when I load the DB info, I was saving the DB value into the Property of the class, not the backing field. And yes, the property does Update the record back to the DB, in case you were wondering... D'Oh! | :doh:

So when I load my data, I not only read every record, but I immediately write it back as well... Blush | :O

Adding an "_" character made a huge difference! Laugh | :laugh:
This message is manufactured from fully recyclable noughts and ones. To recycle this message, please separate into two tidy piles, and take them to your nearest local recycling centre.
Please note that in some areas noughts are always replaced with zeros by law, and many facilities cannot recycle zeroes - in this case, please bury them in your back garden and water frequently.

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 
GeneralRe: Don't you hate it when you do that? Pin
BobJanova11-Sep-13 7:01
MemberBobJanova11-Sep-13 7:01 
GeneralHardcoded Teacher Passwords PinPopular
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 

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.