News for hackers. Stuff that matters.
Re:How (not) to write Factorial in Java by steveklabnik on Wednesday January 26, 2011 @10:57AM (#2143645)
The Sapir-Whorf Hyptothesis applies to software languages as well as human languages...
Re:How (not) to write Factorial in Java by kingkilr on Wednesday January 26, 2011 @12:57PM (#2144142)
I'm not so sure about this, it recently came up in discussion with a former teacher of fine, here's what I said then:

To the linguistics question I just had a discussion about this with my boss (who's a linguist by training, currently on leave from his PH.d which has something to do with Greek, he's also been programming a lot longer than I have). One of the points he had was that the Sapir–Whorf hypothesis doesn't just say speaking German affects how you think in German, it affects how one thinks as a whole. To that we're both a bit skeptical, being a programmer probably affects ones cognition (or ones cognition causes one to be predisposed to becoming a programmer, whichever!), but the specific language one uses... probably not. On the other hand, within programming it's clear that different languages (or at least their communities) have different personalities. A good example of this is Python and Ruby. Semantically these languages are remarkably similar (in the context of all programming languages), however their communities have seized upon the small differences and as a result the cultures (accepted best practices and such) are fairly different. Another good example of this is what are known as "design patterns", which were originally supposed to be a language-neutral way of expressing how code could be architected, however in practice some of these really make no sense with certain languages, because e.g. the language has builtin-features which obviate the need for such things.

Re:How (not) to write Factorial in Java by kd0amg on Wednesday January 26, 2011 @01:35PM (#2144371)
What about, say, imperative vs. functional languages?
Re:How (not) to write Factorial in Java by kingkilr on Wednesday January 26, 2011 @06:08PM (#2145692)
I didn't cover that because the person I was speaking with was not a programmer, however I think what I said still holds up: within the scope of programming haskell vs PHP is pretty huge, but I don't think they're particularly different cognitive modes in the larger scope.
Re:How (not) to write Factorial in Java by bergie on Wednesday January 26, 2011 @04:50PM (#2145335)
not to mention, declarative
Re:How (not) to write Factorial in Java by RiderOfGiraffes on Wednesday January 26, 2011 @11:23AM (#2143746)
The current common stance of linguists is that the SWH doesn't hold for human languages. I personally disagree, but I haven't done the formal experiments to confirm my informal belief.
Re:How (not) to write Factorial in Java by xiaoma on Wednesday January 26, 2011 @11:49AM (#2143851)
That was true 20 years ago, today not so much. The strongest of the original Sapir-Whorf claims don't hold up, but the weaker ones do. See Lera Boroditsky's work in particular. She's been publishing on this topic for at least 10 years. Most of the good stuff requires a library (or paying), but heres an edge article from a year and a half ago:

http://www.edge.org/3rd_culture/boroditsky09/boroditsky09_in...

Boroditsky, L. (2003). Linguistic relativity. In L. Nadel (Ed.), Encyclopedia of cognitive science (pp. 917–922). London, England: Macmillan.

Boroditsky, L. (2001). Does language shape thought? English and Mandarin speakers' conceptions of time. Cognitive Psychology, 43(1), 1–22.

Re:How (not) to write Factorial in Java by steveklabnik on Wednesday January 26, 2011 @12:00PM (#2143892)
Thanks guys. Funny that I'm still learning about it in college, then...
Re:How (not) to write Factorial in Java by T_S_ on Wednesday January 26, 2011 @01:38PM (#2144386)
Yes. Maybe even more so.