如果程序语言是国家,那每种程序语言分别代表哪个国家? [美国媒体]

如果程序语言代表国家,那么每种程序语言分别代表哪个国家?quora网友:真是个有意思的问题C – 俄罗斯. 一切都在开倒车,但是一切皆有可能,还有很多历史遗产.C++ – 美国. 很强大但是有越来越复杂混乱易于报错. 有统治且影响一切的趋势.Python – 荷兰. 由于很多原因,它现代化、富裕、亲切可爱 但不是表现最好的.Haskell – 摩纳哥. 用户人不多但是都非常有钱,所以不用考虑底层社会的问题.Java – 瑞典. 很宜人,但只认自己的国王和货币.jaxcript – 中国. 发展很快而且能做


-------------译者:龙腾翻译总管-审核者:龙腾翻译总管------------



If programming languages were countries which country would each language represent?

如果程序语言代表国家,那么每种程序语言分别代表哪个国家?


-------------译者:laoaoe-审核者:龙腾翻译总管------------

Dimage Sapelkin interested in programming language design
upxed Jul 12
Hey what a funny question! ;]
C – Russia. Everything has to be done in a backwards way but everything is possible and there's a lot of legacy.
C++ – USA. Powerful but more and more complicated unreadable error-prone. Tends to dominate and influence everything.
Python – Netherlands. Modern rich easily approachable attractive for various reasons but not the top performer.
Haskell – Monaco. Not many people but very rich so they don’t have to consider lower classes’ problems.
Java – Sweden. Comfortable but has its own king and currency.
jaxcript – China. Developing really fast and can do lots of surprising stuff. A lot of users.
Basic – Finland. Easy to use but not very powerful.
Assembly – Lesotho which is completely surrounded by South Africa. Rarely used nowadays to make a whole program more often as an included part of a bigger code in higher level language.
PHP – Bangladesh. Poor but numerous and it's found all over the web.
Pascal – Germany. Strict rules good performance. And there are many people who just don't like the language.
Bash – Switzerland. Not very big in itself but pulls the strings of the others.

真是个有意思的问题
C – 俄罗斯. 一切都在开倒车,但是一切皆有可能,还有很多历史遗产.
C++ – 美国. 很强大但是有越来越复杂混乱易于报错. 有统治且影响一切的趋势.
Python – 荷兰. 由于很多原因,它现代化、富裕、亲切可爱 但不是表现最好的.
Haskell – 摩纳哥. 用户人不多但是都非常有钱,所以不用考虑底层社会的问题.
Java – 瑞典. 很宜人,但只认自己的国王和货币.
jaxcript – 中国. 发展很快而且能做出很多惊人的东西. 很多用户.
Basic – 芬兰. 用起来很容易但不太给力.
Assembly – 莱索托- 被南非环绕的小国. 现在很少被用来编一个完整的程序,更多地是作为更大段的高级语言代码的一部分.
PHP – 孟加拉. 穷但是为数众多,而且网上到处都是.
Pascal – 德国. 规则严格表现良好. 而且不喜欢它的人很多.
Bash – 瑞士. 本身不是很大,但在幕后对很多其他语言有重要影响.

-------------译者:laoaoe-审核者:zzzzbbbyyy------------

upxe – based on comments:
Lisp – India. It was the origin of many philosophies derivatives of which became more popular than the original.
Swift – Japan. Technically advanced but isolated on its island and uses unreadable characters.
Ruby – Singapore. Advanced but small.
To add some more fun – a few more languages:
Factor – Antarctica. Easily has representatives of all other countries but really underpopulated and hard to get used to. Although it has some unique and spectacular features.
Lua – San Marino. Tiny and completely within another country but fully functional quite rich and independent.
SQL – Saudi Arabia. You depend on it to fetch you the stuff that you need. Rich and potent but you need to be smart to optimize your interaction with it. Also different SQL implementations have their own peculiarities like different arab countries around Saudi Arabia.
Actionscxt – Taiwan. If jaxcript is China Actionscxt is a splinter of it that wants to own everything but lacks the support of its bigger brother and many other countries. Quite noticeable though for its visually compelling product (at least in the past).
APL – Mesopotamia. Incomprehensible cuneiform scxt that was once great in its area but gave way to its more modern heirs.
Forth – Maldives. Remote from all mainland and likely to disappear underwater due to climate change. Known for its backwards writing direction.

根据评论补充:
Lisp – 印度. 很多哲学的源头, 它的衍生流派变得比它本身更受欢迎.
Swift – 日本. 科技发达但孤立在自己的岛上,并且用一些读不懂的字符.
Ruby – 新加坡. 先进但是很小.
在来些有意思的 – 还有一些语言:
Factor – 南极洲. 很容易出现其他各个国家的成员但是人实在太少,且不易习惯. 尽管如此它还是有很多独特的特点.
Lua – 圣马力诺. 迷你、完全处于另一个国家中,但是功能齐全,有钱、独立.
SQL – 沙特阿拉伯. 你依靠它获得你需要的东西. 有钱有力但不要太乐观地看待与它的关系. 同时不同的SQL编译器都有它自己的特点,就像沙特周边的一圈阿拉伯国家.
Actionscxt – 台湾. 如果jaxcript是中国Actionscxt就是它的一个碎片,想拥有一切但缺乏大哥与其他很多国家的支持. 美观的产品非常引人注目 (至少过去是).
APL – 美索不达米亚. 费解的楔形文字 scxt 在它的地盘上一度伟大,但让位给更好用的现代继承者.
Forth – 马尔代夫. 离所有大陆都很遥远而且很可能因为气候变化沉到水底. 以其倒着的书写方向闻名.

-------------译者:埃希君-审核者:zzzzbbbyyy------------

John Purcell Creator of CaveOfProgramming.com
upxed Feb 8 2015 R26; Upvoted by Maria Day PhD student in Computer Science
Disclaimer: all of this is only a joke :)

免责声明:这一切只供大家一笑;)

Java: USA -- optimistic powerful likes to gloss over inconveniences.

Java:美国--乐观、强大,喜欢掩饰自己给别人带来的不便。

C++: UK -- strong and exacting but not so good at actually finishing things and tends to get overtaken by Java.

C++:英国--强大、严苛的,但事实上不擅长把事情做完,以及有被美国超越的倾向。

Python: The Netherlands. "Hey no problem let'sh do it guysh!"

Python:荷兰。“嘿,这没问题,兄弟们,让我们上吧!”

Ruby: France. Powerful stylish and convinced of its own correctness but somewhat ignored by everyone else.

Ruby:法国。相当时髦,对自己的正确性确信无疑,但是稍微有些被其他人忽视。

Assembly language: India. Massive deep vitally important but full of problems.

汇编语言:印度。十分非常极其重要,但是充满问题。

Cobol: Russia. Once very powerful and written with managers in mind; but has ended up losing out. 

Cobol:俄罗斯。曾经很强大,写的时候有考虑到管理者;但是结果是扑街。

SQL and PL/SQL: Germany. A solid reliable workhorse of a language.

SQL和PL/SQL:德国。一个结实可靠的实用语言工具。

jaxcript: Italy. Massively influential and loved by everyone but breaks down easily.

jxccript:意大利。有很大的影响力,还是个万人迷。但是很容易发生故障。

Scala: Hungary. Technically pure and correct but suffers from an unworkable obsession with grammar that will limit its future success.

Scala:匈牙利。技术性地纯粹和正确,但是遭受语法不能运行的困扰。这将限制它的前途。

C: Norway. Tough and dynamic but not very exciting.

C:挪威。坚韧有活力,但是并不是太让人激动。

PHP: Brazil. A lot of beauty springs from it and it flaunts itself a lot but it's secretly very conservative.

PHP:巴西。巴西盛产大量的美女,它也乐于炫耀这点,但是背地里却非常保守。

LISP: Iceland. Incredibly clever and well-organised but icy and remote.

LISP:冰岛。非常聪明,逻辑也很清晰。但是寒冷又遥远。

Perl: China. Able to do apparently almost anything but rather inscrutable.

Perl:中国。从表面上来看,它几乎能胜任所有事情而且比较不可预测。

Swift: Japan. One minute it's nowhere the next it's everywhere and your mobile phone relies on it.

Swift:日本。这一分钟它还什么都不是,但下一分钟它就随处可见。而且你的手机没它不行。

C#: Switzerland. Beautiful and well thought-out but expect to pay a lot if you want to get seriously involved.

C#:瑞士。美丽且深思熟虑的,但是如果你真的想要参与进来,将被期望付出很大的代价。

R: Liechtenstein. Probably really amazing especially if you're into big numbers but no-one knows what it actually does.

R:列支敦斯登。或许是真的令人惊奇,特别是你正处理大量的数据时,但是没人知道它到底是做什么的。

Awk: North Korea. Stubbornly resists change and its users appear to be unnaturally fond of it for reasons we can only speculate on.

Awk:北朝鲜。顽固地抗拒改变,而它的使用者似乎因一些我们只能揣测的缘由,不合逻辑地喜爱它,。

 -------------译者:swordmasterchar-审核者:zzzzbbbyyy------------

Adrian Ho I collect languages like birds collect shiny-shiny
Written Feb 2 2015
Since John Purcell has kicked the humor floodgates wide open I'll contribute a few lesser-known languages while lightly treading on nationalistic toes...
Tcl: Kiribati. Never heard of it.
Forth: Australia. Everything's the wrong way round in the antipodes.
Prolog: North Korea. Lots of rules unification is the stated goal.
Scheme: Singapore. Hygienic at the macro level.

既然约翰·珀塞尔已经大开了幽默的闸门,我就贡献一些不太知名的语言,同时轻踩下民族主义者的脚趾...
Tcl:基里巴斯。一个从没听说过的地儿。
Forth: 澳大利亚。在对映体那儿所有事儿都错了(澳大利亚是地球上欧洲位置的对面)
Prolog: 朝鲜.巨多的规则限制和谋求统一的国家目标。
Scheme:新加坡。宏观层面上的卫生。

-------------译者:zzzzbbbyyy-审核者:埃希君------------

Daniel Vorhauer Devoted to BigData I spend a lot of time with hypothetic theorems and analysis
upxed Aug 13
Java is USA because you are free to develop anything but in the end nothing works if the VM (NSA/FBI/etc.) doesn’t like your code :D

Java是美国,因为你可以自由地开发任何东西,但如果虚拟机(就像国安局/联邦调查局/其他机构)不喜欢你的代码,那你最终啥都干不了:D

And Assembler is Germany because it looks complicated and it won’t work if you are not very precise clean and devoted to your code.

Assembler是德国,因为它看上去很复杂,而且如果你不够精确、简练且不够专情于你的代码,它就无法运行。

Ruby is Japan because it is based on a philosophy and your code can be either rough and edgy or like a poem and it will run. Also you have very nice Ruby on Rail-ways in the cities.

Ruby是日本,因为它基于哲学(这四个字好难以直视),你的代码既可以粗野狂放也可以诗情画意,还都能运行。而且在城市铁路系统运用上Ruby表现得很好。

Python is the UK it is easy to adapt and serves every market but it relies on it’s roots (main modules) written in C and Assembler. Also it’s snake that looks nice at the beginning but as soon as you’re a resident the cameras all over the place will choke you!

Python是英国,它很容易适应并服务于每一个市场但它依赖于它写在C语言和Assembler上的根基(主要模块)。而且它的阴险之处在于初看起来不错,但如果你是一个居民摄像头(指仔细观察),到处都噎死你!

R is Hungary the language sounds so weird and is hard to learn :P

R语言是匈牙利,因为这个语言听起来太古怪了并且很难学:P

Lua is Sweden it seems so easy and independent but it is absolutely dependent.

Lua是瑞典,它看起来简单且落后但它绝对很先进。

Pascal is France for sure! No question. But Ocami was mentioned in the comments because the French love arguing and theorization. Pascal then would be Polish because they are constantly working just to be as good as everyone else.

Pascal绝逼是法国!没有疑问。但Ocami在评论中被提到过,因为法国人爱争论和理论化。这样Pascal只能是波兰了因为他们经常工作只是和其他人一样好。但Ocami在评论中提到因为法国爱争论和理论化。帕斯卡是波兰,因为他们经常工作只是和其他人一样好。

C++ is Switzerland very clean and very independent and everyone brings their money there.

C++ 是瑞士,非常干净,非常先进,而且大家都把钱送到那里。

jaxcript is Russia because you can do anything you want but everything is controlled by an engine that depending on browser version is very corrupt.

jaxcript是俄国,因为你可以做任何你想做的事,但所有东西都被一个取决于浏览器版本的腐败引擎控制着。

C is China also you can do what you want and you can improvise if needed but when you are not following the kernel you will crash for sure.

C语言是中国,你也可以做任何你想做的事,如果需要还能创作,但是如果你不遵从核心思想,你肯定会崩溃。

Visual Studio is Belgium you can use at least three different languages.

Visual Studio是比利时,你可以用至少三种不同的语言。

C# is the Netherlands a lot of influence from different cultures and very flexible.

C#是挪威,受到很多来自不同文化的影响,而且非常灵活。

Haskell is Arabic you are devoted to a religion with connections you can achieve anything but if you not obey you are in trouble.

Haskell是阿拉伯,你投身于一个广泛连接,可以心想事成的宗教,但如果你不遵守,你就麻烦了。

And actually comparing programming languages to countries is probably the most useless topic I ever answered on :D

实际上把编程语言比作国家可能是我曾经回答的最无用的话题 :D

 -------------译者:zzzzbbbyyy-审核者:埃希君------------

upxes from comments:
Bash is New Zealand because they love improvising.

Bash是新西兰,因为他们喜欢即兴演奏。

India then could be Eclipse with it’s tremendous amount of dialects… but it could simply be Lisp and its family (like Scheme or Clojure): so many languages and dialects!

印度的话应该是Eclipse由于它大量的方言……但它可能仅仅是作为Lisp和其家族中一员(如Scheme或Clojure): 这么多的语言和方言!

But my favorite: MB86 is India it translates CBasic to C - charges the least for the process produces pretty bloated output but it's hidden by the C compiler. No one can really read MB86 but it works so “it must be good”.

但我最喜欢的是:MB86是印度,它把CBasic翻译成 C语言 —— 要指出在这过程中输出的东西很臃肿但它用C语言编译器隐藏了。没有人能真正阅读MB86,但它表现的“就是这么好”。

Perl is Spain for it’s amazing History but nowadays totally out-aged and deprecated.

Perl是西班牙,因为它奇妙的历史。但是目前它已经过时不用了。

and some addition from me:

还有我新想到的:

Scala is Canada it is close to Java (USA) but so much simpler :)

Scala是加拿大,它接近Java(美国)但是简单多了:)

Go is Jamaica it is fun and simple friendly dangerous and stoned :o)

Go是牙买加,它很有趣,简单,友好,有危险并且去核心 :o)

F# is Finnland made to make real big data great ideas but no one goes there and uses it.

F#生来就是用于处理大数据,F#是个不错的想法概念,但是没人去发现它更别说使用它了。

VBA is Turkey very simple tries to be a big player but it kills you and you better leave it.

VBA是土耳其,简单,尝试成为大佬。但它会杀了你,你最好离开它。

… to be continued …
…未完待续…

-------------译者:zzzzbbbyyy-审核者:龙腾翻译总管------------

Mark Jeffrey Programming since 1975. Yes I can use a GOTO correctly.
Written Dec 5
FORTRAN - England. Ancient and bound by IMPLICIT assumptions. Once ruled the world. Fast and very powerful rather dangerous if not handled with care. Very scientific. Doesn’t play too well with others. Has a wisdom of ages and huge libraries that are still important in some fields of study. Recognises structure but will sometimes GOTO somewhere you never expected for no obvious reason. Is sometimes treated with love loyalty and respect by people who would never want to live there.

FORTRAN-英国。古老且受暗含的假设的限制。曾统治世界。快并且非常强大,但如果不小心处理会有危险。非常科学。和别人玩的关系不太好。有长者风范以及数量众多的图书馆,在某些研究领域这些图书馆对我们仍是不可或缺的。能够识别结构但有时无缘无故会跑到你从未想到的地方去。对于一些永远不会住在那儿的人,他们有时到会给予它一点爱、忠心和尊重。


Anonymous
Written Feb 5 2015
I don't mean to offend. This is just a joke.

无意冒犯,只是玩笑。

Python = Netherlands : High(-level).

Python = 荷兰:高(双关,指等级和身高)。

Cobol = Saudi Arabia : Not so developed but banks always need it.

Cobol = 沙特阿拉伯:不大先进但银行总是需要它。

Assembly = Israel : Not so popular but controls everything.

Assembly = 以色列:不怎么受人瞩目但控制一切。

Java = USA : Powerful Industrial Popular and doesn't care about memory/culture.

Java = 美国:强大的工业,受欢迎并且不关心内存/文化。

C++ = India : Popular yet dirty (has no garbage collector).

C++ =印度:有名但肮脏(没有清洁工/垃圾管理器)。

C = China : Popular and works everywhere.

C = 中国:受人瞩目并且工作在各处。

Ruby = Canada : Beautiful yet not so powerful.

Ruby = 加拿大:美妙但不够强大。

-------------译者:zzzzbbbyyy-审核者:龙腾翻译总管------------

David Albrecht
Written Feb 7 2015
C++: Germany. Stiff rigid not really into creativity but source of many rock-solid things made from conservative traditional engineering principles. Not into "innovation".

C++: 德国。僵硬,死板,没有真正的创造力,但基于保守传统的工程原则做了许多坚如磐石的事情。不是“创新”。

jaxcript: India. Democratic no central authority on anything a complete hodgepodge of cultures opinions and worldviews somewhat inconsistent but wildly popular.

jaxcript: 印度。民主,没有中央权威,各种文化,观点和世界观的大杂烩,有一点不一致,但是广受欢迎,但广受欢迎。

C: Ancient Rome. Widely studied still the "lingua franca" of developers on whiteboards. Source of much modern culture influenced everything many great works of our trade found there/written in it. Primitive somewhat barbaric worldview. 

C: 古罗马。仍然是开发人员在白板上的、被广泛研究的“通用语”。现代文化影响的一切源头,我们仍然用它写了许多伟大作品并从那里所得良多。原始野蛮的世界观。

Java: US. Fat tasteless complete lack of culture/style but lots of influence and everyone's heard of it.

Java: 美国。肥胖,无味,完全缺乏文化/风格,但影响深远且每个人都听说过。

Ruby: Italy/south of France. Major emphasis on style and beauty. Lots of local customs that aren't widely known. Smug think they're the best at anything. People who visit can't stop talking about it. Grossly inefficient but nobody seems to care. Emphasis on "feelings" and "expressing yourself".

Ruby: 意大利/法国南部。主要强调风格和美丽。很多当地习俗并不广为人知。自以为是地认为他们的任何东西都是最好的。去过的人都说好。效率低下但似乎没有人关心。强调“情感”和“自我表现”。

C#: China. Perennially playing catch-up to the US (Java) even though it does a lot of things better. Pragmatic. Tons of innovation happening here but the ruling elite is pretty unpopular worldwide.

C#:中国。常年在追赶美国(Java),尽管它很多东西更好。务实。但是其统治精英在全世界都不受欢迎。

Scala: Argentina. Could be a great world power if it could just get its act together and stabilize a bit. Also uses the same "platform" (Spanish) as many other nations making it attractive.

Scala:阿根廷。如果可以同心协力并且稳定一点的话可能是一个世界强国。和许多其他国家使用相同的“平台”(西班牙语)使它有吸引力。

Bash: Switzerland. The neutral zone. Generates great value by coordinating and controlling the actions of others.

Bash:瑞士。中立区。通过协调和控制别人的行为产生巨大价值。

Go: Singapore. Clean modern new learned a lot from others' mistakes. Up and coming. Has strong relationships with global powers. Best days are yet to come.

Go:新加坡。干净,现代,新兴,从他人的错误中学到了很多。八九点钟的太阳。与大国有很强的关系。最好的日子还没有到来。

 -------------译者:zzzzbbbyyy-审核者:龙腾翻译总管------------

Gourav Das I have no skill.. i am just a man with a will to survive in this world..
Written Nov 20
BASIC := England . The First Language To Gain Prominance And Started To Rule Over.

BASIC := 英格兰。获得第一语言的桂冠并开始统御天下。

FORTRAN := Japan . Basically Meant For Intelligent People.

FORTRAN := 日本。基本上是为聪明人发明的。

COBOL := Ice Land . Really Cold Nowadays.

COBOL := 冰岛。最近真的很冷。

PASCAL := Sri Lanka . Beautiful and easy to approach but has some difficulties.

PASCAL := 斯里兰卡。美丽,容易处理,但有一些难。

ASSEMBLY(80808086808580886502) := India . The Beginning of philosophical age starts here very useful in microprocessors really engaging a never dying thing. But difficult to handle and figure out everything.

ASSEMBLY(80808086808580886502) := 印度。哲学时代的开启者。在微处理器方面非常有用,非常迷人,永不凋谢。但很难操作和解决一切问题。

JAVA := USA . Everyone’s choice to migrate over here after playing around .

JAVA := 美国。每个人在玩够以后都选择移民到这里。

ADA := Greenland. Very beautiful and you can spend your life here just viewing it’s beauty . But you can’t really achieve anything out of it.

ADA := 格林兰。非常美丽,你可以在领略它的魅力中度过余生。但是你不能用它真正实现什么。

RUBY := Bangladesh . Slowly gaining respect and might be the next big thing.

RUBY := 孟加拉国。正慢慢地获得尊重,可能是下一个大家伙。

LISP := Australia . Charming and very bold to handle. Need to be careful when you are in here.

LISP := 澳大利亚。迷人,处理起来非常大胆。当你在这里时要小心。

PYTHON := Pakistan. I just don’t like it.

PYTHON := 巴基斯坦。我就是不喜欢。(我喜欢,友好又简单,哼!)

PERL := Greece. A place to visit at least once in your life.

PERL := 希腊。在你生命中至少要去一次的地方。

C := Russia. Everyone uses it there’s a lot of legacy.

C := 俄国。大家都用,有很多遗产。

C++ := Netherlands. Michael Jackson Lived here. You can understand it’s importance.

C++ := 荷兰。迈克尔杰克逊曾在那里居住。你可以理解它的重要性。(不懂你在说什么)

阅读: