Click here to Skip to main content
15,889,335 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: If Indexing Then Loop Pin
PIEBALDconsult22-Oct-10 16:55
mvePIEBALDconsult22-Oct-10 16:55 
GeneralRe: If Indexing Then Loop Pin
ghle26-Oct-10 1:31
ghle26-Oct-10 1:31 
GeneralStored Procs, Packages, Views...Pah! PinPopular
Richard A. Dalton19-Oct-10 4:16
Richard A. Dalton19-Oct-10 4:16 
GeneralRe: Stored Procs, Packages, Views...Pah! PinPopular
Ray Cassick19-Oct-10 6:48
Ray Cassick19-Oct-10 6:48 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Kevin Drzycimski19-Oct-10 7:10
Kevin Drzycimski19-Oct-10 7:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
PoweredByOtgc19-Oct-10 7:19
PoweredByOtgc19-Oct-10 7:19 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Jason Christian20-Oct-10 7:00
Jason Christian20-Oct-10 7:00 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton19-Oct-10 7:30
Richard A. Dalton19-Oct-10 7:30 
You are echoing exactly the point I made about VB. It's the developers not the tools that are the problem.

Yes. You can write good, clear PL/SQL (ish).
Yes. All of the problems I have mentioned are the fault
of humans, not the software, not the language.

BUT.......

The level of expertise generally for PL/SQL or T/SQL or
indeed databases in general seems so poor that I consider them toxic pieces of technology.

Right now I'm working on Code that comes from...ORACLE.
Surely to goodness if any company should care about turning out a decent stab at good PL/SQL it should be ORACLE.

It's a fricken mess. I can't stress enough just how bad this code is. I've been in this business for over 14 years and this is genuinely the worst code of any kind that I have ever worked with. I will go so far as to say that it is impossible to work with.

Now. As bad as the code can be in VB or ASP.Net or C++ or Whatever, at least I have decent relatively mature and solid debugging tools.

At least by and large source code tends to be under source control.

At lest by and large there tend not to be multiple different versions of the same functions (ish).

Also, the nature of PL/SQL and T/SQL etc are that they are In my opinion fundamentally ugly languages. Verbose and difficult to work with when doing anything but the most basic tasks.

The Development Tools seem geared towards light admin rather than heavy development.

Perhaps, with the right set of tools, life could be easier, but far from the right set of tools, most companies I visit don't even have a basic set of tools. They set up the cheapest simplest configuration that gets them moving. Need Debugging? Screw you Jack...create some log files.

So we have a number of problems coming together in a perfect storm.

1. Developers DB skills beyond the absolute basics are poor.
Attitude seems to be...DB? Pff How hard can that be?
It's just SQL right?

2. Most who can write PL/SQL or T/SQL have no concept of
what quality code is. Indeed I don't think they see
their PL/SQL as code, and they don't feel obliged to
observe ANY rules of craftsmanship.

3. Development and Debugging tools are poor at best.

4. Most clients seem confused about how to integrate DB
development into their overall development process.
And seem reluctant to heed advice on how to do so.

5. There can and often is a turf war between developers and
DBA's that make a difficult situation worse.

Overall...my feeling is...it's not worth it.
Develop as much as possible in Visual Studio or whatever
IDE you are using. Keep as much as possible within your
control.

Treat the DB as a data store only
*unless* the client has the infrastructure and the expertise to support using the DB for more.

-Rd
Hit any user to continue.

GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Andrew Rissing19-Oct-10 7:54
Andrew Rissing19-Oct-10 7:54 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton19-Oct-10 8:24
Richard A. Dalton19-Oct-10 8:24 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Ray Cassick19-Oct-10 12:32
Ray Cassick19-Oct-10 12:32 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 1:32
Richard A. Dalton20-Oct-10 1:32 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
YSLGuru20-Oct-10 10:18
YSLGuru20-Oct-10 10:18 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Ian Shlasko20-Oct-10 10:58
Ian Shlasko20-Oct-10 10:58 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Chris Quinn20-Oct-10 2:22
Chris Quinn20-Oct-10 2:22 
GeneralRe: Stored Procs, Packages, Views...Pah! PinPopular
Trajan McGill20-Oct-10 11:59
Trajan McGill20-Oct-10 11:59 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Richard A. Dalton20-Oct-10 23:21
Richard A. Dalton20-Oct-10 23:21 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Dr.Walt Fair, PE19-Oct-10 13:01
professionalDr.Walt Fair, PE19-Oct-10 13:01 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Rob Grainger19-Oct-10 23:10
Rob Grainger19-Oct-10 23:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd19-Oct-10 23:36
Electron Shepherd19-Oct-10 23:36 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
OriginalGriff20-Oct-10 0:10
mveOriginalGriff20-Oct-10 0:10 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 0:20
Electron Shepherd20-Oct-10 0:20 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
OriginalGriff20-Oct-10 0:25
mveOriginalGriff20-Oct-10 0:25 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
Electron Shepherd20-Oct-10 1:58
Electron Shepherd20-Oct-10 1:58 
GeneralRe: Stored Procs, Packages, Views...Pah! Pin
ScottM120-Oct-10 2:41
ScottM120-Oct-10 2:41 

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.