Monday, December 6, 2021

When to Use Hungarian Notation

If the language has strong, static, and implicit type, then use System Hungarian Notation. If the language has strong, static, and implicit aggregate type but explicit primitive type, then use Application Hungarian Notation.

Strong vs Weak Types
Strong Types cannot be implicitly typecast to another. Weak Types have implicit typecast under type promotion rules.

Static vs Dynamic Types
Staric Types cannot change in runtime. Dynamic Types can change during runtime.

Implicit vs Explicit Types
Implicit Types are inferred by the compiler or interpreter. Explicit Tyles requires the programmer to input a keyword before or after the declaration of the variable varying by language syntax.

No comments: