Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the five programming languages that will be eliminated?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

What are the five obsolete programming languages? in order to solve this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a simpler and easier way.

Today's developers tend to use new programming languages, but what about the old programming languages? Their prospects are generally in two ways: they can still be used, but gradually become unpopular, and they die directly and completely. In contrast to the previous top ten most popular programming languages, here are some predictions that the following programming languages face death threats:

Perl

Once upon a time, almost everyone was programming in Perl. But those who use it often find that there always seems to be something wrong with the Perl language. At least I know of a programming language called "piecemeal" whose creators seem to just stack this feature on top of another without really thinking about combining them.

In fact, even its creators have to admit that the programming language is problematic. After a complete transformation, the current development work began to tend to use Perl6, which was around 2000. As for Perl? It seems to have disappeared! So there is no need to learn it at all. By the way, the following "Goodbye World" is written in Perl:

#! / usr/bin/perlprint "Content-type:text/html\ n\ n"; print "Goodbye,world!\ n"

The above example will produce a web page. Today's Perl, because it can be used as a CGI scripting language, is most widely used in generating web pages. But in order to adapt to the changes of the times, we'd better throw away the Perl language.

Ruby

About Ruby, you can sing "Ten years later, I don't know you and you don't belong to me." . Because just 10 years ago, the Ruby language was all the rage. It was born in 1995 and reached its heyday in about five years. If you use it often, you will definitely fall in love with it without hesitation. However, children like us who grew up learning the C language style tend to feel a little embarrassed when learning Ruby.

Here is the "Goodbye World" written in Ruby:

Putsmanship Byebyejia MissAmericanRuby DrovemyChevytotheLevie...' Puts' 2011 was the day that Ruby died, yeah...'

Here is an example for calculating factorials:

Def fact (n) if n = 0 1 else n * fact (n Mur1) endendputs fact (ARGV [0] .to _ I)

I tested this example to calculate the factorial of 1000. Here are the results (2569 numbers were skipped due to space constraints):

Ruby fact.rb 100040238726007709377354370243392300... 0000000

In every way, Ruby is good, almost full of praise. Except for Twitter. In April 2011, Twitter announced that it had rewritten almost most of the code so that it did not have to use Ruby and its web framework, Ruby on Rails, which they said was very inefficient. However, what I want to say is that from that day on, Ruby began to decline, and the number of users became smaller and smaller.

Visual Basic.NET

Ten years ago, I applied for a company that needed to rewrite a lot of code. I had forgotten the name, and my main job was to convert VB6 to Visual basic.NET. After only working for a month or two, I changed my job: it was really painful.

Microsoft's favorite extension to the BASIC programming language dates back to 1991, when they had just purchased a very cool visual programming design from Alan Cooper. Alan Cooper initially used another programming language, but Bill Gates asked him to switch to BASIC because Gates thought it was the simplest programming language at the time. As a result, the famous Visual Basic is derived from BASIC-the concept of objects and new programming techniques.

Some interesting things happened later. Anders Hejlsberg, the creator of Borland Delphi, also worked 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 a little difficult to learn at the beginning, but once you get started, you will definitely love it. C # soon became Microsoft's flagship programming language. Now, in the software industry, there are many jobs that need C#, many of which are well-paid.

Although Microsoft created BASIC for its own CLR, its engineers also created a version of BASIC that Gates loved, named Visual Basic.NET. The programming language borrows the syntax of the BASIC language, but its coding method is similar to that of C #. Although Visual Basic.NET is also developing, but the survival of the fittest is always inevitable-everyone chose it, so Visual Basic.NET has become a thing of the past.

Here is a Visual Basic.NET program from Microsoft's 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 ("HelloWorldusingVisualBasic!") End SubEnd Module

(the word "Hello World" here can also be replaced with "Goodbye World". It 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, ActionScript. ActionScript is a close relative of JavaScript (one of the most popular programming languages today because it can be used in all browsers). ActionScript adds some details to ECMAScript (the official name for JavaScript to implement the standard); but there are few opportunities for ActionScript to use its talents anywhere other than Adobe Flash.

Do you use Flash? Jobs hated it and didn't allow iPhone to use it. Then as iPhone (and then iPad) grew in popularity, Web developers had to create sites that did not have to rely on Flash. Developers who depend on ActionScript for a living also have to be laid off. (I once saw a Flash developer accuse another JavaScript developer of ruining his career.)

Adobe also tried to get a chance of its programming platform through AIR, so it built a tool for building AIR app, called Flex. As for AIR, many people say it is a disaster. But we don't know why Adobe launched AIR, perhaps because it wants to replace Flash with AIR. Or maybe you want AIR and Flash to love each other and develop together?

I remember that AIR was very popular for a while thanks to the use of the Twitter platform, TweetDeck, which requires users to install AIR on their computers. At that time, millions of pc AIR applications were developed, but later, after Twitter bought TweetDeck in 2011, it rewrote native code to replace AIR. As a result, AIR's glory ends here.

As Flash and AIR faded away, Adobe's ActionScript began to kiss the world goodbye. Here are some code examples written in ActionScript.

Package {import flash.display.*;import flash.text.*;public class HelloWorld extends Sprite {privatevargreeting:TextField=newTextField (); public function HelloWorld () {greeting.text= "HelloWorld!"; greeting.x = 100; greeting.y = 100; addChild (greeting);}

(you may find this very similar to JavaScript, both using var, function, and new, and also using decimal points to access member variables.)

Delphi's Object Pascal

First of all, I have to apologize to my former good friend Delphi because I had to announce the "death" of Object Pascal. Well,Delphi (the tool used to send Object Pascal) is still alive after all the changes (it originated from Borland and now holds Embarcadero's thigh).

Earlier, Delphi and its Object Pascal language did provide us with a good working environment: it was a bit verbose, but the compiler was fast, and it was easier to create Windows programs than Visual Basic (in this case, pre-Visual Basic.NET, around 1995).

But its advantage did not last. It's hard to say why, because this platform is really good. At this point, Borland began to support C# and C++ in its Delphi product line. Later, Borland even sold Delphi directly to Embarcadero, and then Embarcadero continued to develop products using Delphi. In other words, it did a pretty good job, but the focus is not on Pascal anymore. Of course, you can still program in Pascal, but few people go this way. 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 Embarcadero's website, you will find that they are mainly promoting the support of Delphi's C++. So, in other words, Object Pascal is gone. At this point, I can't help but feel sad from the bottom of my heart, because I spent a lot of time learning Pascal, especially Delphi's Object Pascal. But there is no way, the reality is so cruel, do not change careers can only starve to death.

Take a look at the Object Pascal code below:

Program HelloWorld;begin writeln ('You say goodbye.') This is the answer to the question about what the five obsolete programming languages are. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report