[178] in Coldmud discussion meeting

root meeting help first first in chain previous in chain previous next last

Re: Encapsulation

daemon@ATHENA.MIT.EDU (Fri Mar 25 21:35:06 1994 )

Date: Fri, 25 Mar 1994 21:30:56 -0500 (EST)
From: William B Fisher <wbfst1+@pitt.edu>
To: ghudson@MIT.EDU (Greg Hudson)
Cc: coldstuff@MIT.EDU
In-Reply-To: <9403252332.AA20006@q.crossaccess.com>

Well, my only point worth spewing (if you can call it worth it) is that
encapsulation is a Good Idea.  For instance:
Given Player_X and Programmer_Y:
y does:
;$player_x.passwd(crypt("newpassword")); // OK, make it proper C-- if it isn't
If you are not careful (OK, it's an extreme case, but IT COULD HAPPEN), it
would happen.  Granted, there are ways around this as it is, I suspect, but
I wouldn't know them, given the fact that I don't know the current core
well enough to suit me.  If you force each object to define set_param
methods, then you know exactly which params can be set by other objects.
As a 'programmer' who spends much of his private time being paranoid about
privacy (on the net? pfeh), this is a Good Thing.  YMMV,AIIDFT/dev/null