public marks

PUBLIC MARKS from bader with tags python & oo

22 February 2006 19:30

MF Bliki: GetterEradicator

by 1 other
The general justification is that getters violate encapsulation. If I've got a bowler class with fields for overs, runs and wickets, then adding getters (getOvers, getRuns, getWickets) is little better than just making the fields public.

bader's TAGS related to tag python

10min +   aggregator +   agile +   ajax +   api +   archetypes +   association +   blog +   c +   c++ +   cache +   cmf +   commented +   decorator +   dev +   django +   doc +   education +   emacs +   encapsulation +   fastcgi +   flickr +   fr +   framework +   francophone +   français +   glade +   gnome +   gtk +   gui +   guide +   http +   humour +   hurd +   ide +   java +   javascript +   lang:fr +   lighttpd +   management +   oo +   paris +   perl +   photo +   planet +   plone +   plugins +   programming +   project +   psyco +   pyrex +   quick +   reference +   rest +   rss +   ruby +   scgi +   screencast +   service +   smart +   software +   sql +   string +   tests +   tips +   tk +   turbogears +   tutorial +   typecheck +   unittests +   upload +   vim +   web +   web2.0 +   webdev +   wiki +   wsgi +   xml-rpc +   zope +   zope3 +