My new bookIntroduction and Practice of Android App DevelopmentIt was published by Posts and Telecommunications Press in August 2020. You are welcome to purchase it.Click for details

GitHub: Recommend one GitHub quality open source project per day

Life learn to follow the fate, to live at ease. Follow is not to follow, is to let nature take its course, not resentment, not impetuous, not excessive, not demanding; With is not casual, is to grasp the chance, not pessimistic, not rigid, not panic, not forget; Along with is a kind of philosophical, is a kind of free and easy, is a mature life, a human practice.

Hello everyone, I am Yan Xuan brother.

Today’s project is: The Google Code Specification

How important are code specifications? Because it is a specification, there can be a variety of standards, as small as each code farmer can have a set of code specifications, large to each company has a set of code specifications. But developers, especially when reading code, expect all project code to be written according to a standard set of code specifications, which makes it much easier to read. No one wants to look at one project as a code specification one day and another as a code specification the next.

So at this time or by the industry leader to develop a standard code specification for the best. This is the code specification created by Google.

The code specification covers many aspects, such as defining variables with small humps, not using global variables, not using exceptions, etc. If you want to participate in a Google-sponsored project, it is important that you read up on Google’s code specifications before submitting your code.

Google’s specification includes many things, such as the following: 1. C++ Style Guide, 2. C# Style Guide, 3. Swift Style Guide, 4. Objective-C Style Guide, 5. Java Style Guide, 6. Python Style Guide, 7. R Style Guide, 8. Shell Style Guide, 9. HTML/CSS Style Guide, 10. JavaScript Style Guide, 11. AngularJS Style Guide, 12. Common Lisp Style Guide, 13. Vimscript Style Guide.

For example, if you want to create an XML file, you need to read the XML Document Format Style Guide.

Let’s look at the Google Java Style Guide:

Yan Xuan believes that companies or teams must have a code specification of their own, which can be directly applied to Google, or modified to form a code specification suitable for their own.

Welcome to pay attention to my technical public number: national programmer, our goal: output dry goods

  1. Share original technical articles every day
  2. Massive free technical information and video learning resources
  3. Share ways to make money and lead programmers to financial freedom