Re: [Tutor] Getting/setting attributes

2010-09-21 Thread lists
>> As I understand it, it makes most sense to set/get the attribute of >> an object using a method rather than doing it directly. > > Heavens no!!! That's backwards! > > It might be justified in languages like Java, where you can't easily > change your mind about direct attribute access. There's al

Re: [Tutor] Getting/setting attributes

2010-09-21 Thread Vince Spicer
On Tue, Sep 21, 2010 at 4:16 PM, bob gailer wrote: > On 9/21/2010 5:06 PM, lists wrote: > >> Hi tutors, >> >> I'm trying to each myself programming and come from a background in >> system administration with some experience in scripting (so I'm very >> new to it). >> >> Currently I'm grappling w

Re: [Tutor] Getting/setting attributes

2010-09-21 Thread lists
> > My opinion - unless there is some verification or translation or action > required it is better (easier, clearer) to just access and assign the > attribute directly. This makes sense. I guess my current way of doing it just reflects my inexperience. At the moment I'm just fumbling this out so

Re: [Tutor] Getting/setting attributes

2010-09-21 Thread Steven D'Aprano
On Wed, 22 Sep 2010 07:06:50 am lists wrote: > As I understand it, it makes most sense to set/get the attribute of > an object using a method rather than doing it directly. Heavens no!!! That's backwards! It might be justified in languages like Java, where you can't easily change your mind abou

Re: [Tutor] Getting/setting attributes

2010-09-21 Thread bob gailer
On 9/21/2010 5:06 PM, lists wrote: Hi tutors, I'm trying to each myself programming and come from a background in system administration with some experience in scripting (so I'm very new to it). Currently I'm grappling with the concept of object orientating programming and have a question abou

Re: [Tutor] Getting/setting attributes

2010-09-21 Thread lists
>> > Currently I'm grappling with the concept of object orientating >> >> Oops, just re-read that email. Anyone spot the obvious typo... Ahemmm >> of course I meant object orientated ;-) > > > Actually I believe you mean object *oriented*. > -Wayne Wow, spelling lessons too. And I thought this pla

Re: [Tutor] Getting/setting attributes

2010-09-21 Thread lists
> Currently I'm grappling with the concept of object orientating > programming and have a question about setting & getting attributes. Oops, just re-read that email. Anyone spot the obvious typo... Ahemmm of course I meant object orientated ;-) Chris __

[Tutor] Getting/setting attributes

2010-09-21 Thread lists
Hi tutors, I'm trying to each myself programming and come from a background in system administration with some experience in scripting (so I'm very new to it). Currently I'm grappling with the concept of object orientating programming and have a question about setting & getting attributes. As I