Click here to Skip to main content
15,885,914 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Names Pin
Mike Winiberg22-Apr-21 21:21
professionalMike Winiberg22-Apr-21 21:21 
GeneralRe: Names Pin
grralph122-Apr-21 23:56
grralph122-Apr-21 23:56 
GeneralRe: Names Pin
honey the codewitch23-Apr-21 2:01
mvahoney the codewitch23-Apr-21 2:01 
GeneralRe: Names Pin
Stefan_Lang2-May-21 3:02
Stefan_Lang2-May-21 3:02 
GeneralRe: Names Pin
Mike Winiberg2-May-21 5:32
professionalMike Winiberg2-May-21 5:32 
GeneralRe: Names Pin
Stefan_Lang4-May-21 1:41
Stefan_Lang4-May-21 1:41 
GeneralRe: Names Pin
Mike Winiberg4-May-21 5:12
professionalMike Winiberg4-May-21 5:12 
GeneralRe: Names Pin
Stefan_Lang4-May-21 8:48
Stefan_Lang4-May-21 8:48 
I know what you mean. I've seen my share of legacy garbage. And it doesn't stop in front of the big names. I still remember one project where I tried to put a thin layer between our embedded application and embedded Windows (back then still called CE), in an attempt to port it to another embedded OS. I stopped when I realized just how full the Windows APIs were with inconsistencies, including a couple of obvious bugs (well they became obvious when I worked on it - they weren't obvious at all when you looked at the individual parts of the API in isolation Unsure | :~ )

Everybody makes mistakes, and the older the systems are, the more mistakes you'll find. That's just the way things are, and my own code is no exception.

That doesn't invalidate my statement though: if used in the way I presented above, even if used inconsistently, it will increase the likelyhood of discovering semantic errors.

That said, I wouldn't use hungarian notation for any of the examples you brought up: I agree with you that in those cases it served no meaningful purpose.

I've found the article that was at the back of my mind all the time when posting here: Making Wrong Code Look Wrong – Joel on Software[^] I really like how Joel explains the do's and don'ts of hungarian notation, and how to use it correctly.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: Names Pin
Mike Winiberg4-May-21 10:38
professionalMike Winiberg4-May-21 10:38 
GeneralRe: Names Pin
Mike Winiberg4-May-21 11:11
professionalMike Winiberg4-May-21 11:11 
GeneralRe: Names Pin
Sander Rossel22-Apr-21 9:24
professionalSander Rossel22-Apr-21 9:24 
GeneralRe: Names Pin
grralph122-Apr-21 14:04
grralph122-Apr-21 14:04 
GeneralRe: Names Pin
Wizard of Sleeves22-Apr-21 20:52
Wizard of Sleeves22-Apr-21 20:52 
GeneralRe: Names Pin
grralph123-Apr-21 0:28
grralph123-Apr-21 0:28 
GeneralRe: Names Pin
Stefan_Lang2-May-21 3:17
Stefan_Lang2-May-21 3:17 
GeneralRe: Names Pin
Daniel Will22-Apr-21 21:22
Daniel Will22-Apr-21 21:22 
GeneralRe: Names Pin
grralph122-Apr-21 23:59
grralph122-Apr-21 23:59 
GeneralRe: Names Pin
Member 1068017923-Apr-21 2:56
Member 1068017923-Apr-21 2:56 
GeneralRe: Names Pin
Rusty Bullet23-Apr-21 3:09
Rusty Bullet23-Apr-21 3:09 
GeneralRe: Names Pin
BernardIE531723-Apr-21 5:00
BernardIE531723-Apr-21 5:00 
GeneralRe: Names Pin
grralph123-Apr-21 22:36
grralph123-Apr-21 22:36 
GeneralRe: Names Pin
Member 986208223-Apr-21 5:26
Member 986208223-Apr-21 5:26 
GeneralRe: Names Pin
grralph123-Apr-21 22:43
grralph123-Apr-21 22:43 
GeneralRe: Names Pin
Kiriander23-Apr-21 6:48
Kiriander23-Apr-21 6:48 
GeneralRe: Names Pin
grralph123-Apr-21 22:47
grralph123-Apr-21 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.