• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Style Guide

 
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After reading the response to my first assignment submission, I thought I'd better read that style guide again. Can anyone explain this further:
Hungarian Notation violates OO abstraction and is not to be used.
I know what Hungarian notation is, a little shaky on OO abstrataction.
Thanks
 
Trailboss
Posts: 23773
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is one that we've covered in some huge detail in the past. Do a search on all forums for "hungarian" to find all that old stuff.
A quick description is that with abstraction, you don't know anything about the innards of a variable. The variable just holds data. If you use HN, you are exposing its innards, so you have lost your abstraction.
There are lots of other reasons to not use HN, most involve refactoring. The search should turn up far more than you ever wanted to know.
 
reply
    Bookmark Topic Watch Topic
  • New Topic