Re: [PHP] How to pronounce PHP code over the phone?

2009-12-15 Thread Richard Quadling
2009/10/16 Dotan Cohen dotanco...@gmail.com:
 It's called vacation away from the 'net but there is an emergency. I'm
 certain that a fair portion of the list is familiar with that!

 I haven't the slightest idea what you are talking about. Vacation? Away
 from the net? We must be from different planets...

 How to do you vacation from something implanted into your brain?


 http://www.imdb.com/title/tt0100802/

 --
 Dotan Cohen

 http://what-is-what.com
 http://gibberish.co.il

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



Surely  Johnny Moronic would have been a better example?

-- 
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-12-15 Thread Richard Quadling
2009/10/16 Dotan Cohen dotanco...@gmail.com:
 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!

 --
 Dotan Cohen

 http://what-is-what.com
 http://gibberish.co.il

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



I would optimize this though.

($item-getServiceId() || $item-getId())

Unless you REALLY need to call $item-getServiceId() twice.

So, this should be a little easier to say.

-- 
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-24 Thread Kim Madsen

Dotan Cohen wrote on 2009-10-23 22:40:

But I think for the OP's purposes, he could simply DEFINE any word he wanted
at the beginning of the conversation: Listen up duder. When I say 'de-ref'
you make hyphen and a greater-than sign. Capiche?. He could just as easily
say, Listen up duder. When I say 'arrow-thingy' you make hyphen and a
greater-than sign. Capiche?  Problem solved. ;-)



That is what was done, but I wanted to know if there was already some
agreed-upon language.


There is... It's called a Fax ;-)

--
Kind regards
Kim Emax - masterminds.dk

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-24 Thread Dotan Cohen
 There is... It's called a Fax ;-)


Again, I am interested in knowing the proper terminology for PHP
constructs and code. We have a name for a small sweer green fruit from
the vine, and we have a name for the alcoholic beverage that is
derived from it. Knowing these names helps one communicate verbally,
even when one could simply fax a photo of a grape and a glass of wine.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-23 Thread Dotan Cohen
 But I think for the OP's purposes, he could simply DEFINE any word he wanted
 at the beginning of the conversation: Listen up duder. When I say 'de-ref'
 you make hyphen and a greater-than sign. Capiche?. He could just as easily
 say, Listen up duder. When I say 'arrow-thingy' you make hyphen and a
 greater-than sign. Capiche?  Problem solved. ;-)


That is what was done, but I wanted to know if there was already some
agreed-upon language.


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-21 Thread Dotan Cohen
 Open paren. Dollar-sign item de-ref getServiceID method. Question mark.
 Dollar-sign item de-ref getServiceID method again. Colon.
 Dollar-sign item de-ref getID method. Close up matching parenthesis.

 http://en.wikipedia.org/wiki/Reference_%28computer_science%29


Thanks. The word Reference was what was missing, as was the term de-ref.


 I would also suggest s/he and I use a tool such as:

 http://snipt.org/oGg
 http://pastebin.com/m5b1d82b2
 http://pastie.org/662703
 http://gist.github.com/214652

 For more real-time collaboration and sharing of code fragments.


Widely used, but sometimes unavailable due to technological limitations.


 Daevid.

Is your name related to David? I have never seen this spelling, and
my interest in etymology is overwhelming. What is the origin of this
name or spelling? Thanks!


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-21 Thread tedd

At 9:42 AM +0200 10/21/09, Dotan Cohen wrote:

  Open paren. Dollar-sign item de-ref getServiceID method. Question mark.

 Dollar-sign item de-ref getServiceID method again. Colon.
 Dollar-sign item de-ref getID method. Close up matching parenthesis.


  http://en.wikipedia.org/wiki/Reference_%28computer_science%29




Thanks. The word Reference was what was missing, as was the term de-ref.


Read a bit further down in the above link, namely the php link, which is:

http://www.php.net/manual/en/language.variables.variable.php

Using the term de-ref is not complete and could be misleading -- 
dereferencing a variable in php is simply $$var and not -var.


The arrow operator ($a-$b) dereferences the element to its left 
and accesses the member to it's right. If you want an example in C it 
would be (*a).b


While I was not able to find the official name for the operator, 
but it could be called an dereference access operator or the field 
access operator.


HTH's

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



RE: [PHP] How to pronounce PHP code over the phone?

