Click here to Skip to main content
15,887,683 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: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 4:24
Richard A. Dalton20-Oct-10 4:24 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
richard_k26-Oct-10 22:11
richard_k26-Oct-10 22:11 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
YSLGuru20-Oct-10 10:20
YSLGuru20-Oct-10 10:20 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 23:32
Richard A. Dalton20-Oct-10 23:32 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
wout de zeeuw20-Oct-10 11:42
wout de zeeuw20-Oct-10 11:42 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 23:42
Richard A. Dalton20-Oct-10 23:42 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
wout de zeeuw21-Oct-10 0:45
wout de zeeuw21-Oct-10 0:45 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton21-Oct-10 1:21
Richard A. Dalton21-Oct-10 1:21 
wout de zeeuw wrote:
If a "good" programmer, writes bad SQL, then he's a bad SQL programmer, and he shouldn't be writing any. Either you let someone write SQL that has the skills, or you don't and you get sh***y SQL.


The problem is that DBA's are focused on managing the Database, not developing Apps.

I've yet to work on any project where DBA's where charged with delivering application functionality. Or wanted to.

My problem and the problem I'm trying to get accross in this thread is that the debate about Stored Procedures and Packages tends to focus on the same old stuff...

* Performance (not a valid argument either way for most situations)
* SQL injection (not a valid argument for most situations)
* Abstraction of the Database Structure (not a valid argument either way)

The debate rarely focuses on the things that should be significant.

Do you have the skills, infrastructure and processes in place to actually to DB based development properly?

When one asks this question it's dismissed....

"Oh sure if you have developers that don't know how to write PL/SQL properly then you'll get crappy PL/SQL."

Well guess what? It would appear that the majority of developers don't know how to write good code in their specialty language, allowing them to write PL/SQL which they aren't specialists in is suicide.

And yet, the notion that it would be better to have these developers work exclusively in VB.Net or C# as much as possible is heresy. Nooo Nooo Nooo.....You must use Stored Procs....It's just...Better.

Well it's not better. Not if it's done wrong, which all to often it is.

I also maintain, and will always maintain the languages like PL/SQL are fundamentally unsuited to implementing complex business logic.

-Richard
Hit any user to continue.

GeneralEmbrace the dark side - use an ORM Pin
Dale Margel20-Oct-10 15:31
professionalDale Margel20-Oct-10 15:31 
GeneralRe: Embrace the dark side - use an ORM Pin
AspDotNetDev20-Oct-10 15:45
protectorAspDotNetDev20-Oct-10 15:45 
GeneralRe: Embrace the dark side - use an ORM Pin
Dale Margel20-Oct-10 16:00
professionalDale Margel20-Oct-10 16:00 
GeneralRe: Embrace the dark side - use an ORM Pin
AspDotNetDev20-Oct-10 16:55
protectorAspDotNetDev20-Oct-10 16:55 
GeneralRe: Embrace the dark side - use an ORM Pin
fjdiewornncalwe21-Oct-10 3:34
professionalfjdiewornncalwe21-Oct-10 3:34 
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 
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 

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.