News for hackers. Stuff that matters.
Re:Bilingualism makes the mind sharper (and helps forestall ... by wccrawford on Tuesday May 31, 2011 @12:29PM (#2603222)
When you're programming in Ruby, do you mentally shift into Ruby mode, or do you translate everything from English into Ruby?

Bilinguals don't translate from 1 language to another, they actually think in that language while using it, to the point that you can actually see attitude changes based on which language they are using.

I know I don't think in code, but rather translate it from English into whatever programming language I'm using.

Re:Bilingualism makes the mind sharper (and helps forestall ... by lemming on Tuesday May 31, 2011 @12:41PM (#2603293)
I know I don't think in code, but rather translate it from English into whatever programming language I'm using.

Really? I think the only time I do this is when something is sufficiently tricky that I probably have to draw it to work out what it should be doing ("Ok, so I pass this in here, and then it could flow through to here or here..."). Otherwise, assuming I'm sufficiently fluent in the language I'm programming in it just "flows" out, as when I'm speaking in Spanish (a second language I speak well) - there's no intermediate translation from English in either case.

Re:Bilingualism makes the mind sharper (and helps forestall ... by wccrawford on Tuesday May 31, 2011 @02:35PM (#2603847)
Interesting. I've been disturbed by my inability to stop translating when trying to understand and speak Japanese, but I've also noticed I'm not as bothered by translating as most people seem to be. (Maybe it's a perfectly acceptable trade-off, if it happens fast enough. Or maybe I'm just not there yet.)

Coding is the same way... I think "I'll loop over that" and then proceed to write out how to do it in whatever programming language I'm working with. Sometimes I even write comments in English and then go back and fill in the code that does what the comments want.

Re:Bilingualism makes the mind sharper (and helps forestall ... by nebaneba on Tuesday May 31, 2011 @04:59PM (#2604541)
> (Maybe it's a perfectly acceptable trade-off, if it happens fast enough. Or maybe I'm just not there yet.)

You are not there yet. Here's why. In pre-fluency stages of language acquisition, the taxing part of language parsing is memory retrieval, iow, mapping meaning from language A to language B. If you are well-versed at this, it can happen sufficiently quickly. For example, "a machine with four wheels that brings people places" --> car. After enough practice, you "bypass" the "machine" and retrieve "car" without consciously looking up the word. Imagining that happening for every single word, and every single sentence construction. That's when you're "there".

As for coding, there is an easy example: iterative looping vs. map/reduce operations. These can express the logic but are conceptually different: one is to repeatedly track states across some number of times, the other is to apply a transformation function to a set of items. To reuse the car analogy, a looped factory would be like taking parts and assemble 100 cars, and a map factory would be like taking parts and assembling all the wheels, then all the engines, then all the doors and so on.

Re:Bilingualism makes the mind sharper (and helps forestall ... by hzay on Tuesday May 31, 2011 @02:40PM (#2603864)
"Bilinguals don't translate from 1 language to another... based on which language they are using."

Absolutely agree! I keep telling my friends (who are forever translating between English and their native tongues) and my father (who is a professional translator) that it is not always possible to translate accurately because languages are deeply rooted in the culture/habits of the people who use them.

I'm bilingual and I find that sentences spring to my mind in the language that I've been using in the last week. I speak my native tongue in my parents' home and English everywhere else. I stay for a week in my parents' home once every four months.

However, sentences do not always spring to my mind. I think more in images and senses than in language.

Re:Bilingualism makes the mind sharper (and helps forestall ... by hzay on Wednesday June 01, 2011 @03:25AM (#2606366)
I'm new to HN and curious. Why was this comment downvoted?
Re:Bilingualism makes the mind sharper (and helps forestall ... by frooxie on Tuesday May 31, 2011 @02:06PM (#2603698)
"Bilinguals /.../ actually think in that language while using it"

I don't. I usually don't think in language at all. Both speaking my native language and programming require translation from the abstract symbols and feelings that my actual thinking consists of.

Re:Bilingualism makes the mind sharper (and helps forestall ... by true_religion on Tuesday May 31, 2011 @02:18PM (#2603744)
I think in code. I used to think in C because it was the first language I truly immersed myself in.

Now aday with object oriented languages, I find myself thinking in Smalltalk first then translating the concepts to the given language.

Re:Bilingualism makes the mind sharper (and helps forestall ... by binarycheese on Tuesday May 31, 2011 @01:12PM (#2603434)
For the most part, I usually think in pseudo-code