2009-10-21 Thread Daevid Vincent
 

 -Original Message-
 From: tedd [mailto:tedd.sperl...@gmail.com] 
 Sent: Wednesday, October 21, 2009 7:38 AM
 To: Dotan Cohen; Daevid Vincent
 Cc: php-general.
 Subject: Re: [PHP] How to pronounce PHP code over the phone?
 
 At 9:42 AM +0200 10/21/09, Dotan Cohen wrote:
Open paren. Dollar-sign item de-ref getServiceID 
 method. Question mark.
   Dollar-sign item de-ref getServiceID method again. Colon.
   Dollar-sign item de-ref getID method. Close up matching 
 parenthesis.
 
http://en.wikipedia.org/wiki/Reference_%28computer_science%29
 
 
 Thanks. The word Reference was what was missing, as was the 
 term de-ref.
 
 Read a bit further down in the above link, namely the php 
 link, which is:
 
 http://www.php.net/manual/en/language.variables.variable.php
 
 Using the term de-ref is not complete and could be misleading -- 
 dereferencing a variable in php is simply $$var and not -var.
 
 The arrow operator ($a-$b) dereferences the element to its left 
 and accesses the member to it's right. If you want an example in C it 
 would be (*a).b
 
 While I was not able to find the official name for the operator, 
 but it could be called an dereference access operator or the field 
 access operator.

Well, if I were talking to a fellow PHPriend, I probalby wouldn't even use
the word de-ref as I would assume that they would know (some basics in
that) if I say,  'item's getServiceID method  that 'item' is an object and
therefore must be prefixed with a dollar sign ($) and that to make a
'getServiceID' method, it requires the - arrow as well as the ending
parenthesis. 

But I think for the OP's purposes, he could simply DEFINE any word he wanted
at the beginning of the conversation: Listen up duder. When I say 'de-ref'
you make hyphen and a greater-than sign. Capiche?. He could just as easily
say, Listen up duder. When I say 'arrow-thingy' you make hyphen and a
greater-than sign. Capiche?  Problem solved. ;-)



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



RE: [PHP] How to pronounce PHP code over the phone?

