--Apple-Mail=_EF493A44-0AEF-4AC2-81DC-BB3FEAB2C264
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On Sep 6, 2014, at 9:40, Philip Rhoades <phil / pricom.com.au> wrote:

> People,
>=20
> I have been following the "Stoooopid OOP question" stuff and I went =
looking for some real-world examples of when to use the different sorts =
of methods but all I can find are silly "foo / bar" type examples - can =
someone point me to some simple examples that show me why there are =
cases when methods should not be public?

Not sure how simple this is, but it=92s fresh in my mind: =
https://github.com/basho/riak-ruby-client/blob/master/lib/riak/crdt/counte=
r.rb

Most of the public methods are part of the API that normal users of this =
gem will see: initializing, incrementing, decrementing, and inspecting =
the counter.=20

The two private methods aren=92t for public use. They allow the counter =
to be deserialized by methods in the parent class, and for the parent =
class to serialize counter operations.

--Apple-Mail=_EF493A44-0AEF-4AC2-81DC-BB3FEAB2C264
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJUCxGfAAoJEPq9+oWeY4VQs+wQAIyHSwQSRiiclt/hnrJPdVeQ
0+DqFnlcyao8nUML7Kaxlc5uF2+Vh6btqDJ9qYvZXiapgMQBqpgPFrw9Mfoke+4i
f2JR1238hsP9cb0ny9YuDkwJgWRYJ0d5lm50JJa0mePzAt/25sn/nASRvpW6dXGg
tIGsCqOfyGxg7T41Clx5ijBjmm3/6KM3kOOjIC9QvsietWn7y0IYVx4fDAp50wKy
E1zvgJOVBWHViqTrMGfGZArpimiCaH5u78/6ZhWl9HW0SPV8eOUWUMjKxtpKkvYu
SSsgI/XAhGdASkKFN0mK4RLM9ZXW3qgmUoWqv+qEx8Me1ZxZ1GqKpiEFh8zAfxLn
8/bUHfqRoXg6prQ7S99II9vuJ4nS90i7Xsx7sR6a/f3mXAxyfvvY1x1NWae8zuva
CVyu9WIenmGhv0pDYO3QSJiBqd1fbpKfmo9fV3Ccy+jLgzxdvXvfKjARhVAVH70N
Bf+TkuLkqeHvxdpC8R3G/6dzSx5Ud+DIdC+q0EPJYSfW8MkS1B6EJnLUfFUyq361
iqKfoFJWHLYiwpS5e5crU+wp9aBZNVx5hgFIAF2NX32Anf1p0TagyP9z43Ft8J7V
dvMmVDs671bmTcfQvaBmkDnosceM1ygzLctFPwDHqjtHFPVDYQnJAYVQYQJY+M56
s+bi/FtNxG0xrv3t/yZr
=Po4Q
-----END PGP SIGNATURE-----

--Apple-Mail=_EF493A44-0AEF-4AC2-81DC-BB3FEAB2C264--