<pre><p style="margin-left: 8px;margin-right: 8px;"><span style="font-size: 14px;color: rgb(178, 178, 178);">英文原文:http://http//insights.dice.com/2014/10/09/5-programming-languages-marked-for-death/uages-marked-for-death/</span></p><p style="margin-left: 8px;margin-right: 8px;"><span style="font-size: 14px;color: rgb(178, 178, 178);">译文链接:http://www.codeceo.com/article/5-die-programming-language.html</span></p><p style="margin-left: 8px;margin-right: 8px;"><span style="font-size: 14px;color: rgb(178, 178, 178);">翻译作者:码农网 – 小峰</span></p><section style="white-space: normal;color: rgb(62, 62, 62);font-size: 16px;background-color: rgb(255, 255, 255);margin-top: 25px;text-align: left;line-height: 2em;margin-left: 8px;margin-right: 8px;margin-bottom: 1.2em !important;overflow-wrap: break-word !important;"><span style="letter-spacing: 2px;font-size: 16px;">现在的开发人员都趋向于使用新的编程语言,那么旧的编程语言呢?它们的前途一般是这样两种:仍然可以使用,但逐渐不受大家欢迎;直接完全死去。和之前的十佳最受欢迎的编程语言相反,本文我们预测以下这几种编程语言面临着死亡威胁:</span></section>
1
<section style="padding: 0.5em 0.7em;font-size: 0.85em;font-family: Consolas, Inconsolata, Courier, monospace;overflow: auto;border-radius: 3px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);margin: 5px 8px 10px;line-height: 2em;overflow-wrap: break-word !important;display: block !important;"><span style="letter-spacing: 2px;font-size: 16px;">#!/usr/bin/perl<br />print “Content-type: text/htmlnn”;<br />print “Goodbye, world!n”;</span></section>
2
<section style="padding: 0.5em 0.7em;font-size: 0.85em;font-family: Consolas, Inconsolata, Courier, monospace;overflow: auto;border-radius: 3px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);margin-top: 5px;line-height: 2em;margin-left: 8px;margin-right: 8px;overflow-wrap: break-word !important;display: block !important;"><span style="letter-spacing: 2px;font-size: 16px;">puts ‘Bye bye, Miss American Ruby! Drove my Chevy to the Levie…’<br />puts ’2011 was the day that Ruby died, yeah…’</span></section>
<section style="padding: 0.5em 0.7em;font-size: 0.85em;font-family: Consolas, Inconsolata, Courier, monospace;overflow: auto;border-radius: 3px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);margin-top: 5px;line-height: 2em;margin-left: 8px;margin-right: 8px;overflow-wrap: break-word !important;display: block !important;"><span style="letter-spacing: 2px;font-size: 16px;">def fact(n)<br /> if n == 0<br /> 1<br /> else<br /> n * fact(n-1)<br /> end<br />end<br />puts fact(ARGV[0].to_i)</span></section>
<section style="padding: 0.5em 0.7em;font-size: 0.85em;font-family: Consolas, Inconsolata, Courier, monospace;overflow: auto;border-radius: 3px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);margin-top: 5px;line-height: 2em;margin-left: 8px;margin-right: 8px;overflow-wrap: break-word !important;display: block !important;"><span style="letter-spacing: 2px;font-size: 16px;">ruby fact.rb 1000<br />40238726007709377354370243392300…0000000</span></section>
3
<section style="padding: 0.5em 0.7em;font-size: 0.85em;font-family: Consolas, Inconsolata, Courier, monospace;overflow: auto;border-radius: 3px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);margin-top: 5px;line-height: 2em;margin-left: 8px;margin-right: 8px;overflow-wrap: break-word !important;display: block !important;"><span style="letter-spacing: 2px;font-size: 16px;">‘ Allow easy reference to the System namespace classes.<br />Imports System<br />‘ This module houses the application’s entry point.<br />Public Module modmain<br /> ‘ Main is the application’s entry point.<br /> Sub Main()<br /> ‘ Write text to the console.<br /> Console.WriteLine (“Hello World using Visual Basic!”)<br /> End Sub<br />End Module</span></section>
4
<section style="padding: 0.5em 0.7em;font-size: 0.85em;font-family: Consolas, Inconsolata, Courier, monospace;overflow: auto;border-radius: 3px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);margin-top: 5px;line-height: 2em;margin-left: 8px;margin-right: 8px;overflow-wrap: break-word !important;display: block !important;"><span style="letter-spacing: 2px;font-size: 16px;">package {<br />import flash.display.*;<br />import flash.text.*;<br />public class HelloWorld extends Sprite {<br /> private var greeting:TextField = new TextField();<br />public function HelloWorld() {<br /> greeting.text = “Hello World!”;<br /> greeting.x = 100;<br /> greeting.y = 100;<br /> addChild(greeting);<br /> }<br /> }<br />}</span></section>
5
<section style="padding: 0.5em 0.7em;font-size: 0.85em;font-family: Consolas, Inconsolata, Courier, monospace;overflow: auto;border-radius: 3px;border-width: 1px;border-style: solid;border-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);margin-top: 5px;line-height: 2em;margin-left: 8px;margin-right: 8px;overflow-wrap: break-word !important;display: block !important;"><span style="letter-spacing: 2px;font-size: 16px;">program HelloWorld;<br />begin<br /> writeln(‘You say goodbye.’)</span></section>
译者注:以上观点仅代表作者个人观点,请文明礼貌按秩序吐槽。
本篇文章来源于: 菜鸟学Python
本文为原创文章,版权归知行编程网所有,欢迎分享本文,转载请保留出处!
你可能也喜欢
- ♥ python支持r语言吗?12/20
- ♥ 利用Python去除图片水印,真的一点都不难!08/06
- ♥ Python中随机模块的方法10/18
- ♥ 什么是python中的面向对象11/24
- ♥ Python简介:方差和标准差的区别11/02
- ♥ Python 56个内置函数详解(5)01/05
内容反馈