Questions tagged [hungarian-notation]

Hungarian notation is a language-independent naming convention in which an identifier's prefix indicates its type. Examples include iCustomerId, sFirstName, etc.

Hungarian Notation is a language-independent naming convention in which an identifier's prefix contains meta information about the identifier. It could be used for type, to denote usage and/or for readability or maintainability.

Wikipedia Article

Joel Spolsky's Article

Examples

59 questions
1
vote
1 answer

"Codesniffer" for PHP Hungarian Notation

I am using PHAN in my projects and wonder if there is some kind of codesniffer to validate the code is PHAN compliant.
Paul Peelen
  • 10,073
  • 15
  • 85
  • 168
1
vote
3 answers

Hungarian Notation in Fortran

Is it considered good or bad practice? A friend of mine told me that, generally speaking, it was not considered a good practice in most languages now a days, but that he thought he heard that this was not the case with fortran. Is this true? And if…
Nordico
  • 1,226
  • 2
  • 15
  • 31
0
votes
1 answer

Apps Hungarian for modern Windows API projects?

Since answers to similar questions only go as far as to make the distinction between apps and systems Hungarian - is there any comprehensive list of apps Hungarian prefixes that could be used to maintain consistency between Windows API identifiers…
GDI512
  • 183
  • 1
  • 9
0
votes
1 answer

Regex to add hungarian notation

I'm parsing .h and .cpp files and I need to find/replace all non-Hungarian notated variables with their Hungarian equivalents. "Augh, why?!" you ask? My employer requires Hungarian notation, 'nuff said. Let's just deal with ints for now. Given any…
kevlar1818
  • 3,055
  • 6
  • 29
  • 43
0
votes
2 answers

web page change detection

Currently i am doing my project/thesis for the last semester, and i thought of doing it on "detecting the webpage changes in web". I have read two paper on this topic but i have some confusions 1. in a paper entitled An enhanced web page change…
Anis
  • 109
  • 2
  • 13
0
votes
2 answers

How to fix overlapping text when new pdf file created with pdfbox on a different Win7 workstation. On another win7 workstation NO Overlapping text

It's about overlapped text problem when creating new pdf file with org.apache.pdfbox from java code, problem don't know how to fix on win7 workstation: Pdf file model: " Melléklet a szállítólevélhez: x x x Dátum: x x x " Creating new pdf file…
0
votes
2 answers

What does the "uw" mean at the beginning of variable names in STM32 examples?

As I read STM32 example code I see a fair number of variables that begin with uw. Ex: static __IO uint32_t uwLsiFreq = 0; __IO uint32_t uwCaptureNumber = 0; __IO uint32_t uwPeriodValue = 0; __IO uint32_t uwMeasurementDone = 0; Everything has a…
Gabriel Staples
  • 36,492
  • 15
  • 194
  • 265
0
votes
0 answers

Correct the spelling of 'Colour' in member name 'ColorsValidatorMock.GetColourGroupLanguage()'

Error: Correct the spelling of 'Colour' in member name 'ColorsValidatorMock.GetColourGroupLanguage()' or remove it entirely if it represents any sort of Hungarian notation public static List GetColourGroupLanguage() { …
Ramesh Rajendran
  • 37,412
  • 45
  • 153
  • 234
0
votes
2 answers

Abbreviation in system .Net generated code

While Microsoft suggests to avoid using abbreviations in code, why do the system generated code of Event Handler contains following line? private void TextBox1_TextChanged(object sender, EventArgs e) Notice that "e" is in abbreviation. Does this…
0
votes
2 answers

CClass IInterface

If this is Hungarian notation (CClass and IInterface), is there a way around it? I generally don't use Hungarian notation and I'm not sure if it's wise to do this out of habit.
Jookia
  • 6,544
  • 13
  • 50
  • 60
0
votes
0 answers

Passing LPWSTR as Reference in a method in C++

I am passing LPWSTR as a reference in a method. The value remains in method but in callee function, it gets lost. I suspect I need to give some memory to LPWSTR but I am unable to figure out the method to do it. This is how my code looks…
0
votes
1 answer

If Hungarian notation is mostly disparaged why is "UpperCamel for constructors vs lowerCamel for everything else" so popular?

It seems to be the case at least here on StackOverflow that Hungarian notation is most often considered to be a bad thing (though a minority are still in favour). Now in the JavaScript world where I've been doing most of my coding for the past few…
-2
votes
3 answers

Good Naming Convention for Anonymous Types

An anonymous type can be thought of as a "Set Once" Object type, whereas an plain old Object or Variant can be set many times. An object or variant tends to be short lived, while an anonymous type is expected to live longer, making it important to…
CLaRGe
  • 1,821
  • 1
  • 25
  • 22
-6
votes
1 answer

What is Hungarian Notation?

Does it have any use cases in native Javascript, Jquery, or Angular? I found out about this notation when I was reading about the use of $ in front of variable names. The $ is used a lot in Jquery, does it have any relation to Hungarian Notation…
user2407334
  • 887
  • 1
  • 10
  • 15
1 2 3
4