Do people use the Hungarian Naming Conventions in

2019-01-17 14:27发布

Is it worth learning the convention or is it a bane to readability and maintainability?

20条回答
beautiful°
2楼-- · 2019-01-17 15:18

It is pointless (and distracting) but is in relatively heavy use at my company, at least for types like ints, strings, booleans, and doubles.

Things like sValue, iCount, dAmount or fAmount, and bFlag are everywhere.

Once upon a time there was a good reason for this convention. Now, it is a cancer.

查看更多
贼婆χ
3楼-- · 2019-01-17 15:22

When using a dynamically typed language, I occasionally use Apps Hungarian. For statically typed languages I don't. See my explanation in the other thread.

查看更多
登录 后发表回答