whichPrefer?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

whichPrefer?

Post by volomike »

Which do you prefer?

public function setSomething()

public function set()

I mean, would you ever do something like:

$OBJ->set()
$OBJ->display()
$OBJ->assign()

as your personal tastes?

Or would you prefer:

$CAR->startCar()
$CAR->driveCar()

So it comes down to would you ever permit just verb() type class methods in your code, or verbThing() type class methods only?

Again -- just curious on the general consensus here.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: whichPrefer?

Post by VladSun »

$car->start()
but
$car->setColor()

:)
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply