Crazy About Constants

By Deane Barker on March 28, 2006

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.

Gadgetopia

Comments

Comments are closed. If you have something you really want to say, email editors@gadgetopia.com and we‘ll get it added for you.