Link: www.codeceo.com/article/5-d…

5 Programming Languages Marked for Death

Today’s developers tend to use new programming languages, but what about old ones? They generally have one of two prospects: they are still usable, but gradually falling out of favor; Straight to complete death. Contrary to the previous 10 most popular programming languages, here are a few that we predict are under death threat:

Perl

There was a time when almost everyone was programming in Perl. But those who use it regularly are slowly discovering that there is always something wrong with the Perl language. At least I know of a programming language called “Piecemeal” whose creators seem to have just piled one feature on top of another without giving much thought to putting them together.

In fact, even its creators had to admit that the programming language was problematic. After a complete overhaul, current development efforts tend to use Perl6, probably in the year 2000. As for the Perl? It seems to have disappeared! So there is absolutely no need to learn it. By the way, the following “Goodbye World” was written in Perl:

#! The/usr/bin/perl print "content-type: text/HTML \ n \ n"; Print "Goodbye, world! \ n ";Copy the code

The example above will bring up a web page. Perl today, as a CGI scripting language, is most widely used for generating Web pages. But in keeping with the changing times, it’s best to throw Perl out the window.

Ruby

About Ruby, you can say, “After 10 years, I don’t know you, you don’t belong to me…” . Just 10 years ago, Ruby was all the rage. It was born in 1995 and reached its heyday about five years later. If you use it regularly, you will love it. However, those of us who grew up learning the C language style were often a little embarrassed when we learned Ruby.

Here’s “Goodbye World” in Ruby:

Puts' Bye Bye, Miss American Ruby! Drove my Chevy to the Levie... 'Puts' 2011 was the day that Ruby died, yeah... 'Copy the code

Here is an example for calculating factorial:

def fact(n)
  if n == 0
    1
  else
    n * fact(n-1)
  end
end
puts fact(ARGV[0].to_i)
Copy the code

I tested this example to find the factorial of 1000. Here are the results (2,569 numbers have been skipped for space reasons) :

Ruby fact. Rb 1000 40238726007709377354370243392300... 0000000Copy the code

Ruby is good in every way, almost to its credit… In addition to Twitter. In April 2011, Twitter announced that they had rewritten almost all of their code to avoid using Ruby and its Web framework, Ruby on Rails, which they said was very inefficient. However, I would like to say that it was also the day Ruby began to decline and become less and less used.

Visual Basic.NET

Ten years ago, I was hired by a company that had to rewrite a lot of code, the name of which I have forgotten, to convert VB6 to Visual basic.NET. After about a month or two, I jumped ship: it was really painful.

Microsoft’s love of extensions to BASIC goes all the way back to 1991, when they purchased a very cool (for that time) visual programming design from Alan Cooper. Alan Cooper started with a different programming language, but Bill Gates told him to switch to BASIC because Gates thought it was the simplest programming language available. Out of Basic came Visual Basic, the concept of objects and new programming techniques.

And then something interesting happened. Anders Hejlsberg, creator of Borland Delphi, also went to work at Microsoft and led the creation of a new programming language, C#. This programming language is very similar to the Java language. It may be hard to learn at first, but once you get into it, you’ll love it. C# quickly became Microsoft’s flagship programming language. Now, there are many, many jobs in the software industry that need C#, and many of them are well paid.

While Microsoft created C# for its own CLR run, its engineers also created a separate version of gates’ beloved BASIC, called Visual BASIC.net. The programming language borrows BASIC’s syntax, but its coding is similar to C#. Visual Basic.NET is evolving, but it’s inevitable — everyone goes to C# and Visual Basic.NET becomes a thing of the past.

Here is an excerpt from a Visual Basic.NET program from a Microsoft web page:

'Allow easy reference to the System namespace classes. Imports System' This Module houses the application's entry Point. Public Module modmain 'Main is the application's entry Point. Sub Main()' Write text to the console. Console.WriteLine (" Hello World using Visual Basic! ) End Sub End ModuleCopy the code

(” Hello World “can also be replaced with” Goodbye World, “which doesn’t matter.)

Adobe Flash and AIR

Technically, these are platforms, not programming languages. I included them because if you want to use them, you must install Adobe’s own version of ECMAScript, called ActionScript. ActionScript is a close relative of JavaScript, one of the most popular programming languages today because it works in all browsers. ActionScript adds some detail to ECMAScript (which is the official name of the JavaScript implementation standard); But except for Adobe Flash, ActionScript has little use elsewhere.

Do you use Flash? Jobs hated it and wouldn’t allow it on the iPhone. Then with the growing popularity of the iPhone (and later the iPad), Web developers had to create sites that didn’t rely on Flash. Developers who made their living from ActionScript had to be laid off. (I once saw a Flash developer accuse another JavaScript developer of ruining his career.)

Adobe also tried to take a chance on its programming platform with AIR, building a tool for building AIR apps called Flex. As for the AIR, many say it’s been a disaster. We don’t know why Adobe is launching AIR, but maybe it’s trying to replace Flash with AIR. Or maybe you want AIR and Flash to grow together?

There was a time when AIR was very popular, thanks to TweetDeck, a Twitter platform that requires users to install AIR on their computers. There were probably millions of PC AIR apps developed at the time, until Twitter bought TweetDeck in 2011 and rewrote native code to replace AIR. As a result, the glory of AIR ended here.

With Flash and AIR dying, Adobe’s ActionScript is kissing the world goodbye. Here are some examples of code written in ActionScript.

package { import flash.display.*; import flash.text.*; public class HelloWorld extends Sprite { private var greeting:TextField = new TextField(); Public function HelloWorld() {greeting.text = "HelloWorld!" ; greeting.x = 100; greeting.y = 100; addChild(greeting); }}}Copy the code

(You might find this very similar to JavaScript, which uses var, function, and new, and also uses decimal points to access member variables.)

Delphi ‘s Object Pascal

First I apologize to my old friend Delphi for having to announce the “death” of Object Pascal. Well, Delphi (the tool used to make Object Pascal), is still alive and kicking (it originated at Borland and is now in Embarcadero’s lap).

Delphi and its Object Pascal language did provide us with a good working environment early on: Though a bit wordy, the compiler is fast and easier to create Windows programs than Visual Basic (pre-Visual Basic.net, circa 1995).

But its ascendancy did not last. It’s hard to say why, because the platform is really good. Around this time, Borland began supporting C# and C++ in its Delphi product line. Later, Borland even sold Delphi directly to Embarcadero, who then continued to use Delphi to develop products. It did a pretty good job, but the point was no longer Pascal. Of course, you can still program in Pascal, but almost no one takes that route anymore. In fact, we can use Delphi to build many different platforms, including iOS, Android, and the upcoming Linux operating system.

However, if you go to the Embarcadero website, you will see that they are mainly promoting Delphi’s C++ support. So, in other words, Object Pascal is dead. Writing here, I can not help but feel sad, because I spent a lot of time to learn The Pascal language, especially Delphi’s Object Pascal. But there was no choice. The reality was so cruel that if you didn’t change careers, you’d starve to death.

Here is the code for Object Pascal:

program HelloWorld; The begin writeln (' You say goodbye."Copy the code

Translator’s note: The above views are the author’s personal views, please be polite and ridicule in order.

Inverse feng qibi is a technical platform focused on programmers circle, you can harvest the latest technology trends, the latest internal test qualification, BAT and other big factory bosses experience, growth themselves, learning materials, career routes, money making thinking, wechat search inverse feng qibi attention!