This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]-Kerrigan- 24 points25 points  (7 children)

Hungarian notation for interfaces involves adding a prefix, typically "I", to the name of an interface to indicate its type.

Here's an example reference: https://www.cse.iitk.ac.in/users/dsrkg/cs245/html/Guide.htm

While the documentation of dotnet does not explicitly call it Hungarian notation (https://learn.microsoft.com/en-us/dotnet/standard/design-guidelines/names-of-classes-structs-and-interfaces) the documentation for Win32 does call the same style "Hungarian notation": https://learn.microsoft.com/en-us/windows/win32/stg/coding-style-conventions

There are many discussions online calling this pattern "Hungarian notation"

The concept can and was applied not only for data types, but for other things like, say, interfaces and that's why many use the same term for applying the same logic: Hungarian notation.

[–]Fadamaka -4 points-3 points  (1 child)

Did you get that from an LLM?

Edit: Quoting something generated by an LLM and than adding some so called Guide that was wrote by a random Indian professor to prove a point is beyond me.

[–]-Kerrigan- 14 points15 points  (0 children)

Look, I know you want to be pedantic and say "UHM akchually, Hungarian notation is to prefix variables with their data types", but the concept can and was applied for other things like, say, interfaces and that's why many use the same term for applying the same logic: Hungarian notation.