MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

[Beijing website production] On the readability of programming language: the old language is easier to understand

Source: Shangpin China | Type: website encyclopedia | Time: October 20, 2011

Recently, I saw some people on the Internet put various script languages together for comparison. Script languages: PHP, Perl, Python, Ruby. My first and second reaction was: hate! I have my own preferences and have never told anyone. I like programs with good readability. Any special characters (any non numeric or alphabetic characters) in the program will affect my reading speed. This makes me think about how we should design programming languages? Is our language design progressing, retrogressing or stagnating? ( Beijing website production )

Back when I first started writing programs, about 40 years ago, the three major programming languages were FORTRAN, COBOL and later BASIC. FORTRAN (short for FORmula TRANSLATION) is used by mathematicians (my brother majoring in mathematics must learn it) and scientists. COBOL (where B stands for Business) is used for enterprise applications. BASIC is a teaching language widely used in enterprises. COBOL is hated by some people because of its lengthy syntax, but also loved by others. But it is at least easy to understand. Look at the writing of the following cycle:

  1. PERFORM VARYING WS-BOTTLE-NUM FROM 98 BY -1 UNTIL WS-BOTTLE-NUM  <   2END-PERFORM  

It's like an English sentence. Comparison with C style language (C #):

  1. for ( WSBOTTLENUM  =  ninety-eight ;  WSBOTTLENUM  > = 2;  WSBOTTLENUM--){} 

Which is more obvious? Unless you lied about your inexperience.

BASIC (Visual Basic in this case) is moderately readable in some places.

  1. For  WSBOTTLENUM  =  ninety-eight  To 1 Step -1Next 

The step size - the number of decreases each time - is easy to understand, at least I think so. Let's look at some very simple things.

k = i / 10;

This will drive beginners crazy. What is this for? Of course, we programmers will know, but for beginners, this command operation mode will confuse them. You can compare it with COBOL language with the same function:

  1. divide i by 10 giving k 

A little long? Yes, but a beginner can understand it. I am not advocating a return to COBOL language now. Indeed, compared with the era of punching on paper at that time, modern integrated development tools and functions like Intellisence make our programming much easier. However, I still want to say that some introductory languages should be wordy - English sentences are much easier to master than "what the # sign represents in this programming language".

Just for fun. If you want to see a variety of languages, you can visit the website 99 Bottles of Beer.

This website collects the 99 Bottles of Beer Lyrics. There are already one thousand four hundred and thirty-four Different programming languages and language variants are used to express this song.

label: Beijing website production High end website construction

Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]