Most Recent Articles
Security through Idiocy
A Stupid Comment
Oh So Secret Passwords
Threadbare Down Under
Best of Email - Greatest Pitch EVER!
Most Recent Articles
Is It Safer to Use Numbers?
Parallel SQL Queries
Line by Line
We Don't Need no Stinking Elses
IP Address Denial
Stringify All the Things!
A Pentester's Paradise
Most Recent Articles
Sorry, but You Can't Do the Math
Do the Math
The Post Office is Wrong
Free as in $5.29 Cheese Sticks
Best. Soup. Ever.
Error Based Marketing
Accuracy is Everything!
Netflix is Smarter than You Are
Best of the Sidebar
Bring Your Own Code
Mandatory Fun Day
Tales from the Interview
adjYour adjDaily nCup prOf adjAkWTF
« Return to Article
Article Comments (Viewing 24 comments)
No one special.
It's pnStories and pnInvites.
Wouldn't that be "adjAcrWTF" rather than "adjAkrWTF"? <br> <br>Or do they spell "Acronym" differently in Hungary?
Uh, sometimes you need to store invalid or incomplete dates. Most databases won't let you do that, so you have to allow for month day or year to be null.
I thought “your” wasA pronoun? pronYour? :-/ (Phewww, what an ambiguous name…) <br> <br>I confess I have used limited Hungarian notation for database objects — t_ for tables, f_ for fields, pk_/fk_ for primary/foreign keys and ix_ for indices. At least, it allows to use words that might otherwise be reserved. Although, maybe I’ll switch to a _ suffix, to be consistent with that C++ data member naming convention…
The reason you don't like Hungarion notation is that you're not using it right. Your post says "adjThe adjFour adjRemaining," but The is an article, so it should read: <br> <br>vSubmit adjYour adjAkrWTF nStories cjAnd vWin nOne prOf artThe adjFour adjRemaining adjGMail nInvites! <br> <br>There. Now it's readable. <br>
Or, for compeleteness: <br>ivSubmit adjYour adjAkrWTF nStories cjAnd ivWin nOne prOf artThe adjFour adjRemaining adjGMail nInvites! <br> <br>"Your" is a possessive adjective. It's a quagmire of possessive pronouns, possessive nouns, possessive adjectives, and adjectival labels.
Shows you how much I paid attention in grammar class. I really wanted to include tense, transitive/intransivite, and all that ... but Conjunction and Prepesition were the only ones I had the slightest clue about.
Good Hungarian is useful and helpful. <br> <br>Bad Hungarian is, well... BAD. ;)
I'm Not Telling
I'll admit I use notation in databases. Well let me correct myself. I used to use notation with database fields. I will continue to use them in code but the database fields really ARE TOO MUCH. On more than one occassion I couldn't remember if I used int or num or str or txt. I'll still use dbDatabase and tblTable because it just seems right, to me. But no more intInt or strString or numPrice... new to wtf and I love it!
Perhaps the names correspond to a pre-defined struct. Thus the inspiration for FILLER.
The "Civil Engineering" link is broken.
"WTF" is an abbreviation, not an acronym :)
An abbreviation is a part of the whole word, e.g. “abbr.”. “WTF” is an acronym, because it consists of first letters of several words (What The F[…]).
This is hilarious. I have to admit I like a limited sprinkling of Hungarian in the db object naming, but never, ever datatypes on fields. <br> <br>Quick side note, however. In OLAP databases, breaking out a date in year, month, day, etc. is often a *good* practice. So without knowing the purpose of this DB it's hard to pick on that.
Not that anyone cares, but when I do a few searches for "acronym vs abbreviation" or "acronym vs initialism", the results usually* say an acronym is a special type of abbreviation that can be pronouced as a word itself. For example LASER stands for Light Amplification by Stimulated Emission of Radiation, but it's not pronouced by spelling out the letters L, A, S, E, R one by one. "WTF" would need to be read as "witiff" to qualify. <br> <br>* I did come across a site giving definitions that match what Centaur said: <br><a target="_new" href="http://pao.cnmoc.navy.mil/Educate/zeus/teacher/lesson/langart/abbrev.htm">http://pao.cnmoc.navy.mil/Educate/zeus/teacher/lesson/langart/abbrev.htm</a> <br> <br>Most of them used the pronouncable word definition though: <br><a target="_new" href="http://en.wikipedia.org/wiki/Initialism">http://en.wikipedia.org/wiki/Initialism</a> <br><a target="_new" href="http://c2.com/cgi/wiki?AcronymVsAbbreviation">http://c2.com/cgi/wiki?AcronymVsAbbreviation</a> <br><a target="_new" href="http://www.saila.com/usage/acronym/">http://www.saila.com/usage/acronym/</a> <br>
Yeah....I inherited an older project to do a small amount of maintenance on at a job a long time ago. Then in 2002, I was working at a stupid little e-commerce company when we got a new, ahem, "CTO". He actually was asking us (no, forcing us) to use a retarded Hungarian notation in a pre-existing, production database - all new tables and sp/functions would be in this silly style. Over myself and another developer, both of us with ten plus years of experience. Well, a dopey junior developer thought it was great, and proceeded to write a "standards" doc and gave it to us. Then the experienced people were fired. Oh well, life moves on, and you just gotta say, "WTF?".
I looked at the dates and read to myself "F-dat-StatusEffectiveDate", then it reminded me of the people who renamed their servers all 's' followed by the function of the box. They had two Exchange servers, sexchange1 and sexchange2
Well, the programmer might have had a reason to break the date into day/month/year, but there is almost surely no good reason to have both the combined and split forms in there. That's just asking for trouble.
YOUR is not an adjective. It's a possessive pronoun. I wonder why such wrongness is taught in senior english classes? (during my stay in the US, exactly this kind of BS was taught to us in senior high... boy was I glad to get back to Germany) <br> <br>And... WTF is a noun, at least it's a neologism/acronym used as one. <br> <br> <br>Ah, and yes - I /am/ a "Grammar Nazi" :)
"US grammar is my WTF"
Good Hungarian is useful and helpful.
Bad Hungarian is, well... BAD. ;)
agreed. This example is excessive and doesn't add much value for fields of course, but strict naming conventions can be quite useful when it makes sense to use them.
The URL of the day for Hungarian notation is http://msdn.microsoft.com/en-us/library/aa260976%28v=VS.60%29.aspx
Yesterday it probably was something else.
« Return to Article