The go Developer's advice for Go beginners

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

Note: The original address is Advise from go developers to go programming newbies

To promote India's go programming as part of the Gopherconindia commitment. We interviewed 40 Gophers (a Gopher representing a go project or go programmer anywhere) and got their opinion on go. From August to November in 2014, we will publish two interviews each week.

If you are just beginning to go programming, their answers to some of our questions may be very useful to you. Look at this.

should do:

    • read through the Go Standard library and effective go, in order to learn the specifications of go, effective go is highly recommended, especially if you have backgrounds in other languages.
    • do exercises on the Go tour
    • read the language Reference
    • practice Go by Example, not just copy and paste!
    • insist on writing go code, and in a few weeks you will be efficient in this language
    • understand the functionality of the interface, they are one of the biggest gifts of go, probably more important than channels and goroutines. This article about interfaces article the description of the keynote interface on interfaces and Andrew Gerrand on Gophercon 2014 will be very helpful to you.
    • Discard your OO thought baggage if you are from another language, such as dynamic language Python or Ruby, or a compiled language such as Java or C #. GO is an object-oriented language, but it is not a class-based language and does not support inheritance.
    • to understand that inheritance was removed from the GO language. The use of the combination of practice rather than the chance of inheritance appears, and the entanglement of inheritance only leads to frustration.
    • do not write GO
    • in a different language to look for more experienced Gophers, who can help you review snippets and give you feedback. Get real support and help in the go Community
    • use GO to implement a project in your idea or find a project to work on. Then, as you learn more, continue to refactor your application. Use mailing lists and join Gopher Academy Slack Group to see other Gophers to get help. Dave Cheney's blog and Goinggo's blog are also a very good start.
    • do not wait for generics and functions to be added to the language; Hold your breath and learn to fall in love with the language we have today

Note: Private add, can subscribe to Newspaper.io's Golang Daily, and @ASTA Xie's "Go Web Programming" Author also out of the physical book, you can buy "and subscribe to Golang Ask News, community http://golanghome com/,@ Unknown "Go Basics", "Go Web Basics" and "Go Name Library explanation"

Some questions to go beginner to share

    • It may be frustrating for anyone to learn a new language. The GO community is incredibly active and you are not alone. Take advantage of all the documents, blogs, local meetups and user groups, such as Slack. Don't be afraid to ask questions and participate
    • If you are interested in go, use it on one side, or use it professionally, if you have go Meetup, consider participating. If you have the goods, consider sharing it.
    • If you have a plan to travel and have the ability to go to the go Community destination
    • The visiting user community is a testament to the many users, supporters and employees of this community
    • Don't waste time comparing to other languages, if you like go, love him and use it.
    • Accept the culture of go and the way go does things. Your code will thank you if you do it and you'll get a lot
    • Don't impulse the introduction of dependency
    • Simplicity is the most important feature of GO. Avoid over-design, using simple code snippets rather than a single, huge code base
    • Porting libraries from other languages to go is a good practice that allows you to peel off other people's code and glue them in a way that fits the go language.

Note: How does the programmers in the Go? What's the future for Go this part does not translate, please read the reader himself

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.