Udemy Black Friday Sale — Thousands of Web Development & Software Development courses are on sale for only $10 for a limited time! Full details and course recommendations can be found here.
A style guide is a set of standards that outline how code should be written and organized. As you read through these guides, you can get an idea for how code is written at the respective companies.
For one main reason: Everyone writes code differently. I may like to do something one way, and you may like to do it a different way. That’s all fine and dandy as long as we each work on our code. But what happens when you have 10, 100, or even 1,000 developers all working on the same codebase? Things get messy very quickly. Style guides are created so new developers can get up to speed on a code base quickly, and then write code that other developers can understand quickly and easily!
You can view Airbnb’s style guide on GitHub.
You can view Google’s style guide on GitHub.
All code in any code-base should look like a single person typed it, no matter how many people contributed.
You can view the Idiomatic style guide on GitHub.
This style guide is used by many tech companies including NPM, GitHub, mongoDB, and ZenDesk.
You can view the jQuery style guide on their website.