Click here to Skip to main content
15,887,244 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: Embrace the dark side - use an ORM Pin
Richard A. Dalton20-Oct-10 23:28
Richard A. Dalton20-Oct-10 23:28 
GeneralRe: Embrace the dark side - use an ORM Pin
AspDotNetDev21-Oct-10 7:14
protectorAspDotNetDev21-Oct-10 7:14 
GeneralRe: Embrace the dark side - use an ORM Pin
Stryder_121-Oct-10 3:26
Stryder_121-Oct-10 3:26 
GeneralRe: Embrace the dark side - use an ORM Pin
AspDotNetDev21-Oct-10 7:16
protectorAspDotNetDev21-Oct-10 7:16 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ohmyletmein21-Oct-10 12:47
ohmyletmein21-Oct-10 12:47 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton21-Oct-10 23:28
Richard A. Dalton21-Oct-10 23:28 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
fjdiewornncalwe22-Oct-10 2:25
professionalfjdiewornncalwe22-Oct-10 2:25 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Schmuli23-Oct-10 22:19
Schmuli23-Oct-10 22:19 
First of all, I have to say I agree with you completely concerning lack of high-quality tools for working with databases. I would like to point out that Red-Gate do have some very good database tools (although, mostly for MSSQL), including support for version control.

My issue with writing all the data access code in the code-base, rather than the database, is that you are still writing SQL! How ever you look at the issue, you still need to write SQL in order to manipulate database and extract/update data. The only difference is where it is written, and I don't believe that writing classes and functions are any better than writing sprocs.

If you think that only sprocs are copied in order to make small changes, or that only sprocs are prone to remain around for years for fear of deletion, why, check out The Daily WTF for multitudes of cases where the same (and worse) happens to code.

I think that the best conclusion that can be made from all that has been shared here, is: we need much better development tools for databases. Tools that make it much easier to write, test and debug SQL (and vendor-specific SQL-based languages). Tools that make it as simple as VS or Eclipse to search and view dependencies and references between database objects. Tools that make it as simple as one click to commit, update and merge version-controlled database objects, and I don't mean exporting a DDL file and versioning that.

Of course, this still doesn't mean that any developer that knows a little C#, VB.NET or Java, can now become an automatic expert at SQL, even if this does seem to be expected by most job advertisements.
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
richard_k26-Oct-10 21:48
richard_k26-Oct-10 21:48 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
marc_k18-Nov-10 0:22
marc_k18-Nov-10 0:22 
GeneralReturn of an old friend Pin
Rob Grainger19-Oct-10 0:02
Rob Grainger19-Oct-10 0:02 
JokeRe: Return of an old friend Pin
Chris Meech19-Oct-10 1:47
Chris Meech19-Oct-10 1:47 
GeneralRe: Return of an old friend PinPopular
Richard A. Dalton19-Oct-10 2:11
Richard A. Dalton19-Oct-10 2:11 
GeneralRe: Return of an old friend Pin
Sauro Viti19-Oct-10 2:19
professionalSauro Viti19-Oct-10 2:19 
GeneralRe: Return of an old friend Pin
_Erik_19-Oct-10 2:53
_Erik_19-Oct-10 2:53 
GeneralRe: Return of an old friend Pin
Rob Grainger19-Oct-10 3:13
Rob Grainger19-Oct-10 3:13 
GeneralRe: Return of an old friend Pin
Richard A. Dalton19-Oct-10 3:29
Richard A. Dalton19-Oct-10 3:29 
GeneralSome more pain (the non-local local) Pin
leppie17-Oct-10 20:28
leppie17-Oct-10 20:28 
GeneralRe: Some more pain (the non-local local) Pin
Bernhard Hiller17-Oct-10 20:45
Bernhard Hiller17-Oct-10 20:45 
GeneralRe: Some more pain (the non-local local) [modified] Pin
leppie17-Oct-10 20:50
leppie17-Oct-10 20:50 
GeneralRe: Some more pain (the non-local local) Pin
BillW3318-Oct-10 5:45
professionalBillW3318-Oct-10 5:45 
GeneralI just got greeted by this PinPopular
leppie17-Oct-10 19:02
leppie17-Oct-10 19:02 
GeneralRe: I just got greeted by this Pin
Jeroen De Dauw17-Oct-10 20:20
Jeroen De Dauw17-Oct-10 20:20 
GeneralRe: I just got greeted by this Pin
leppie17-Oct-10 20:23
leppie17-Oct-10 20:23 
GeneralRe: I just got greeted by this Pin
Richard A. Dalton18-Oct-10 0:17
Richard A. Dalton18-Oct-10 0:17 

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.