Re: How to pronounce PHP code over the phone?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 16, 2009 at 10:09 AM, Jim Lucas <lists@xxxxxxxxx> 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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux