From the course: Agile Software Development: Clean Coding Practices

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Indendation and bracket placement

Indendation and bracket placement

From the course: Agile Software Development: Clean Coding Practices

Start my 1-month free trial

Indendation and bracket placement

- [Instructor] Unless you're working with a language that enforces strict indentation rules such as Python, you have a lot of freedom with how you indent your code. Indentation decisions can have a big impact on readability. Let's learn some rules for ensuring that your code is indented in a way that makes it easy to read. It's super important to be consistent when choosing an indentation scheme. Mixing and matching different indentation rules across your code base is going to make things very confusing for anyone who reads your code later. The first decision that you need to make is whether to use tabs or spaces. Again, avoid mixing and matching these. If you're going to intend with tabs, then use tabs for all indentations. This is super important because different text editors display tabs differently. Some text editors will use the equivalent of two space characters for a single tab character, like the one we have here.…

Contents