[haiku-development] Re: AddGlue() as a metaphor behaves opposite what is expected

  • From: Brian Hill <brianh@xxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 25 Feb 2017 11:41:25 -0500


On Feb 25, 2017, at 11:26 AM, Julian Harnath wrote:

Hey,

On 25.02.2017 17:19, Axel Dörfler wrote:

It might be misleading at first, but it's commonly called that way.

Qt calls them Spacer, which is a better metaphor IMO. Or how about Spring?

I found "Glue" in this context confusing as well in the beginning.

"Think of it as a kind of elastic glue — stretchy and expandable, yet
taking up no space unless you pull apart the components that it is
sticking to."

Interesting description, but not really the kind of thing one expects when 
first hearing "glue" ;-)


Elastic, rubber band, and spring are all more appropriate metaphors. I don’t 
know what “elastic glue” is.  We don’t need to inherit other systems’ bad 
terminology.  I think we should deprecate AddGlue(), create a new 
AddSomething() function which contains the current AddGlue() code, and have 
AddGlue() just call the new function.

-Brian

Other related posts: