Go Language Basics Tutorial: Prologue

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

First introduce myself to introduce myself, I am a coder, at present mainly from the thing B/s program to develop work, understand a bit of PHP; ASP; JSP; JS; VB; C;delphi; JAVA, in addition to know a few of the library, otherwise not long, then why do I choose to learn go! I'll take a closer look at this.

First of all, let me explain the advantages and shortages of C/s program and b/s program:

c/S program is mainly run on the customer's computer, usually in the form of an installation, Windows operating system for example, the software will be translated into binary and then in the form of EXE or DLL exist in the client computer, the performance is very high, of course, unless the user wrote the code is very bad, In addition to the C/s program almost no need to consider security problems and load problems, in addition, the C/s program is almost not open to the source, the user can only be accepted to not change the functionality of the software (if you will compile it, then the other). There are many languages, such as C; Vb;delphi; C + +; Wait here, not one by one!

b/S program is mainly run on the service device, visitors use the browser as the media to enter the Internet access, a Web site is often used at the same time by hundreds of people, in addition to develop the B/s program is often the language is the foot book, this kind of foot language is developed fast, the latter is simple, but compared to C/ s editing into binary system The efficiency must be reduced by a few files. Plus a lot of people use it, it makes the situation worse, but the advantage is that the B/s program is almost always open (except for very few encryption), Users can change the functionality of their software if they are level enough. Then you can open B/S language also has a lot, for example: PHP; ASP;. NET; JSP, etc.

In addition to some of the languages I'm talking about, there are actually a few languages that are somewhat special, like VB, where you can open an ASP with a subset of them, such as C#;java;python;ruby;go, and so on, no more than one by one, and these languages can be used in addition to C /s program can also be used to develop B/s program, so today we're going to talk about the topic of go language, why I'm not choosing Java or C # as a category that's not in today's discussion. Continue with the question, since B/s load is so big and use the language of the foot to develop, then the effectiveness is definitely to be discounted, So there is no alternative way not only can the service end of the program to be translated into two, but also can be used to develop B/s program? Of course, that's the go language. Of course, some companies have done a lot of good in this, such as Facebook, and they've used C to rewrite the core of PHP, The new core is called Hiphop and open the source, interested friends can see, re-write the PHP performance is really a great upgrade, but unfortunately lost a lot of PHP features, and also a bit complicated to get the feeling of high unfriendly, the final guide to praise is not popular, Although Facebook has benefited from this change, the speed of the website is actually fast!

I chose go language because of the following:

1. Its efficiency is very high, the number is only second to the effectiveness of the C language.

2. As with node. JS, the language itself is a Web server that does not have to use Apache;nginx;iis's service software, which is good enough to reduce performance loss.

3. Learning go language is very simple, and for a novice you can start work in a short time.

4. The structure of the language itself is very simple, it can save some unnecessary things Yi omitted.

5. Its strong support for the shield, in addition to its innate support for UTF-8 I like.

6. He is open source. At least not in the middle of a Delphi like a premature death.

7. Good version compatibility, the program with the lower version of Go language can be very good in the high version of the GO environment.

8. Multi-thread, I have been expecting PHP to have this function, but so far only to help third-party to be able to come to reality.

9. I don't even have to say that the go language will not allow you to migrate to Linux without the software that you have developed in Windows, which is a super-nonsense, but there are some languages on the market that have this super-ridiculous problem, After using their language to develop something, you need to buy the server operation system license, then buy the rights of the Library, and then purchase the software version of the rights, this is not a folding totem it!!

10. There are some advantages I will not be one by one to say

That's why I chose and learned go language. There are a lot of deficiencies in go language, and I'm not going to be able to tell you that interesting friends can search by themselves, so from the very beginning of the next article we start with the go language.

In addition, hope to download the article's friends can leave an article out, http://see7di.cnblogs.com here grateful!

Just set up a QQ group, interesting talk about go language friends can join: 195112

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.