Scott Hanselman

Abbreviations and you...

May 22, 2004 Comment on this post [7] Posted in Programming
Sponsored By

If I see one more variable with a name like "VoyAcctReqTrxTransOpLPCSTR" I'm going to shoot someone, or myself. 

People, if it's an "Account" call it one.  If it's a MortgageAccount, well, you get the idea.

Sorry, I'm about to go postal here, but it's Friday.  Sigh.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service
May 22, 2004 2:51
Man, no kidding. I had a customer where I had to make some modifications to an app from a previous consultant. What should have taken me hours ended up taking days as I traced around variables and even function names that were things like "rc" and "a" and "btf" - you get the idea. The code looked like it had been through an obfuscator or something, but the sad thing was that it was just written that way.

So, Scott, I feel your pain. That was not a happy time for me ;-)
May 22, 2004 2:57
We are having the same problem. We even rewrote out programming standards to eleviate this issue, but it still persist. Old happens die hard, be it older programming standards, or people use to writing for older languages. .NET doesn't have the same character limitations of some of the legacy languages that people in the banking biz are use to dealing with. So day, so day they will all see how cool .NET really is.
May 22, 2004 3:04
My personal bugbear is the leftover FORTRAN crap. .NET code where all the variables are named ACCTNM and IDNTNM. If I have to look at a document to figure out that IDNTNM == IdentifierName and not IdentifierNumber it's going to end up costing somebody way too much.
May 22, 2004 3:26
It's time to get The Donald hairpiece out and say "You're fired."
May 22, 2004 19:57
Exactly. SmtmsItsHrd2FgrOtWhtNtntOfARtnIs. GdNmCnvntnsWdRlyHlpMkPgmMntable.
May 22, 2004 22:30
AMEN! Just as tasty are those who force a alphanumeric scheme on the database to make it internationalizable! ST102STA for a column name.
/EndVent - I actually struggle with this sometimes. I had been playing with VS.NET so much for so long with intellisense, I really wonder if I know how to type anymore or am just a two characters and ctrl+space-er. I had the occasion to have to write some code in *GASP* notepad.net a short while ago and found myself falling into shorthand since it was just a mock-up on something. (Don't get me started on how too often mock-ups become production code).
May 25, 2004 20:53
This way, there won't be any need for code obfuscators...

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.