J
Jung_O
Guest
On 27 Nov 2015 Mike Fechner wrote this: "A property is part of a classes Interface. A DB is an implementation detail. The latter should not be able to have impact on the former." 1. I agree with that, as long as the interface belongs to a class/API which can be called from outside the application. But inside the application where the DB definitely plays a dominant role, the "ancient routine of tightly coupling program constructs to the DB schema" absolutely makes sense for us. By the way: For method parameters, that are also part of the class interface, I CAN define the parameters LIKE a DB field... 2. Nobody is forced to define interface relevant parts LIKE a DB field. If an interface needs to be stable (independent of the DB schema), then just don't use the LIKE. 3. I can use the LIKE almost everywhere: When defining variables, function/procedure/method parameters or temp-table fields... it seems quite inconsistent when it does not work for properties.
Continue reading...
Continue reading...