I use HN where I think it will help. In a dynamically typed language, it's just documentation. There are situations in CF where you can't tell whether something is a query, and array or a struct. Sure, your unit test will tell you if you get it wrong, but it's nice to be able to just read the code without chasing back through the call stack to find the variable definition. I also use it to disambiguate strings - e.g. "url" is a full URL with protocol, hostname, fragment and so on, "qs" is just a query string...etc.
I use it much less in Java where the IDE will tell me each variable's type, value, declaration, everywhere it's used, its mother's maiden name and what it had for lunch. Jaime > -----Original Message----- > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Brian Sadler > Sent: Wednesday, 17 September 2008 3:30 AM > To: CFCDev > Subject: [CFCDEV] Hungarian notation is for numpties - discuss! > > > Apologies if this has been done to death before but... > > Whilst reviewing some code written by a colleague, my hackels > were raised by the presence of HN gems such as > arr_str_mimeattach (to signify an array of structures called > mmimeattach apparently). Am I alone in finding this stuff abominable? > > However, I've been quite happy to use things like > qryGetCustomer and customerIdList which opens me up to the > gravest of charges of being hypocritical... > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
