POV-Ray : Newsgroups : povray.off-topic : A question about C++ Server Time
14 Oct 2026 17:49:48 EDT (-0400)
  A question about C++ (Message 1 to 16 of 16)  
From: Darren New
Subject: A question about C++
Date: 13 May 2008 15:33:53
Message: <4829ed21$1@news.povray.org>
How do you pronounce "cout << 5" in english? If you were to read that 
statement over the phone to someone, what would you say? Obviously not 
"cout logical-shift-left 5".  Would you really say "count 
operator-less-than-less-than five"?

Incidentally, I think C# does a good job of unifying the benefits of 
printf-style formating with the benefits of C++-style formatting. Of 
course, it means that everything you want to print actually has to be an 
object and you have to be able to look up routines at runtime, so it has 
an efficiency aspect compared to the C++ method. But there's actually a 
number of layers of formatting control going on there, all of which the 
user can override in particular classes as well as doing the
"cout << hex() << 29" sort of per-class custom formatting controls.

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Kevin Wampler
Subject: Re: A question about C++
Date: 13 May 2008 16:29:25
Message: <4829fa25$1@news.povray.org>
I have no idea if there's a `proper' convention for that or not, but I 
generally treat "cout" as a verb and would just say "cout five".

Darren New wrote:
> How do you pronounce "cout << 5" in english? If you were to read that 
> statement over the phone to someone, what would you say? Obviously not 
> "cout logical-shift-left 5".  Would you really say "count 
> operator-less-than-less-than five"?
> 
> Incidentally, I think C# does a good job of unifying the benefits of 
> printf-style formating with the benefits of C++-style formatting. Of 
> course, it means that everything you want to print actually has to be an 
> object and you have to be able to look up routines at runtime, so it has 
> an efficiency aspect compared to the C++ method. But there's actually a 
> number of layers of formatting control going on there, all of which the 
> user can override in particular classes as well as doing the
> "cout << hex() << 29" sort of per-class custom formatting controls.
>


Post a reply to this message

From: Orchid XP v8
Subject: Re: A question about C++
Date: 13 May 2008 17:08:14
Message: <482a033e$1@news.povray.org>
Darren New wrote:
> How do you pronounce "cout << 5" in english?

I have a better question:

How do you pronounce "fib = 1 : 1 : zipWith (*) fib (tail fib)" in such 
a way that

1. the person hearing you will know exactly which expression you're 
describing, and

2. it takes less than 20 minutes to say it

??

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Darren New
Subject: Re: A question about C++
Date: 13 May 2008 18:00:24
Message: <482a0f78$1@news.povray.org>
Orchid XP v8 wrote:
> Darren New wrote:
>> How do you pronounce "cout << 5" in english?
> 
> I have a better question:
> 
> How do you pronounce "fib = 1 : 1 : zipWith (*) fib (tail fib)" in such 
> a way that
> 
> 1. the person hearing you will know exactly which expression you're 
> describing, and

I'd say
fib equals one colon one colon zipwith operator star fib paren tail fib 
end paren.

Here's something I want to know...
    What's a rhetorical question?

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Halbert
Subject: Re: A question about C++
Date: 13 May 2008 20:21:42
Message: <482a3096$1@news.povray.org>
Assuming the person I'm talking to knows something of C++, I would probably 
say it like:
see-out five.

--
H²


Post a reply to this message

From: Kevin Wampler
Subject: Re: A question about C++
Date: 14 May 2008 00:05:49
Message: <482a651d$1@news.povray.org>
Darren New wrote:
> Here's something I want to know...
>    What's a rhetorical question?

Don't you think the self-referentiality of that is a bit obvious?


On a serious note, I chuckled at it and will add it to my mental list of 
geek jokes.


Post a reply to this message

From: Jim Henderson
Subject: Re: A question about C++
Date: 14 May 2008 00:33:55
Message: <482a6bb3$1@news.povray.org>
On Tue, 13 May 2008 15:00:24 -0700, Darren New wrote:

> Here's something I want to know...
>     What's a rhetorical question?

Assuming you're not asking rhetorically, it's one that's eloquent or with 
intent to pursuade.  Also a question phrased as "a literary exercise".  
"Of, belonging to, concerned with, or comprised in the art of rhetoric." 
or "Of persons: Given to the use of rhetoric.". :-)

Zaphod (Head 1):  "Why are my heads asking each other rhetorical 
questions?"

Zaphod (Head 2):  "Oh, were they rhetorical?"

Jim


Post a reply to this message

From: Warp
Subject: Re: A question about C++
Date: 14 May 2008 06:44:39
Message: <482ac296@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> How do you pronounce "cout << 5" in english?

  You don't.

-- 
                                                          - Warp


Post a reply to this message

