Bowery why give up node. js to go?

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

Bowery is a cloud-based development platform that enables team members to work seamlessly even when dispersed across the board with powerful collaborative processing technology. In a 2014 change from node. js to go, Bowery got a good performance boost. So what are the highlights of go that developers should be concerned about?


Powerful cross-platform programming capabilities

The Bowery team pointed out that go can be easily compiled in different systems, which is one of the important reasons why they went to go.

As a development platform, providing support for common operating systems such as LINUX,WINDOWS,OSX is an essential element in attracting developers. In go, developers can define different files for different operating systems to implement the same function functions. Bowery team member Larz when creating prompt applications (command line input), it is easy to implement cross-platform compilation with Go. What developers have to do is set up different environment variables.

Rapid deployment

In the go platform, switching from a test environment to a real-world environment is convenient because it eliminates the need for additional system dependencies. In particular, the command-line tool provided to the user by Bowery, the user does not need to install JAVA,RVM or NPM and other tools to run normally.

Concurrent processing

node. JS is at a disadvantage in concurrent processing, with only I/O programs or timers running in concurrency mode. So if you want to build a fast-response cross-Program communication system, go is definitely a better choice. Go provides low-level concurrent processing primitives, such as mutexes, wait groups, and so on.

Integrated testing Framework

If you want to find a standardized integrated testing framework, go to the go to experience it, it built a complete test package, eliminating the hassle of looking around. If you want to write a new test suite, simply add the _test.go file to the same package. For more information on GO testing, please click here to visit.

Standard library

Go provides a standard library, and the benefit of the standard library is that it eliminates the need to include additional extension libraries, saving development time and improving robustness.

Powerful Developer Workflow Tools

The workspace interface of Go can help establish a standardized workflow, although this may compress the freedom of development, but the resulting is a structured and organized workspace: The area has three root directories,src is used to place the source package, Pkg is used to place the compilation package, the bin is placed in the execution file. The benefit of centralizing the source and dependent files is that the team members have an identical document structure without cluttering up the document. In addition, GOFMT can format the code in the same style, which is a very useful feature. So once you need to debug, focus on solving your current problems without having to deal with trivial issues such as structure or style .

Finally , summarize some of the go language learning experience, I hope the new contact with the Go language developers are helpful:

    • Visit the official blog regularly to get the latest go news;
    • Regular access to official teaching documents;
    • It is recommended to browse the Ardan Studio member Bill Kennedy's Go Programming blog;
    • Go by example has a large number of examples, can help open up the field of vision;
    • Gopheracademy has a lot of articles on go best practices.

English from: Moving from node. js to Go at Bowery

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.