Live data from Hacker News

Ask HN: Differences in Programming Style by Nationalities

news.ycombinator.com

11–20 of 38 posts

Re: Ask HN: Differences in Programming Style by Nationalities

#11
I've observed from my personal job experiences that Eastern European developers tend to pay more attention to detail.

It's a double-edged sword as it can yield more correct code but also spend time in things that a formatter/linter would do.

Or implement requirements very literally without trying to second-guess them, or ask for clarification.

Re: Ask HN: Differences in Programming Style by Nationalities

#12
post #7

not sure about specifics in training but I had quite a lot of fun reading regular c++ code with variables in english only to scroll and find pages of comments in foreign language like russian or japanese... another fun with languages happens when coders for whatever reason insist on naming their variables using fusion of english and other language, such as "HornyWidget" (horny means upper in my language)

I interviewed at a Dutch company that had offices in Paris and the French programmers insisted in using French for all identifiers. Effectively it was job security for them.

I worked for a startup where the working language is French and the management mandated that all code and comments were to be written in English. Their justification was that the most likely exit would be by being acquired by an English speaking (ie American) company and that they wouldn't buy assets that couldn't be worked on by English coders.

Having worked at companies in both languages I didn't notice much difference in style. One thing that was pointed out to me is that trends and practices (TTD, agile etc.) take longer to reach the francosphere and that French companies are always X years behind their Silicon Valley contemporaries.

Re: Ask HN: Differences in Programming Style by Nationalities

#13

I first noticed a difference in national styles when I contributed a patch to fastjson, a JSON parser in Java from Alibaba. Take a look around the repo; it'll look odd to a western programmer. There is a lot of duplication. And the tests don't have names, they are numbered. https://github.com/alibaba/fastjson/blob/master/src/test/jav... This was several years ago. I did end up choosing it since it really was the fast…

> Test generated by Diffblue Deeptest.

I think this is the reason for that duplication and numbering

Re: Ask HN: Differences in Programming Style by Nationalities

#15
post #7

not sure about specifics in training but I had quite a lot of fun reading regular c++ code with variables in english only to scroll and find pages of comments in foreign language like russian or japanese... another fun with languages happens when coders for whatever reason insist on naming their variables using fusion of english and other language, such as "HornyWidget" (horny means upper in my language)

I interviewed at a Dutch company that had offices in Paris and the French programmers insisted in using French for all identifiers. Effectively it was job security for them.

A Dutch company I worked for had much of their legacy code with Dutch words throughout. It was rather challenging to onboard international non-Dutch colleagues.

Re: Ask HN: Differences in Programming Style by Nationalities

#16
There is a fairly active research field in computational linguistics for Authorship Attribution and Native Language Identification. These try to identify a specific person or a persons first language by idioms in their writing style.

I have seen some people apply similar techniques to code (eg identify authorship of malware) and I assume what you're asking would be a pretty simple variation of that.

Re: Ask HN: Differences in Programming Style by Nationalities

#17
IMO the bigger divide is between West Coast and East Coast programming styles.

I think California developers tend to be more forward-thinking, and embrace a “move fast and break things” style. Whereas East Coast devs tend to be more academic, structured and top-down.

Speculatively, I’d attribute this to the lack of non compete enforceability in California. Innovation tends to diffuse a lot faster, and that’s rewarded more of a forward-thinking culture. Then again, if there was a piece of code that could kill me if it fails, I’d go with an engineer in Boston before one from Palo Alto.

Re: Ask HN: Differences in Programming Style by Nationalities

#18
(Potentially apocryphal or true for other countries) I remember a Romanian developer telling me that in the days of communism (as well as shortly thereafter) computer time was so rationed that students learned to program almost entirely on pen and paper and the instructor would grade it before even putting it into a computer.

He said that even to this day, programmers in Romania still have a deep emphasis on book learning and an intolerance for bugs or mistakes.

Re: Ask HN: Differences in Programming Style by Nationalities

#19

IMO the bigger divide is between West Coast and East Coast programming styles. I think California developers tend to be more forward-thinking, and embrace a “move fast and break things” style. Whereas East Coast devs tend to be more academic, structured and top-down. Speculatively, I’d attribute this to the lack of non compete enforceability in California. Innovation tends to diffuse a lot faster, and that’s rewarded…

You touched on it in your post but I think industry plays a big role in the differences. East coast has more financial and medical based industries (broad generalization with several hundred counter examples) so you're going to have a slower more deliberate pace than something like slack or uber

Re: Ask HN: Differences in Programming Style by Nationalities

#20

I don't know if it is common and not just a local sampling bias, but I've noticed my Indian colleagues (in the UK) are more often Java programmers. Perhaps java, and thus OOP, is more popular in India?

Lots of indian bootcamp like classes seem to use java

http://www.durgasoft.com/

Post reply on HN