From: John VanSickle
Subject: Re: A question about C++
Date: 14 May 2008 07:26:16
Message: <482acc58@news.povray.org>
Darren New wrote:
> How do you pronounce "cout << 5" in english? If you were to read that 
> statement over the phone to someone, what would you say? Obviously not 
> "cout logical-shift-left 5".  Would you really say "count 
> operator-less-than-less-than five"?

If the person at the other end of the phone is a C++ guru, you could 
probably say "c out five", and they would understand that the streaming 
operator belongs there.

Regards,
JOhn


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: A question about C++
Date: 14 May 2008 12:47:41
Message: <op.ua5kxshi7bxctx@e6600.bredbandsbolaget.se>
On Wed, 14 May 2008 12:44:39 +0200, Warp <war### [at] tagpovrayorg> wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> How do you pronounce "cout << 5" in english?
>
>   You don't.

While I personally try to avoid absolutes, I do agree with Warp here. What  
is this obsession some people have with speaking code out loud? If the  
other person is too far away for direct communication, send the code in an  
e-mail or IM. If he is close enough for face-to-face conversation, show  
him whatever device you yourself are reading the code from.


-- 
FE


Post a reply to this message

From: Darren New
Subject: Re: A question about C++
Date: 14 May 2008 13:54:31
Message: <482b2757$1@news.povray.org>
Fredrik Eriksson wrote:
> What is this obsession some people have with speaking code out loud? 

I don't know it was an obsession. I was thinking more of (say) an 
over-the-phone job interview kind of question.  Certainly if your 
language is so full of baroque character combinations that nobody even 
agrees how to read it out loud, there's something wrong. Especially 
given that even APL isn't that bad, and APL doesn't even use ASCII. :-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Orchid XP v8
Subject: Re: A question about C++
Date: 14 May 2008 14:54:52
Message: <482b357c$1@news.povray.org>
>> I have a better question:
>>
>> How do you pronounce "fib = 1 : 1 : zipWith (*) fib (tail fib)" in 
>> such a way that
>>
>> 1. the person hearing you will know exactly which expression you're 
>> describing, and
> 
> I'd say
> fib equals one colon one colon zipwith operator star fib paren tail fib 
> end paren.

I tend to just use "open" and "close". (Especially for Haskell - surely 
only Lisp itself has more brackets!)

PS. I can't believe Warp hasn't pointed out the obvious error yet...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: A question about C++
Date: 14 May 2008 15:03:57
Message: <op.ua5q8u2b7bxctx@e6600.bredbandsbolaget.se>
On Wed, 14 May 2008 19:54:31 +0200, Darren New <dne### [at] sanrrcom> wrote:
> Fredrik Eriksson wrote:
>> What is this obsession some people have with speaking code out loud?
>
> I don't know it was an obsession. I was thinking more of (say) an  
> over-the-phone job interview kind of question.

Even worse. I would question the competence of an interviewer asking me to  
"speak source" to him over the phone. Verbal communication is a really  
poor medium for accurately conveying such things. Programming languages  
are (COBOL aside) designed to be read/written, not spoken.


> Certainly if your language is so full of baroque character combinations  
> that nobody even agrees how to read it out loud, there's something  
> wrong. Especially given that even APL isn't that bad, and APL doesn't  
> even use ASCII. :-)

APL uses only one-character operators. You could recite C++ source one  
character at a time too.



This is something of a pet peeve of mine, gained after hearing far too  
many people trying (and failing miserably) to communicate source code  
verbally.


-- 
FE


Post a reply to this message

From: Darren New
Subject: Re: A question about C++
Date: 14 May 2008 15:06:27
Message: <482b3833$1@news.povray.org>
Orchid XP v8 wrote:
> PS. I can't believe Warp hasn't pointed out the obvious error yet...

There are multiple meanings for the word "fib" in English. ;-)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Darren New
Subject: Re: A question about C++
Date: 14 May 2008 15:07:38
Message: <482b387a@news.povray.org>
Fredrik Eriksson wrote:
> APL uses only one-character operators.

Not true. quote-quad and jot-dot both spring to mind.

> You could recite C++ source one 
> character at a time too.

Sure, but it would be tedious. At least APL is short. ;)

-- 
   Darren New / San Diego, CA, USA (PST)
     "That's pretty. Where's that?"
          "It's the Age of Channelwood."
     "We should go there on vacation some time."


Post a reply to this message

From: Warp
Subject: Re: A question about C++
Date: 15 May 2008 09:01:30
Message: <482c3429@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:
> I was thinking more of (say) an 
> over-the-phone job interview kind of question.

  Then I would say "I print 5 to the standard output".

  It doesn't make sense to ask character-by-character syntax in a phone
interview.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.