
Clean Code – Formatting Matters
Coding Blocks
00:00
Is There a Better Way to Line Up Your Code?
As you get into a scope, whether it's an f block or a wile loop or something like that, you just indent. You should always do that so that people can look at your code and understand what in the world's going on. I feel like this is already a code smell. Thet one, you're indented to four levels, and then two. It's so complicated that you need to have print statements in there to see what it's doingta,. That's a coat smell. Already, i wouldn't even say coat smell you ever had a trigger and you needed to check the nest levels or please.
Transcript
Play full episode