2009-10-20 Thread Daevid Vincent
 

 -Original Message-
 From: Dotan Cohen [mailto:dotanco...@gmail.com] 
 Sent: Friday, October 16, 2009 8:46 AM
 To: php-general.
 Subject: [PHP] How to pronounce PHP code over the phone?
 
 How would you read this out loud if you were to read it to someone
 over the phone?
 
 ($item-getServiceId() ? $item-getServiceId() : $item-getId(;

Open paren. Dollar-sign item de-ref getServiceID method. Question mark.
Dollar-sign item de-ref getServiceID method again. Colon. 
Dollar-sign item de-ref getID method. Close up matching parenthesis.

http://en.wikipedia.org/wiki/Reference_%28computer_science%29

I would also suggest s/he and I use a tool such as:

http://snipt.org/oGg
http://pastebin.com/m5b1d82b2
http://pastie.org/662703
http://gist.github.com/214652

For more real-time collaboration and sharing of code fragments.

Daevid.
http://daevid.com


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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-17 Thread tedd

At 4:15 AM +0200 10/17/09, Dotan Cohen wrote:

  This is a lot of posts to say either read it off character by

 character


If there is a jargon for operators such as - I'd like to know them.

Dotan Cohen



As I said previously, it's called an operator.

Of course you can call it whatever you want, such as arrow pointing 
right, pointy thing, or even blind evil grin. :-)


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-17 Thread Dotan Cohen
 As for following a convention, just
 get the PHP terminology right,

That is what I was hoping to learn!

 or at least agree on your on
 bastardized terminology.


Because this may cause problems in the future.


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Ashley Sheridan
On Fri, 2009-10-16 at 17:46 +0200, 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!
 
 -- 
 Dotan Cohen
 
 http://what-is-what.com
 http://gibberish.co.il
 


Wow! Here goes:

Open-bracket, dollar item hypen greater-than, get service id, no all one
word but with a capital S and I. Open and close brackets, question mark,
dollar item again, then a hyphen and greater-than, that get service id
and brackets bit again, exactly the same as last time; yes, capital S
and I again. Colon, no the colon is the one with two dots, not dot and
comma. Dollar item again, then hypen, greater-than, get id, with a
capital I. Nope, no service bit this time. Now, open bracket and two
closing brackets (I assumed the final two on your example were typos?!).
now a semi-colon, yes the one with the comma.

That's pretty much how I could foresee me telling someone this on the
phone, but to be honest, I'd really prefer an email ;)

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 Wow! Here goes:

 Open-bracket, dollar item hypen greater-than, get service id, no all one word 
 but with a capital S and I. Open and close brackets, question mark, dollar 
 item again, then a hyphen and greater-than, that get service id and brackets 
 bit again, exactly the same as last time; yes, capital S and I again. Colon, 
 no the colon is the one with two dots, not dot and comma. Dollar item again, 
 then hypen, greater-than, get id, with a capital I. Nope, no service bit this 
 time. Now, open bracket and two closing brackets (I assumed the final two on 
 your example were typos?!). now a semi-colon, yes the one with the comma.

 That's pretty much how I could foresee me telling someone this on the phone, 
 but to be honest, I'd really prefer an email ;)


So it really involves mentioning each character. I was hoping that
there would be a shared language for constructs such as - and the
like.

Thanks.

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 open parenthesis
 $item getServiceId
 question symbol
 $item getServiceId
 colon
 $item getId
 close parenthesis



How would you mention the - constructs? Certainly they are not assumed?


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Ashley Sheridan
On Fri, 2009-10-16 at 18:01 +0200, Dotan Cohen wrote:

  Wow! Here goes:
 
  Open-bracket, dollar item hypen greater-than, get service id, no all one 
  word but with a capital S and I. Open and close brackets, question mark, 
  dollar item again, then a hyphen and greater-than, that get service id and 
  brackets bit again, exactly the same as last time; yes, capital S and I 
  again. Colon, no the colon is the one with two dots, not dot and comma. 
  Dollar item again, then hypen, greater-than, get id, with a capital I. 
  Nope, no service bit this time. Now, open bracket and two closing brackets 
  (I assumed the final two on your example were typos?!). now a semi-colon, 
  yes the one with the comma.
 
  That's pretty much how I could foresee me telling someone this on the 
  phone, but to be honest, I'd really prefer an email ;)
 
 
 So it really involves mentioning each character. I was hoping that
 there would be a shared language for constructs such as - and the
 like.
 
 Thanks.
 
 --
 Dotan Cohen
 
 http://what-is-what.com
 http://gibberish.co.il


Not that I know of, and trying to explain any sort of code over the
phone is just going to lead to a disaster down the line!

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Martin Scotta
First ask him/her for an email address, and then while you are over the
phone send the text by email.
This way the other can *instantaneously* read and both of you can talk about
the code.

On Fri, Oct 16, 2009 at 1:01 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:

 On Fri, 2009-10-16 at 18:01 +0200, Dotan Cohen wrote:

   Wow! Here goes:
  
   Open-bracket, dollar item hypen greater-than, get service id, no all
 one word but with a capital S and I. Open and close brackets, question mark,
 dollar item again, then a hyphen and greater-than, that get service id and
 brackets bit again, exactly the same as last time; yes, capital S and I
 again. Colon, no the colon is the one with two dots, not dot and comma.
 Dollar item again, then hypen, greater-than, get id, with a capital I. Nope,
 no service bit this time. Now, open bracket and two closing brackets (I
 assumed the final two on your example were typos?!). now a semi-colon, yes
 the one with the comma.
  
   That's pretty much how I could foresee me telling someone this on the
 phone, but to be honest, I'd really prefer an email ;)
  
 
  So it really involves mentioning each character. I was hoping that
  there would be a shared language for constructs such as - and the
  like.
 
  Thanks.
 
  --
  Dotan Cohen
 
  http://what-is-what.com
  http://gibberish.co.il


 Not that I know of, and trying to explain any sort of code over the
 phone is just going to lead to a disaster down the line!

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk





-- 
Martin Scotta


Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Bipin Upadhyay

On 10/16/2009 9:31 PM, Dotan Cohen wrote:

Wow! Here goes:

Open-bracket, dollar item hypen greater-than, get service id, no all one word 
but with a capital S and I. Open and close brackets, question mark, dollar item 
again, then a hyphen and greater-than, that get service id and brackets bit 
again, exactly the same as last time; yes, capital S and I again. Colon, no the 
colon is the one with two dots, not dot and comma. Dollar item again, then 
hypen, greater-than, get id, with a capital I. Nope, no service bit this time. 
Now, open bracket and two closing brackets (I assumed the final two on your 
example were typos?!). now a semi-colon, yes the one with the comma.

That's pretty much how I could foresee me telling someone this on the phone, 
but to be honest, I'd really prefer an email ;)

 

So it really involves mentioning each character. I was hoping that
there would be a shared language for constructs such as -  and the
like.

   

There are, what you'd call, technical jargon for them.
However, it'd pretty obviously depend on the extent of knowledge of the 
person on other side of phone line. If she understands PHP objects, 
difference between OOP in PHP4  PHP5, and ternary operator, things 
would be fairly simple.


In any case, Ashley's nailed the foolproof technique for sure :)

Thanks.

--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

   


--Bipin Upadhyay.
http://projectbee.org/

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Jim Lucas
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


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



RE: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Bob McConnell
From: Ashley Sheridan
 On Fri, 2009-10-16 at 18:01 +0200, Dotan Cohen wrote:
  Wow! Here goes:
 
  Open-bracket, dollar item hypen greater-than, get service id, no
all one word but with a capital S and I. Open and close brackets,
question mark, dollar item again, then a hyphen and greater-than, that
get service id and brackets bit again, exactly the same as last time;
yes, capital S and I again. Colon, no the colon is the one with two
dots, not dot and comma. Dollar item again, then hypen, greater-than,
get id, with a capital I. Nope, no service bit this time. Now, open
bracket and two closing brackets (I assumed the final two on your
example were typos?!). now a semi-colon, yes the one with the comma.
 
  That's pretty much how I could foresee me telling someone this on
the phone, but to be honest, I'd really prefer an email ;)
 
 
 So it really involves mentioning each character. I was hoping that
 there would be a shared language for constructs such as - and the
 like.


 Not that I know of, and trying to explain any sort of code over the
 phone is just going to lead to a disaster down the line!

The only time I would even consider doing that would be when I am using
a TTD connection to communicate with a hearing impaired individual.

Bob McConnell

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread tedd

At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote:

On Fri, 2009-10-16 at 17:46 +0200, 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!

 --
 Dotan Cohen

 http://what-is-what.com
 http://gibberish.co.il




Wow! Here goes:

Open-bracket,


No, that's not an open bracket -- that's an open parenthesis or 
paren for short.


An open bracket is [

An open curly brace is {

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings

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(;


It depends... is the person familiar with PHP or not? If they are not 
then the process is more cumbersome since I can't say things like 
variable item calling camel-case method getServiceId without parameters.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread tedd

So it really involves mentioning each character. I was hoping that
there would be a shared language for constructs such as - and the
like.


I like pointy-thingie, but it's called an operator.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Ashley Sheridan
On Fri, 2009-10-16 at 12:47 -0400, tedd wrote:

 At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote:
 On Fri, 2009-10-16 at 17:46 +0200, 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!
 
   --
   Dotan Cohen
 
   http://what-is-what.com
   http://gibberish.co.il
 
 
 
 Wow! Here goes:
 
 Open-bracket,
 
 No, that's not an open bracket -- that's an open parenthesis or 
 paren for short.
 
 An open bracket is [
 
 An open curly brace is {
 
 Cheers,
 
 tedd
 -- 
 ---
 http://sperling.com  http://ancientstones.com  http://earthstones.com
 


You say potato, I say chips! (and this is the good ol' English chips,
the nice greasy sort you traditionally eat down the beach while you're
walking along pebbled British beaches as it's bucketing down with rain;
Seasoned with a handful of salt and swimming in vinegar!)

Thanks,
Ash
http://www.ashleysheridan.co.uk




RE: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Bob McConnell
From: tedd

 At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote:
On Fri, 2009-10-16 at 17:46 +0200, 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(;



Wow! Here goes:

Open-bracket,
 
 No, that's not an open bracket -- that's an open parenthesis or 
 paren for short.
 
 An open bracket is [
 
 An open curly brace is {
 

That depends on which edition of English you use. Take a look at the
definition of bracket in Wikipedia. What you call a parenthesis is
called a bracket in England and parts of Canada, as well as elsewhere.
They specify square bracket for the second one. I stumbled on this one
in another mailing list a few years ago.

Bob McConnell

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings

Ashley Sheridan wrote:

On Fri, 2009-10-16 at 12:47 -0400, tedd wrote:


At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote:

On Fri, 2009-10-16 at 17:46 +0200, 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!

 --
 Dotan Cohen

 http://what-is-what.com
 http://gibberish.co.il



Wow! Here goes:

Open-bracket,
No, that's not an open bracket -- that's an open parenthesis or 
paren for short.


An open bracket is [

An open curly brace is {

Cheers,

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com




You say potato, I say chips! (and this is the good ol' English chips,
the nice greasy sort you traditionally eat down the beach while you're
walking along pebbled British beaches as it's bucketing down with rain;
Seasoned with a handful of salt and swimming in vinegar!)


Tasty malt vinegar... not that clear crappy type ubiquitous here in 
North America.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread LinuxManMikeC
On Fri, Oct 16, 2009 at 10:07 AM, Bob McConnell r...@cbord.com wrote:
 From: Ashley Sheridan
 On Fri, 2009-10-16 at 18:01 +0200, Dotan Cohen wrote:
  Wow! Here goes:
 
  Open-bracket, dollar item hypen greater-than, get service id, no
 all one word but with a capital S and I. Open and close brackets,
 question mark, dollar item again, then a hyphen and greater-than, that
 get service id and brackets bit again, exactly the same as last time;
 yes, capital S and I again. Colon, no the colon is the one with two
 dots, not dot and comma. Dollar item again, then hypen, greater-than,
 get id, with a capital I. Nope, no service bit this time. Now, open
 bracket and two closing brackets (I assumed the final two on your
 example were typos?!). now a semi-colon, yes the one with the comma.
 
  That's pretty much how I could foresee me telling someone this on
 the phone, but to be honest, I'd really prefer an email ;)
 

 So it really involves mentioning each character. I was hoping that
 there would be a shared language for constructs such as - and the
 like.


 Not that I know of, and trying to explain any sort of code over the
 phone is just going to lead to a disaster down the line!

 The only time I would even consider doing that would be when I am using
 a TTD connection to communicate with a hearing impaired individual.

 Bob McConnell


Basically, use a modem.

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings

Bob McConnell wrote:

From: tedd


At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote:

On Fri, 2009-10-16 at 17:46 +0200, 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(;



Wow! Here goes:

Open-bracket,
No, that's not an open bracket -- that's an open parenthesis or 
paren for short.


An open bracket is [

An open curly brace is {



That depends on which edition of English you use. Take a look at the
definition of bracket in Wikipedia. What you call a parenthesis is
called a bracket in England and parts of Canada, as well as elsewhere.
They specify square bracket for the second one. I stumbled on this one
in another mailing list a few years ago.


Bracket... two syllables and ambiguous.

Round Brace... two syllables and not ambiguous.

For terse clarity use the following:

- round brace
- square brace
- curly brace
- angle brace

:)

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Joseph Masoud

Robert Cummings wrote:

Bob McConnell wrote:

From: tedd


At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote:

On Fri, 2009-10-16 at 17:46 +0200, 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(;



Wow! Here goes:

Open-bracket,
No, that's not an open bracket -- that's an open parenthesis or 
paren for short.


An open bracket is [

An open curly brace is {



That depends on which edition of English you use. Take a look at the
definition of bracket in Wikipedia. What you call a parenthesis is
called a bracket in England and parts of Canada, as well as elsewhere.
They specify square bracket for the second one. I stumbled on this one
in another mailing list a few years ago.


Bracket... two syllables and ambiguous.

Round Brace... two syllables and not ambiguous.

For terse clarity use the following:

- round brace
- square brace
- curly brace
- angle brace

:)

Cheers,
Rob.
Have you thought about using instant messaging?  How about sending the 
code to him via text message?  Putting it on a pastie or on code pad? 
IRC, sFTP, SSH, you see, in the 21st century, there exists a plethora of 
solutions to circumvent this particular issue.


I would be interested in finding out how the OP ended up having 
absolutely no option but to pass code to another Homo Sapien verbally?  
Unless you managed to cripple your system and disconnect your company 
from the internet, surely, it would have been faster (and easier) using 
the methods above rather than trying to spell it out over the phone.


In any case, I would say:

Call the getServiceId method of the $item object and make that the 
condition of a ternary opertor, if true, call the method again, 
otherwise call the getId method of the $item object


I'm guessing the reason you were on the phone to him/her was because 
your parentheses don't match ... but that's a different story I guess.


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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 First ask him/her for an email address, and then while you are over the
 phone send the text by email.
 This way the other can *instantaneously* read and both of you can talk about
 the code.


That is how it is usually done. But we have found ourselves twice in
the position where one had to talk over the phone when a computer or
other internet-enabled device was not accessible. Therefore, we would
prefer to formulate a shared language now for use in such situations.

Surely when coding, people say what they are typing in their heads.
I do, but not in English.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 There are, what you'd call, technical jargon for them.
 However, it'd pretty obviously depend on the extent of knowledge of the
 person on other side of phone line. If she understands PHP objects,
 difference between OOP in PHP4  PHP5, and ternary operator, things would be
 fairly simple.


Yes, the other end of the phone is an experienced PHP developer.


 In any case, Ashley's nailed the foolproof technique for sure :)

But I am the fool to prove it! No internet access!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 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



Thanks, that is probably best. Leave the code to the coder, but
transmit the intention.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 It depends... is the person familiar with PHP or not? If they are not then
 the process is more cumbersome since I can't say things like variable item
 calling camel-case method getServiceId without parameters.


Yes, I should have mentioned that the other party is an experienced
PHP developer.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 Have you thought about using instant messaging?  How about sending the code
 to him via text message?  Putting it on a pastie or on code pad? IRC, sFTP,
 SSH, you see, in the 21st century, there exists a plethora of solutions to
 circumvent this particular issue.

 I would be interested in finding out how the OP ended up having absolutely
 no option but to pass code to another Homo Sapien verbally?  Unless you
 managed to cripple your system and disconnect your company from the
 internet, surely, it would have been faster (and easier) using the methods
 above rather than trying to spell it out over the phone.


It's called vacation away from the 'net but there is an emergency.
I'm certain that a fair portion of the list is familiar with that!


 In any case, I would say:

 Call the getServiceId method of the $item object and make that the
 condition of a ternary opertor, if true, call the method again, otherwise
 call the getId method of the $item object


Thanks!


 I'm guessing the reason you were on the phone to him/her was because your
 parentheses don't match ... but that's a different story I guess.


That actually sounds like a subplot of a good movie.


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



RE: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Bob McConnell
From: Dotan Cohen

 I would be interested in finding out how the OP ended up having absolutely
 no option but to pass code to another Homo Sapien verbally?  Unless you
 managed to cripple your system and disconnect your company from the
 internet, surely, it would have been faster (and easier) using the methods
 above rather than trying to spell it out over the phone.

 
 It's called vacation away from the 'net but there is an emergency.
 I'm certain that a fair portion of the list is familiar with that!

If they can reach you by phone you are not on vacation. You are still attached 
to their leash.

Bob McConnell

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 If they can reach you by phone you are not on vacation. You are still 
 attached to their leash.


And they still throw me bones :) It's worth it!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread O. Lavell
Dotan Cohen wrote:

 It's called vacation away from the 'net but there is an emergency. I'm
 certain that a fair portion of the list is familiar with that!

I haven't the slightest idea what you are talking about. Vacation? Away 
from the net? We must be from different planets...



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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 I haven't the slightest idea what you are talking about. Vacation? Away
 from the net? We must be from different planets...


Very likely, as us Saturnians inhabit the moons, not the planet. Only
rocky planet-dwellers talk like that!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings

O. Lavell wrote:

Dotan Cohen wrote:


It's called vacation away from the 'net but there is an emergency. I'm
certain that a fair portion of the list is familiar with that!


I haven't the slightest idea what you are talking about. Vacation? Away 
from the net? We must be from different planets...


How to do you vacation from something implanted into your brain?

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 It's called vacation away from the 'net but there is an emergency. I'm
 certain that a fair portion of the list is familiar with that!

 I haven't the slightest idea what you are talking about. Vacation? Away
 from the net? We must be from different planets...

 How to do you vacation from something implanted into your brain?


http://www.imdb.com/title/tt0100802/

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Tommy Pham
- Original Message 
 From: Dotan Cohen dotanco...@gmail.com
 To: Bipin Upadhyay muxical.g...@gmail.com
 Cc: a...@ashleysheridan.co.uk; php-general. php-general@lists.php.net
 Sent: Fri, October 16, 2009 11:29:09 AM
 Subject: Re: [PHP] How to pronounce PHP code over the phone?
 
  There are, what you'd call, technical jargon for them.
  However, it'd pretty obviously depend on the extent of knowledge of the
  person on other side of phone line. If she understands PHP objects,
  difference between OOP in PHP4  PHP5, and ternary operator, things would be
  fairly simple.
 
 
 Yes, the other end of the phone is an experienced PHP developer.
 

IMO, if you have to explain this code over the phone or any medium:

($item-getServiceId() ? $item-getServiceId() : $item-getId(;

The other person you're talking to is definitely not experienced.  ;)

Regards,
Tommy

 
  In any case, Ashley's nailed the foolproof technique for sure :)
 
 But I am the fool to prove it! No internet access!
 
 -- 
 Dotan Cohen
 
 http://what-is-what.com
 http://gibberish.co.il
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 Yes, the other end of the phone is an experienced PHP developer.


 IMO, if you have to explain this code over the phone or any medium:

 ($item-getServiceId() ? $item-getServiceId() : $item-getId(;

 The other person you're talking to is definitely not experienced.  ;)


I do not need to explain it, I need to say it.


-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Bastien Koert
This is a lot of posts to say either read it off character by
character or just email the damn line.

On 10/16/09, Dotan Cohen dotanco...@gmail.com wrote:
 Yes, the other end of the phone is an experienced PHP developer.


 IMO, if you have to explain this code over the phone or any medium:

 ($item-getServiceId() ? $item-getServiceId() : $item-getId(;

 The other person you're talking to is definitely not experienced.  ;)


 I do not need to explain it, I need to say it.


 --
 Dotan Cohen

 http://what-is-what.com
 http://gibberish.co.il

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



-- 
Sent from my mobile device


Bastien

Cat, the other other white meat

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



RE: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread tedd

At 12:59 PM -0400 10/16/09, Bob McConnell wrote:

From: tedd

 At 4:51 PM +0100 10/16/09, Ashley Sheridan wrote:


 Open-bracket,


 No, that's not an open bracket -- that's an open parenthesis or
 paren for short.

 An open bracket is [

 An open curly brace is {



That depends on which edition of English you use. Take a look at the
definition of bracket in Wikipedia. What you call a parenthesis is
called a bracket in England and parts of Canada, as well as elsewhere.
They specify square bracket for the second one. I stumbled on this one
in another mailing list a few years ago.

Bob McConnell


I just follow the books published on the subject.

Cheers,


tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread tedd

At 8:31 PM +0200 10/16/09, Dotan Cohen wrote:

  It depends... is the person familiar with PHP or not? If they are not then

 the process is more cumbersome since I can't say things like variable item
 calling camel-case method getServiceId without parameters.



Yes, I should have mentioned that the other party is an experienced
PHP developer.


Well then you're really in trouble because experienced PHP developers 
can't agree on anything. :-)


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings

Dotan Cohen wrote:

It's called vacation away from the 'net but there is an emergency. I'm
certain that a fair portion of the list is familiar with that!

I haven't the slightest idea what you are talking about. Vacation? Away
from the net? We must be from different planets...

How to do you vacation from something implanted into your brain?



http://www.imdb.com/title/tt0100802/


My internet was out earlier... but when I saw IMDB in the link I just 
new it was going to be Total Recall ;)


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Robert Cummings



tedd wrote:

At 8:31 PM +0200 10/16/09, Dotan Cohen wrote:

  It depends... is the person familiar with PHP or not? If they are not then

 the process is more cumbersome since I can't say things like variable item
 calling camel-case method getServiceId without parameters.


Yes, I should have mentioned that the other party is an experienced
PHP developer.


Well then you're really in trouble because experienced PHP developers 
can't agree on anything. :-)


Yeah, I totally agree with tedd.

:|

;)

Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] How to pronounce PHP code over the phone?

2009-10-16 Thread Dotan Cohen
 This is a lot of posts to say either read it off character by
 character

If there is a jargon for operators such as - I'd like to know them.

 or just email the damn line.


Not possible for whatever reason, otherwise I wouldn't be bothering the list!

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

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