do you say 'char star' or 'character pointer'

A place for Ogre users to discuss non-Ogre subjects with friends from the community.
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

do you say 'char star' or 'character pointer'

Post by johnhpus »

I was talking to a guy on the phone not too long ago, and he said something about a "char star", pronounced so that the two words rhyme.

I've heard it before of course, but I've been working remotely for the past two years and rarely have to speak about programming on the phone as I prefer email.

I have always said "character pointer" and "char star" sounds crazy to me.
Last edited by johnhpus on Thu Nov 27, 2008 10:57 am, edited 4 times in total.
Crashy
Google Summer of Code Student
Google Summer of Code Student
Posts: 1005
Joined: Wed Jan 08, 2003 9:15 pm
Location: Lyon, France
x 49
Contact:

Post by Crashy »

Here in France we mainly say "char étoile" which means "char star"
Follow la Moustache on Twitter or on Facebook
Image
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 538

Post by Kojack »

I say char pointer or character pointer.
User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am
x 3

Post by johnhpus »

That's weird, the forum insists on changing my close " to a & when it's the last character. Maybe a space at the end will help.

Edit:

I guess not. Even ". seems to turn into a &. Oh well, I can settle for '
User avatar
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2703
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 51

Post by syedhs »

I like char pointer. My C++ interior monologue also mention it as 'char pointer' :P
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

My brain learned to associate the word "asterisco" ("star") with the concept of pointer long ago XD

I commonly use "char asterisco" ("char star") but say "char pointer" to myself.
Image
nialscorva
Gnoblar
Posts: 7
Joined: Sun Jan 20, 2008 6:12 pm

Post by nialscorva »

If I'm reading code, I say it like "kar star". If I'm talking about the concept of a character pointer while not looking at code, I'll occasionally say "character pointer" or "C string". Dunno why.
User avatar
Kaze Youkai
Greenskin
Posts: 108
Joined: Tue Jun 03, 2008 10:47 pm
Location: Austin, Texas
Contact:

Post by Kaze Youkai »

Kojack wrote:I say char pointer or character pointer.
Ditto.
User avatar
twilight17
Goblin
Posts: 297
Joined: Thu Aug 23, 2007 3:47 am
x 1

Post by twilight17 »

Kojack wrote:I say char pointer or character pointer.
Same but I say "char pointer" more.
User avatar
nullsquared
Old One
Posts: 3245
Joined: Tue Apr 24, 2007 8:23 pm
Location: NY, NY, USA
x 11

Post by nullsquared »

I pronounce it ...












S-T-D string :twisted:
darke
Halfling
Posts: 94
Joined: Mon Sep 08, 2008 3:30 am

Post by darke »

I tend to be varied, though I don't think I've ever used "character pointer". More like, "char star", "char pointer", "that needs to be unsigned char, not char", "why is that not a std::string?", "if this was std::string I wouldn't have spent the last couple of hours chasing down that buffer overflow".

Yes, I have slightly bitter feelings as to the wonders of a char*. :)
User avatar
xadhoom
Minaton
Posts: 973
Joined: Fri Dec 28, 2007 4:35 pm
Location: Germany
x 1

Post by xadhoom »

Char star! (strictly speaking the german equivalent: "Char Stern")
It has less syllables and is easier to say...
User avatar
volca
Gnome
Posts: 393
Joined: Thu Dec 08, 2005 9:57 pm
x 1
Contact:

Post by volca »

How would one describe various parts of this code over the phone? :D
(Enigma decoder, or so it was said)

Code: Select all

#!/usr/bin/perl -s                          
                                                      sub R{int$_[0]||
                              return vec$_[1],$_[2]/4,32;int$_[0]*rand}($R)
                           =$^=~'([\]-\`])';sub F{$u=0;grep$u|=$S->[$_][$_[0]>>
                              $_*4&15]<<$_*4,reverse 0..7;$u<<11|$u>>21}$t=$e
                               ||$d?join'',<>:(($p,$d)=($R,1),unpack u
                               ,"(3=MCV7%2W'<`");@b=@t=0..15;for(
                           ;$i<length$p;$i+=4){srand($s^=R$R,$p
                        ,$i)}while($c<8){grep{push@b  ,splice
                     @b,R(9),5}@t;$R[$c]=R(2       **32);@{      
                $S->[$c++]}=@b}@h=0..7;@o       =reverse          
              @h;while($a<length
            $t){$v=R$R,$t,$a;
 $w=R$R,$t,($a+=8)-4;
   grep$q++%2?$v
    ^=F$w+$R                  
     [$$R]:(                                       $w^=F$v+$R[$$R]),$d?(@h,(@o)
     x3):((                                        @h)x3,@o);$_.=pack N2,$w,$v}
     print
