Journal Chacham's Journal: Oracle: (Another) Tom Kyte rant 3
Tom Kyte has another Blog entry ranting about bad practices. Indeed, his personal blog is full of them.
The main part being the self-noted hyperbole
I still wish....
* when others would be removed from plsql
* triggers would be deprecated and removed
* autonomous transactions would start just raising errors
* literals in sql would raise an error
Perhaps if he says it enough times, people will get the message.
WHEN OTHERS is bad enough, and *severely* overused. Why mask a perfectly good EXCEPTION, that will say when and where the error happened? Especially, as he points out, the useless WHEN OTHERS THEN NULL;.
I don't think TRIGGERs should be deprecated, though i do think that most people who use them should be sent to re-education camps. It is sad when people put procedural logic in them.
TRIGGERs are hidden and usually doing what a PROCEDURE should be doing. Also, it is usually added as a kludge, in general inefficient, and then forgotten, and we have something that should not be.
Use TRIGGERs for ad-hoc debugging and DB maintenance (history, logging who/when), not much else.
He's bright (Score:2)
Keep developers away from triggers (Score:1)
At my previous job some of them advocated using triggers to save them from having to write delete code. The end result would have been a bunch of insert/updates in the code for when the user created some "object" (in our application's problem domain), to update all the tables that together conce
Re: (Score:1)