Click here to Skip to main content
15,884,388 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.

 
RantDAO Framework PinPopular
Chanoch Wiggers1-Feb-12 2:06
Chanoch Wiggers1-Feb-12 2:06 
GeneralRe: DAO Framework Pin
GibbleCH1-Feb-12 5:58
GibbleCH1-Feb-12 5:58 
GeneralRe: DAO Framework Pin
Chanoch Wiggers1-Feb-12 11:27
Chanoch Wiggers1-Feb-12 11:27 
GeneralRe: DAO Framework Pin
JackDingler14-Feb-12 9:12
JackDingler14-Feb-12 9:12 
GeneralRe: DAO Framework Pin
Sander Rossel1-Feb-12 11:50
professionalSander Rossel1-Feb-12 11:50 
GeneralRe: DAO Framework Pin
Baxter R Pearson1-Feb-12 21:25
Baxter R Pearson1-Feb-12 21:25 
GeneralRe: DAO Framework Pin
Chanoch Wiggers1-Feb-12 22:42
Chanoch Wiggers1-Feb-12 22:42 
GeneralRe: DAO Framework Pin
Baxter R Pearson2-Feb-12 1:14
Baxter R Pearson2-Feb-12 1:14 
I agree sometimes less is more.

I am currently writing a DB connected WPF app using Entity Framework and Linq for DA. I started out using Stored Procedures with EF, and then abondoned the idea due to currupted Entity Data Objects when re-adding edited SPs. I now just use LINQ for all DA, and find it much less stressful than dealing directly with the database myself.

Saying that creating dynmanic entity connections was a bit problematic.

As for security, I am using singleton patterns to store commonly used global properties. This cuts down on DB access.

I'm finding the whole dev process is much faster this way, and easier to structure.
GeneralRe: DAO Framework Pin
Kirk Wood7-Feb-12 2:10
Kirk Wood7-Feb-12 2:10 
GeneralRe: DAO Framework Pin
ekolis3-Feb-12 14:59
ekolis3-Feb-12 14:59 
GeneralRe: DAO Framework Pin
User 48220337-Feb-12 0:57
User 48220337-Feb-12 0:57 
GeneralRe: DAO Framework Pin
TylerMc0077-Feb-12 8:22
TylerMc0077-Feb-12 8:22 
GeneralRe: DAO Framework Pin
Rob Grainger12-Feb-12 14:21
Rob Grainger12-Feb-12 14:21 
GeneralRe: DAO Framework Pin
cpkilekofp7-Feb-12 8:36
cpkilekofp7-Feb-12 8:36 
GeneralRe: DAO Framework Pin
ClockMeister7-Feb-12 13:11
professionalClockMeister7-Feb-12 13:11 
GeneralRe: DAO Framework Pin
HuntrCkr7-Feb-12 17:36
HuntrCkr7-Feb-12 17:36 
GeneralRe: DAO Framework Pin
Florin Jurcovici7-Feb-12 21:46
Florin Jurcovici7-Feb-12 21:46 
GeneralRe: DAO Framework Pin
CDP18027-Feb-12 23:41
CDP18027-Feb-12 23:41 
GeneralRe: DAO Framework Pin
BobJanova8-Feb-12 4:28
BobJanova8-Feb-12 4:28 
GeneralRe: DAO Framework Pin
CDP18028-Feb-12 7:58
CDP18028-Feb-12 7:58 
GeneralRe: DAO Framework Pin
BobJanova8-Feb-12 23:12
BobJanova8-Feb-12 23:12 
GeneralRe: DAO Framework Pin
CDP18029-Feb-12 0:36
CDP18029-Feb-12 0:36 
GeneralRe: DAO Framework Pin
BobJanova9-Feb-12 0:43
BobJanova9-Feb-12 0:43 
GeneralRe: DAO Framework Pin
CDP18029-Feb-12 1:55
CDP18029-Feb-12 1:55 
GeneralRe: DAO Framework Pin
Rob Grainger12-Feb-12 14:31
Rob Grainger12-Feb-12 14:31 

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.