2010-07-29

Stored procedures. I love to hate them.

Why should it be so damn involved?
declare done int default 0;
declare continue handler for not found 
    set done = 1;            
open carrots;
repeat
    fetch carrots into weight, location;
    do_something(weight, location);
until done end repeat;
close carrots;
Instead of something like:
for weight, location in carrots do
    do_something(weight, location)
SQL match functional approach so nicely but storead procedures are horrible procedural mess. And it feels like programming in fortran or assembly.

No comments:

Post a Comment

On security

My VPS recently got banned for spam which surprised me since none of my soft there sending email. So my first thoughts were that this is a...