<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Programmers Debate: _underscore private class properties?</title>
	<link>http://www.technologytranslated.com/2008/04/02/programmers-debate-underscore-private-class-properties/</link>
	<description>ArcStone employees / contractors practicing Internet alchemy - translating tech into vision and vision into tech....</description>
	<pubDate>Mon, 13 Oct 2008 09:10:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: ET</title>
		<link>http://www.technologytranslated.com/2008/04/02/programmers-debate-underscore-private-class-properties/#comment-3040</link>
		<author>ET</author>
		<pubDate>Sat, 05 Apr 2008 02:38:55 +0000</pubDate>
		<guid>http://www.technologytranslated.com/2008/04/02/programmers-debate-underscore-private-class-properties/#comment-3040</guid>
					<description>Personally, I'm not for it.  While it does add something that will immediately set the variable apart, it's not really doing anything else for you except (like you said) making a bit more work of typing your variable names.

I'm a proponent of making pretty much everything private and manipulating your instance variables via methods -- not necessarily get/set, though those are useful, but through higher-level methods.  A class tends to represent a concept, and its methods represent relevant actions, not just operations on its variables.

Public member variables are actually a bit of an oddity, though a common one: Your instance retains no control over a public variable.</description>
		<content:encoded><![CDATA[<p>Personally, I&#8217;m not for it.  While it does add something that will immediately set the variable apart, it&#8217;s not really doing anything else for you except (like you said) making a bit more work of typing your variable names.</p>
<p>I&#8217;m a proponent of making pretty much everything private and manipulating your instance variables via methods &#8212; not necessarily get/set, though those are useful, but through higher-level methods.  A class tends to represent a concept, and its methods represent relevant actions, not just operations on its variables.</p>
<p>Public member variables are actually a bit of an oddity, though a common one: Your instance retains no control over a public variable.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
