Re: How to pronounce PHP code over the phone?

From: Date: Sat, 17 Oct 2009 17:27:24 +0000
Subject: Re: How to pronounce PHP code over the phone?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-299017@lists.php.net to get a copy of this message
On Fri, Oct 16, 2009 at 10:09 AM, Jim Lucas <lists@cmsws.com> wrote: > Dotan Cohen wrote: >> How would you read this out loud if you were to read it to someone >> over  the phone? >> >> ($item->getServiceId() ? $item->getServiceId() : $item->getId()))); >> >> Thanks! >> > > FATAL ERROR: Non matching parenthesis. > > > Ok, but really, I would say something along these lines: > > > Open Conditional statement > > Test Condition >        Using object variable "item" call object member method "get service > id" > > if condition results are true issue following command >        Using object variable "item" call object member method "get service > id" > > if condition results are false issue following command >        Using object variable "item" call object member method "get id" > > I totally agree with your method, but I would condense it in a more pseudo code fashion: Conditional statement, methods are members of object "item" test expression, call method "get service id" true expression, call method "get service id" false expression, call method "get id" End conditional statement Of course it all depends on your previous experience communicating with the other individual. Its ultimately about communicating the correct information efficiently. As for following a convention, just get the PHP terminology right, or at least agree on your on bastardized terminology.

« previous php.general (#299017) next »