Using code conventions

Many languages or software companies have standardized the way we format the code we write. These are called code conventions, and in this lesson, we’ll take a look at what they are.

Most programming languages have code conventions, which are recommendations for how we’ll organize our files, indent our code, format comments, and use naming conventions, just to mention a few.

These aren’t rules, but a recommended code style. The idea is that if all programmers using a language use the same code conventions, their code will look more or less the same. This means that if you know the conventions, it’s easier for you to navigate the code and read it. Therefore, it’s essential to learn the conventions for every programming language you’re using.

We’ll take a look at some typical conventions and see how they differ among a couple of languages.

Get hands-on with 1200+ tech skills courses.