Or this one :) (a perl Japh)

Code: Select all

not exp log srand xor s qq qx xor
s x x length uc ord and print chr
ord for qw q join use sub tied qx
xor eval xor print qq q q xor int
eval lc q m cos and print chr ord
for qw y abs ne open tied hex exp
ref y m xor scalar srand print qq
q q xor int eval lc qq y sqrt cos
and print chr ord for qw x printf
each return local x y or print qq
s s and eval q s undef or oct xor
time xor ref print chr int ord lc
foreach qw y hex alarm chdir kill
exec return y s gt sin sort split
Perl code can make people sick :) (Although I still love that language).

"Char Pointer" here.
Image
User avatar
Kencho
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4011
Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:

Post by Kencho »

volca wrote:How would one describe various parts of this code over the phone? :D
(Enigma decoder, or so it was said)

Code: Select all

#!/usr/bin/perl -s                          
                                                      sub R{int$_[0]||
                              return vec$_[1],$_[2]/4,32;int$_[0]*rand}($R)
                           =$^=~'([\]-\`])';sub F{$u=0;grep$u|=$S->[$_][$_[0]>>
                              $_*4&15]<<$_*4,reverse 0..7;$u<<11|$u>>21}$t=$e
                               ||$d?join'',<>:(($p,$d)=($R,1),unpack u
                               ,"(3=MCV7%2W'<`");@b=@t=0..15;for(
                           ;$i<length$p;$i+=4){srand($s^=R$R,$p
                        ,$i)}while($c<8){grep{push@b  ,splice
                     @b,R(9),5}@t;$R[$c]=R(2       **32);@{      
                $S->[$c++]}=@b}@h=0..7;@o       =reverse          
              @h;while($a<length
            $t){$v=R$R,$t,$a;
 $w=R$R,$t,($a+=8)-4;
   grep$q++%2?$v
    ^=F$w+$R                  
     [$$R]:(                                       $w^=F$v+$R[$$R]),$d?(@h,(@o)
     x3):((                                        @h)x3,@o);$_.=pack N2,$w,$v}
     print
Or this one :) (a perl Japh)

Code: Select all

not exp log srand xor s qq qx xor
s x x length uc ord and print chr
ord for qw q join use sub tied qx
xor eval xor print qq q q xor int
eval lc q m cos and print chr ord
for qw y abs ne open tied hex exp
ref y m xor scalar srand print qq
q q xor int eval lc qq y sqrt cos
and print chr ord for qw x printf
each return local x y or print qq
s s and eval q s undef or oct xor
time xor ref print chr int ord lc
foreach qw y hex alarm chdir kill
exec return y s gt sin sort split
That's simple: "I'm sending you a couple code snippets to your email. Good luck decrypting them."
Image
User avatar
nullsquared
Old One
Posts: 3245
Joined: Tue Apr 24, 2007 8:23 pm
Location: NY, NY, USA
x 11

Post by nullsquared »

1) auto-syntax-formatter
2) ...
3) profit?
User avatar
Jabberwocky
OGRE Moderator
OGRE Moderator
Posts: 2819
Joined: Mon Mar 05, 2007 11:17 pm
Location: Canada
x 220
Contact:

Post by Jabberwocky »

volca wrote: (Enigma decoder, or so it was said)

Code: Select all

#!/usr/bin/perl -s                          
                                                      sub R{int$_[0]||
                              return vec$_[1],$_[2]/4,32;int$_[0]*rand}($R)
                           =$^=~'([\]-\`])';sub F{$u=0;grep$u|=$S->[$_][$_[0]>>
                              $_*4&15]<<$_*4,reverse 0..7;$u<<11|$u>>21}$t=$e
                               ||$d?join'',<>:(($p,$d)=($R,1),unpack u
                               ,"(3=MCV7%2W'<`");@b=@t=0..15;for(
                           ;$i<length$p;$i+=4){srand($s^=R$R,$p
                        ,$i)}while($c<8){grep{push@b  ,splice
                     @b,R(9),5}@t;$R[$c]=R(2       **32);@{      
                $S->[$c++]}=@b}@h=0..7;@o       =reverse          
              @h;while($a<length
            $t){$v=R$R,$t,$a;
 $w=R$R,$t,($a+=8)-4;
   grep$q++%2?$v
    ^=F$w+$R                  
     [$$R]:(                                       $w^=F$v+$R[$$R]),$d?(@h,(@o)
     x3):((                                        @h)x3,@o);$_.=pack N2,$w,$v}
     print
Free Willy.
Image
User avatar
twilight17
Goblin
Posts: 297
Joined: Thu Aug 23, 2007 3:47 am
x 1

Post by twilight17 »

nullsquared wrote:1) auto-syntax-formatter
2) ...
3) profit?
Underpants Gnomes!? :lol:
User avatar
Azgur
Goblin
Posts: 264
Joined: Thu Aug 21, 2008 4:48 pm

Post by Azgur »

I usually say c-string :)
Char star just sounds wierd though. Definitely char pointer over char star.
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13
Contact:

Post by nikki »

I never really read code out loud to anyone much, so I'm not sure. I think I'd say 'char star' though.
User avatar
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2703
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 51

Post by syedhs »

nikki wrote:I never really read code out loud to anyone much, so I'm not sure. I think I'd say 'char star' though.
Well one of the software development processes is code review for which the programmer, has to read out loud for others in the panel to hear. I find the process a little ridiculous, as the benefit is less than the hassle, I *think*.
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
User avatar
nullsquared
Old One
Posts: 3245
Joined: Tue Apr 24, 2007 8:23 pm
Location: NY, NY, USA
x 11

Post by nullsquared »

Wait, you seriously need to actually read the code aloud? :shock:

Do you actually say all of the symbols or do you say it logically, like "void function main?"
psquare
Hobgoblin
Posts: 554
Joined: Tue Nov 14, 2006 3:26 pm
x 7

Post by psquare »

syedhs wrote:My C++ interior monologue also mention it as 'char pointer' :P
'Interior Monologue' :lol:
That's good stuff.
User avatar
syedhs
Silver Sponsor
Silver Sponsor
Posts: 2703
Joined: Mon Aug 29, 2005 3:24 pm
Location: Kuala Lumpur, Malaysia
x 51

Post by syedhs »

nullsquared wrote:Wait, you seriously need to actually read the code aloud? :shock:

Do you actually say all of the symbols or do you say it logically, like "void function main?"
Yes you are right, as ridiculous as it first occured to me, 5 years ago. And you also have to read aloud symbols like 'open bracket', 'close bracket' and stuff. Back then I sub-contracted with a multinational s/w company which attain CMM level 5 and they do require me to read aloud those lines. Duh - just imagine how much of the productivity goes down to drain.
A willow deeply scarred, somebody's broken heart
And a washed-out dream
They follow the pattern of the wind, ya' see
Cause they got no place to be
That's why I'm starting with me
Kerion
Goblin
Posts: 235
Joined: Wed Feb 05, 2003 5:49 am
Contact:

Post by Kerion »

Character pointer, because that's the proper way to say it. Asterisk is the operator character, not the meaning of the operator. If we called pointers stars, I guess "char star" would be the correct term, but we don't, and it's not. Do you call char& a "char ampersand" or a character reference?
User avatar
nikki
Old One
Posts: 2730
Joined: Sat Sep 17, 2005 10:08 am
Location: San Francisco
x 13
Contact:

Post by nikki »

syedhs wrote:
nullsquared wrote:Wait, you seriously need to actually read the code aloud? :shock:

Do you actually say all of the symbols or do you say it logically, like "void function main?"
Yes you are right, as ridiculous as it first occured to me, 5 years ago. And you also have to read aloud symbols like 'open bracket', 'close bracket' and stuff. Back then I sub-contracted with a multinational s/w company which attain CMM level 5 and they do require me to read aloud those lines. Duh - just imagine how much of the productivity goes down to drain.
Heh... Not just productivity, but concentration too. I'd be rolling on the floor laughing out loud if one of my colleagues would do that. :lol:
Post Reply