Enterprise SQL: This gets more and more absurd the more I look at it. I can’t imagine working on this app — when did SQL become evil? I really want to know what’s in the snipped section.
I think we need constants for the English langauge:
define('A', 'A');
define('B', 'B');
Steve McConnell is big on constants, and I wrote him once to see if I should break table and column names into constants. I think he said no, but I can’t remember.
With a good O-R mapper, that stuff gets less relevant anyway.
This is classic! I've looked at some abusive SQL code before but this takes the cake.
I agree about using a good O-R mapper
Yeah, good O-R mappers are really handy.