Click here to Skip to main content
15,867,834 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 3:59
Gary Wheeler12-Sep-13 3:59 
GeneralRe: What's missing? Pin
Brisingr Aerowing12-Sep-13 8:32
professionalBrisingr Aerowing12-Sep-13 8:32 
GeneralRe: What's missing? Pin
Rage13-Sep-13 1:36
professionalRage13-Sep-13 1:36 
GeneralRe: What's missing? Pin
Gary Wheeler13-Sep-13 1:43
Gary Wheeler13-Sep-13 1:43 
GeneralRe: What's missing? Pin
Rage13-Sep-13 1:46
professionalRage13-Sep-13 1:46 
GeneralRe: What's missing? Pin
Gary Wheeler13-Sep-13 1:52
Gary Wheeler13-Sep-13 1:52 
GeneralRe: What's missing? Pin
H.Brydon14-Sep-13 15:59
professionalH.Brydon14-Sep-13 15:59 
GeneralDon't you hate it when you do that? Pin
OriginalGriff9-Sep-13 9:41
mveOriginalGriff9-Sep-13 9: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 0:50
Sentenryu11-Sep-13 0:50 
GeneralRe: Don't you hate it when you do that? Pin
OriginalGriff11-Sep-13 0:53
mveOriginalGriff11-Sep-13 0:53 
GeneralRe: Don't you hate it when you do that? Pin
Sentenryu11-Sep-13 3:08
Sentenryu11-Sep-13 3:08 
GeneralRe: Don't you hate it when you do that? Pin
BobJanova11-Sep-13 6:01
BobJanova11-Sep-13 6:01 
GeneralHardcoded Teacher Passwords Pin
1215drew9-Sep-13 5:54
1215drew9-Sep-13 5:54 
GeneralRe: Hardcoded Teacher Passwords Pin
ZurdoDev9-Sep-13 6:06
professionalZurdoDev9-Sep-13 6:06 
GeneralRe: Hardcoded Teacher Passwords Pin
H.Brydon14-Sep-13 16:01
professionalH.Brydon14-Sep-13 16:01 
GeneralRe: Hardcoded Teacher Passwords Pin
Ron Beyer9-Sep-13 6:33
professionalRon Beyer9-Sep-13 6:33 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 0:47
Sentenryu11-Sep-13 0:47 
GeneralRe: Hardcoded Teacher Passwords Pin
Brisingr Aerowing9-Sep-13 15:48
professionalBrisingr Aerowing9-Sep-13 15:48 
GeneralRe: Hardcoded Teacher Passwords Pin
1215drew9-Sep-13 17:04
1215drew9-Sep-13 17:04 
GeneralRe: Hardcoded Teacher Passwords Pin
NeverJustHere9-Sep-13 17:41
NeverJustHere9-Sep-13 17:41 
GeneralRe: Hardcoded Teacher Passwords Pin
PIEBALDconsult9-Sep-13 16:03
mvePIEBALDconsult9-Sep-13 16:03 
GeneralRe: Hardcoded Teacher Passwords Pin
Dave Kreskowiak9-Sep-13 16:28
mveDave Kreskowiak9-Sep-13 16:28 
GeneralRe: Hardcoded Teacher Passwords Pin
Silvabolt10-Sep-13 3:46
Silvabolt10-Sep-13 3:46 
GeneralRe: Hardcoded Teacher Passwords Pin
Sentenryu11-Sep-13 0:49
Sentenryu11-Sep-13 0:49 
GeneralRe: Hardcoded Teacher Passwords Pin
GuyThiebaut13-Sep-13 2:58
professionalGuyThiebaut13-Sep-13 2: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.