Re: w32feature()

new topic     » goto parent     » topic index » view thread      » older message » newer message

A man with one watch knows the exact time.  A man with two watches isn't
quite so sure!

gshingles wrote:
> 
> ken mortenson wrote:
> > Isn't the windows standard something like (left, top, width, height) with
> > right and bottom being redundant?
> 
> That may be, but Microsoft also promotes OO languages where you can call
> methods
> to get a width, or a height, or whatever you want.  I'm just suggesting
> putting
> most of the salient information in a small sequence to pass around. I don't
> think it would add that much overhead compared with win32lib itself.

I understand that a structure that contains redundant information can be
useful.  You may not want to have to derive something from something else.

The danger is that when you update you must always remember to update the
redundant information along with the information you are focussed on 
updating.  Otherwise, this leads to errors (like the man with two watches.)

A rectangle is defined by exactly one point which is it's dimension
(width, height)  It's position is defined by exactly one point (left, top.)

In database design this principle of avoiding redundancy is normalization.

This is something I've always done long before I'd ever heard of it, which
probably explains why I'm such a stinker about this.

Please Gary, know that I understand what you are saying and my thoughts are
just my opinion.  I hope I've explained clearly why I hold this opinion.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu