aspose file tools*
The moose likes Meaningless Drivel and the fly likes What is a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "What is a "char"?" Watch "What is a "char"?" New topic
Author

What is a "char"?

marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

A survey...

How do you pronounce the type, "char"?

a) The way it's spelled, as in "to blacken by burning."
b) The way the syllable is pronounced in the original word, like "care."
c) A combination of these, like an automobile ("car").
d) I avoid it by saying "letter" instead.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61432
    
  67

a

That's the way it's spelled dang it!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I agree with what Bear says, 'cause he scares me.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

I also choose (a), particularly from the old C programming days, where....

char *var;

Declares a char star var ... nothing rhymes in Java ...

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61432
    
  67

Originally posted by David O'Meara:
I agree with what Bear says, 'cause he scares me.
Oh good, it's finally taking effect.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

'a', but I've heard 'c'


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
I've heard C and B on rare occasions, but I shun those people. A is way! A is the One True Path!


"I'm not back." - Bill Harding, Twister
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

Why would you ever pronounce it? Do you go around reading code out loud?

And why would you use one? This is Java Ranch, we do Java. Its about Characters, not char-broiled bits of a String.

I've been writing professional Java for about ten years, I rarely use this 'char' thing.

I do wish that Java had unsigned byte datatypes or unsigned octets, for doing crypto, since all the standards are written assuming unsigned behavior.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
[Pat]: Why would you ever pronounce it? Do you go around reading code out loud?

Occasionally one might find oneself accidentally interacting with a live human being in real time. One tries to avoid this, of course, but sometimes it happens anyway...
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11418
    
  16

Originally posted by Bear Bibeault:
a

That's the way it's spelled dang it!

I'm curious, do you pronounce ALL words strictly based on how they are spelled? if so, how do you pronounce "character"? sugar? geoduck?


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
Originally posted by Jim Yingst:
Occasionally one might find oneself accidentally interacting with a live human being in real time. One tries to avoid this, of course ...

Talking to someone you meet about datatypes is a good way to avoid these unfortunate moments in the future.


Ping & DNS - my free Android networking tools app
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

I say it a) char but think it c) car.
[ February 13, 2008: Message edited by: Cameron Wallace McKenzie ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

This is interesting; I'm apparently the odd man out. I pronounce it "b", both in my head and out loud, on those rare occasions where it's demanded. I've heard people say all 3, but my closest co-worker for many years also says "b".


[Jess in Action][AskingGoodQuestions]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61432
    
  67

Originally posted by Fred Rosenberger:
I'm curious, do you pronounce ALL words strictly based on how they are spelled? if so, how do you pronounce "character"? sugar? geoduck?

LOL! I was a typical geeky kid who spent more time in the library than interacting with other kids so I actually have am embarrassingly large collection of words that I mispronounce based upon their spelling simple because I never heard them spoken.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61432
    
  67

Originally posted by Ernest Friedman-Hill:
I'm apparently the odd man out. I pronounce it "b", both in my head and out loud

But it's already been established in the fitted-sheet-folding topic that you're a space alien. Of course you're going to mispronounce a few things.
Peter Rooke
Ranch Hand

Joined: Oct 21, 2004
Posts: 804

Of course you're going to mispronounce a few things.

Oh - I try to mispronounce everything, it's my accent

Use chars all the time in SQL (or it is SEQUEL?). Glady I have mostly forgotten about chars in the context of C and C++.


Regards Pete
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18660
    
    8

I almost never use char variables in my programs. If I ever had to speak the term, and I don't believe I ever have, it would be

e) Exactly like the word "character".
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Well, if they would have called it "letter," then we would all know how to pronounce it. The wrapper class could have been called "LetterCarrier," and we could have methods like "getLetterCarrier()." On the other hand, we wouldn't be able to use "letter" as an identifier, preventing us from saying "return letter."

( :roll: )
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4968
    
    1

On a different but similar note, I once sat in a seminar listening to an expert talk about Jewnit.

I'd never heard anyone say anthing other than Jay-Unit (J-Unit).

Hmmm.

-Cameron
Eugene Abarquez
Ranch Hand

Joined: May 18, 2006
Posts: 211
I have always pronounced it as c) A combination of these, like an automobile ("car"), which I think is the correct way since it's a shortcut for "character." It's funny, I have actually never heard of anybody pronouncing it as a) The way it's spelled, as in "to blacken by burning." Might be an American thing.


There's so much to learn in this industry, and not everybody has the necessary interest.
Anand Hariharan
Rancher

Joined: Aug 22, 2006
Posts: 257

EFH - Am with you here (i.e., I pronounce it like 'care'), so we make the odds even. ;-)

For whatever it is worth, Stroustrup goes with 'a' -- and considers it illogical?


"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- Antoine de Saint-Exupery
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
[Anand Hariharan]: EFH - Am with you here (i.e., I pronounce it like 'care'), so we make the odds even. ;-)

Nah, you guys are still odd.

With many programming things, I favor a pronounciation that helps me remember the spelling that I need to use when I type, regardless of the etymological origins. Thus I pronounce chmod as ch-mod rather than ch-mode, even though it does refer to changing a mode. The /etc directory is slash-et-see rather than slash-et-cetera. And a char is a char, not a care or a car.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

wow, two odds are still odd
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Hmmm. I also say ch'mod and /etsee. Perhaps embarrassingly, I also say /user, even though I know that's wrong. And I say /bin, not /byne.

So I follow the same pattern as Jim, but I apparently draw the line at char.
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Ernest Friedman-Hill:
... And I say /bin, not /byne...

Wow... It never even occurred to me to say "byne," even though I know it's for "binary." But then, when I posted this topic, I didn't expect it to be treated as a serious question.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Originally posted by marc weber:
But then, when I posted this topic, I didn't expect it to be treated as a serious question.


That is the danger inherent in MD.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

Originally posted by Jim Yingst:
Occasionally one might find oneself accidentally interacting with a live human being in real time. One tries to avoid this, of course, but sometimes it happens anyway...[/QB]


Oh, I feel so sorry for you. Human carbon based life forms are so confusing.

Most of the time, if a fellow programmer wants to look at my code, they check it out of SVN/CVS/PVCS/... and look at it.

English is a terrible language for this.
In French, if you can see the letters, you know how to pronounce it. (At least for French words).
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4659
    
    5

Originally posted by Jim Yingst:
. The /etc directory is slash-et-see rather than slash-et-cetera.


I've never even heard it as et-cetera. Far too long. That adds another whole syllable, no reason to do that.

and its been /usr/group since the late 80s. Sure, its wrong, but too bad.Too late to change it.
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
[Pat]: I've never even heard it as et-cetera. Far too long. That adds another whole syllable, no reason to do that.

Yeah, that was a somewhat silly example; I've never heard that either. I just looked around and picked the first few examples I could see among commands I'd typed recently. On reflection, better examples are bin and lib: I say bin and lib, not bine and libe. Even though I'm well aware they come from binary and library. Using short vowels here just seems more natural to me.
[ February 18, 2008: Message edited by: Jim Yingst ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

I'm internally inconsistent. I say "bin" and "libe"!

In my defense, as Emerson wrote, "A foolish consistency is the hobgoblin of little minds".
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
I'm consistently foolish. Does that count?
Doug Slattery
Ranch Hand

Joined: Sep 15, 2007
Posts: 294
The /etc directory is slash-et-see rather than slash-et-cetera.

I've heard it pronounced that way in strange lands , but in paradise, we pronounce it properly: slash-ee-tee-see.

I will pronounce /usr as slash-you-ess-are, but will dialect it to slash-you-zer. That's just my kuleana (cool-ee-ahh-nah) .

Aloha,
Doug

-- Nothing is impossible if I'mPossible
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Ernest Friedman-Hill:
...as Emerson wrote, "A foolish consistency is the hobgoblin of little minds".

I'll need to bring this up at my annual performance appraisal this week.
 
permaculture playing cards
 
subject: What is a "char"?