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

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: <haiku-development@xxxxxxxxxxxxx>
  • Date: Sat, 25 Feb 2017 19:37:08 +0100

Hi,

Am 25. Februar 2017 17:41:58 schrieb Brian Hill <brianh@xxxxxxxxxxxx>:


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.


Isn't this in template code which is always compiled in? No need to deprecate anything, just rename it?

BTW, I'm not in favor of AddSpace(), since that sounds like it will enforce a spacing, which is exactly not what it does. AddSpring() doesn't sound too bad.

Best regards,
Stephan



Other related posts: