您的位置:首页 > 编程语言

如果编程语言也是一条船(If a programming language was a boat…)

2008-04-10 14:12 477 查看
程序员与编程语言一直都被热烈讨论的话题。这里不妨引入一个新的思考方向,如果将编程语言比作一条船,那么程序员又将扮演一个什么样的角色?是载舟的水,还是坐船的人?

This one is inspired by a recent forum post, that still leaves me in amazement.

"Hi, Im wondering how i can create a boat in turing and if someone can post a example. "

This makes no sense, since one doesn’t normally make water vehicles in Turing, the programming language. Though this got me thinking — if a programming language was a boat, what would it be?

Turing

图灵无疑是一条独木舟,它很小并且需要纯手工驱动。这是一条适合初学者的“船”。

Turing would definitely be a kayak (thank you for comments). It’s small. It’s human powered. It’s often used as a beginner “boat”. And it’s also very Canadian.



Java

Java 是一条货船。它的体积庞大、承载量大,非常企业级。不过在运行一个项目时,操作并不那么顺手。

Java is a cargo ship. It’s very bulky. It’s very enterprise~y. Though it can also carry a lot of weight. Will carry a project, but not very fun to drive.



Perl

Perl是一艘拖船。它有足够的动力来拖动Java正常运行。

Perl is a tugboat. Powerful enough to tug Java around, in 80 characters or less.



Ruby

Ruby 很难描述,它是圆滑的、性感的、顺手的和新潮的。

Ruby is difficult to describe. It’s sleek, sexy, and very fun to drive. Here’s a picture. Very trendy.



PHP

PHP是一个竹筏。由一连串的hacks连成一体,仍将保持下去。

PHP is a bamboo raft. A series of hacks held together by string. Still keeps afloat though.



C

C 是一艘核潜艇。虽然说明不好理解,不过可以优化硬件的性能。

C is a nuclear submarine. The instructions are probably in a foreign language, but all of the hardware itself is optimized for performance.



HTML

HTML也许不能称之为一个真正的编程语言。

HTML isn’t really a programming language boat.



你心目中的语言是一条什么样的船?

There’s a lot more to this, and it’s all up for discussion. How would your favourite programming language fare in open waters?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: