The understanding of Go Learning Chapter Go (1)

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

Go language itself contact time is not very long, the first is under what circumstances to know it, I remember it is not very clear, but then I know that the language is worth learning and in-depth understanding, as for why, I think I may also describe not come out, Well, let's see what it's like in other people's minds. What kind of language is it with us, vb,C + +,java,C # static language and php, What's different about dynamic languages like Python andRuby .

1. simple language style design. There are few key words in the go language, and a lot of grammar usage is very different from other languages, theGo language designer feels that the code seems to have become a major obstacle to the design of software, we need to waste a lot of time on coding, so with such a simplified syntax structure , can omit as far as possible to omit, and developed a more standard specification, in order to achieve efficient and simple goal.

2. Object-oriented different ways of expression. Because I have just begun to contact C and C + + , there is a thought shift from face process programming to object-oriented programming, but from the perspective of software design and iteration, object-oriented generation is due to the development of Internet and software development technology, Simple process-oriented programming has been unable to solve the more complex business structure, the difficulty of writing more and more large, can not be efficient to meet our requirements. So for the last more than 10 years, object-oriented has almost been carved into the hearts of every programmer, and it seems that without an object-oriented program it loses its soul. In fact, as the software continues to deepen the development of object-oriented also early evening, we need to jump out and find other ideas, and go language pioneers are giving us a way of thinking, in another way to fuse the object-oriented somewhat, while adding some new elements. While programming for this approach differs from one person to another, it takes time to verify whether it is good or bad.

3. efficient support for parallel programming and distributed programming. go language in multi-threaded add keyword go, Share on the simulation of the Linux pipeline, more keyword channel, using them, multi-threaded writing difficulty will be greatly reduced.

4. The most praised is the interface design in the go language, unlike the interface in Java and C # , there are some similarities to the C + + template. As to why it is so excellent, his own understanding of his temporary is not enough, but also in practice can be a lot of experience.

5.go error-handling specification, there are similarities in other languages, but there is a big difference. Go introduces the error and defer keywords to help us write code that is exceptionally secure.

6.go functionality, which is similar to inheritance in other languages, but can also combine pointers in go .

7.go high language efficiency, comparable to the C language, and the full support of C , is now the main focus on the development of the server domain.

On the pros and cons of go , controversial vary, each has a reason, choose whether to learn the language, in fact, completely look at personal hobbies, listen to their own quasi right.

whether to learn the language, in fact, completely look at personal interests, listen to their own right.

Related Article

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.