| Author |
Topic  |
|
blindman
Flowing Fount of Yak Knowledge
USA
2365 Posts |
Posted - 04/03/2007 : 08:32:24
|
quote: Originally posted by pootle_flump
FWIW I find the stags-clashing-heads debates certainly the most entertaining and often the most informative of threads.
Maybe we can have the next one filmed by the Animal Channel. Or the Discovery Channel can have a "DBA week"!
e4 d5 xd5 Nf6 |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
Kristen
Test
United Kingdom
22191 Posts |
Posted - 04/03/2007 : 09:31:34
|
"What does OP Mean?"
Sorry : "Original Poster"
Kristen |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
blindman
Flowing Fount of Yak Knowledge
USA
2365 Posts |
Posted - 04/03/2007 : 09:56:55
|
No. "OP" has been used as a reference many times on dbforums, Brett.
e4 d5 xd5 Nf6 |
 |
|
|
pootle_flump
Flowing Fount of Yak Knowledge
United Kingdom
1064 Posts |
Posted - 04/03/2007 : 11:28:52
|
| ... and is standard accepted forum nomenclature web wide. Where you been? |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
harsh_athalye
Flowing Fount of Yak Knowledge
India
5509 Posts |
Posted - 04/03/2007 : 12:03:52
|
I use google when I came across such unknown words. Generally, it gives me correct definition (just search for "define:IMHO", for example) but may not be always what it should be as in the case of OP.
OP: Original Poster (expected) OP: Out of Print (google)

Harsh Athalye India. "The IMPOSSIBLE is often UNTRIED" |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
jezemine
Flowing Fount of Yak Knowledge
USA
2871 Posts |
|
|
Kristen
Test
United Kingdom
22191 Posts |
Posted - 04/03/2007 : 13:43:18
|
"I know very few... ???"
I think the mnemonic you are grasping for is "TLA" which supposedly stands for, errmmmmm .... "Three Letter Acronyms". The more Pedant. amongst you will have already worked out that "OP" has only two letters ...
But there are other definitions of "TLA" - such as "Those Little Abbreviations" (as well as "Three Letter Abbreviation" which is probably more appropriate for the non-pronounceable TLA's - Damn! Recursion error strikes again ...)
So there you half-have-it!
Kristen |
 |
|
|
Kristen
Test
United Kingdom
22191 Posts |
|
|
mcrowley
Aged Yak Warrior
771 Posts |
Posted - 04/03/2007 : 14:24:13
|
| Now, I have heard of TLAs. I have even heard of ETLAs (Extended Three Letter Acronym) which cover 4 or more letter acronyms (like that slot on the side of laptops...pcmiaeieio, or something), but I am not sure if there is an acronym for the humble two letter acronym. |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
SwePeso
Patron Saint of Lost Yaks
Sweden
29138 Posts |
Posted - 04/03/2007 : 15:07:16
|
quote: Originally posted by X002548
HA?
Do not like their logo to be copied onto clothes. Threats have been made at store clerks, where the store sell clothes with skulls resembling their logo.
Peter Larsson Helsingborg, Sweden |
 |
|
|
Kristen
Test
United Kingdom
22191 Posts |
Posted - 04/04/2007 : 01:16:23
|
"I am not sure if there is an acronym for the humble two letter acronym"
How about "TLA"?  |
 |
|
|
jezemine
Flowing Fount of Yak Knowledge
USA
2871 Posts |
Posted - 04/04/2007 : 02:17:03
|
works as well for the somewhat less common thirty letter acronym...
www.elsasoft.org |
 |
|
|
MutantNinjaLoungeSinger
Starting Member
14 Posts |
Posted - 04/06/2007 : 17:48:36
|
On topic... I imagine there probably is some minor overhead to parsing and handling of an alias. How much of that overhead is noteworthy is probably close to zero. If you're to the point where you need to shave milliseconds off your query, then I imagine there are far worse issues with what you're trying to do than worrying about an alias.
on the other topic discussed here...
If you're writing your own throw-away queries that you know for sure you'll be the only one utilizing, then great.. alias all you want. Use single letters or whatever.
However, if you're writing scripts or stored procedures that will be seen or possibly be a target of trouble shooting by someone other than yourself (everyone needs to go on a vacation now and then, right?), you need to take yourself and your preferences out of the picture, and look at it from a more enterprise-level persepctive.
For what it's worth, I completely agree with blindman and all of the points he's making. His viewpoints and practices are much more responsible from a much higher perspective than many developers/DBAs can comprehend. One of the harsh realities of our industry is, many times you will have no control over the skill-level of the person that will look at your code after you leave, or go on vacation. So, short of writing elaborate documentation before you leave (which well-expressive code would provide anyway), you will get a phone call on your vacation if something goes wrong. That call can be completely avoided by coding in a way that is expressive and self documenting, and discourages looking back-and-forth between what you're aliasing, and what it means.
When the aliases are hidden away in the first page of text and your back-up person is on page 6, and is probably unfamiliar with the code, s/he is going to have to do a lot of back-and-forth to decipher what's going on.
AFTER they figure that part out, THEN they might even be able to tackle what the real problem was (or rather, why they've had to poke around in your code to begin with)
People who disagree have either never had to maintain a monolithic procedure, or have just accepted it as a standard practice rather than asking the question of "what could have been done to allow me to fix this bug sooner so the next person that looks at it can avoid those issues" Most of the time it's because of code that's hard to follow, and a lot of the times, single letter, non-expressive aliases are usually a major culprit.
Aliases aren't bad, just make sure you've used it for something other than saving yourself keystrokes (as blindman has pointed out as well). Terse aliases tell me nothing on page 6. It promotes this method of problem solving... "What does C mean here again? Crap.. I need to go back to the top to find it. Oh. C means "customer" this time. Where was I again?"
Furthermore, who says your first pass is the one that finds it's way to production and you can't compromise?
Code in the style you're used to (following test-driven-development standards), and alias any way you want when you're developing. But BEFORE you deem it production worthy, look out for who's going to look at your code in the future, and re-factor it to be expressive. Retain EXPRESSIVE aliases when necessary, and remove the ones that can't be expressed any better than the original name.
|
 |
|
|
rockmoose
SQL Natt Alfen
Sweden
3279 Posts |
Posted - 04/06/2007 : 19:38:07
|
Hey, blindman, you got support!!!
I love your sig MNLS , but al(i)as I don't buy into the approach of spelling out every letter.
rockmoose ________________________________________________________________ FROM <tableexpression> WHERE <conditionlist> SELECT <columnlist>
Edit: spelling
PS. nice quote mvj , could not google it though..
|
Edited by - rockmoose on 04/07/2007 04:39:15 |
 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
USA
6997 Posts |
Posted - 04/06/2007 : 21:37:39
|
Sayre’s Law: "In any dispute the intensity of feeling is inversely proportional to the value of the stakes at issue" Wallace S. Sayre
CODO ERGO SUM |
 |
|
Topic  |
|