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.
whichPrefer?
Moderator: General Moderators
Re: whichPrefer?
$car->start()
but
$car->setColor()

but
$car->setColor()
There are 10 types of people in this world, those who understand binary and those who don't