New Idea! Class Variable Scope all to Private + one Get Set

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

How do you find this way of doing

Good
1
14%
So So
1
14%
Bad
5
71%
 
Total votes: 7

josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: New Idea! Class Variable Scope all to Private + one Get Set

Post by josh »

Hopefully this isn't going to become a pi$$ing match

Most people would agree that controller code being less re-useable than model code is held self evident. If code duplication is useful in your application it doesn't sound like it is something you have to maintain, which would make it an exception; I never said you did a thing wrong... if you don't have to maintain [that part of] your code good for you
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: New Idea! Class Variable Scope all to Private + one Get Set

Post by Eran »

If code duplication is useful in your application
tch.. I guess it did became a pi$$ing competition. you win, mate
Post Reply