« Retraction | Main| UX280P 80GB HDD Upgrade Update »

05/15/2007

To alias or not?

Category

Do you use keyword aliases or not?  And if you do, why do you use them and how do you make sure that your aliases are properly displayed in all circumstances?

Comments

Gravatar Image1 - I started learning by ripping apart the Lotus templates, which make extensive use of keywords. I quickly gave up on them in my own applications, for the reasons you hint at.

Gravatar Image2 - I use them sparingly. My main use is when the UI requires a long value for a selection, like a radio button. So I might have choices that look like this:

I would like to receive product info | Y
Please do not send me any info | N

If possible, I also try not to use them if I know the data will be displayed in views for the reasons you mention. Obviously, sometimes you can't help it.

Gravatar Image3 - Having identified myself strongly as an admin elsewhere today, this feels like betrayal.

But every good admin needs to know how to script a workaround sometimes. And in those workarounds, I use keyword aliases RELIGIOUSLY.

Why?

Because sometimes, the UI changes. But aliases mean my old documents don't have to.
It just happens sometimes - someone wants a question reversed in its emphasis, and being able to change the text of the selection without the value stored is quite handy. It's a bit annoying then having to change views as well, yes - but better than modifying existing documents!

Gravatar Image4 - I use aliases a lot, but not always for every item in a list. Often, I will make the first item in a list be something like "- None Selected -|" so that when you are viewing the form, you know nothing is selected, but the back-end field is empty. I also use them for fields that correspond to values that are often sorted in views, like priority or status. There is a trade off with aliases, like having to use @Replace in views, but they often are helpful for shortening long values.

Sean---

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

misc links

search my blog

domino blogger search

coComments

tag cloud