About indentations | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

About indentations

I've been wondering how many indentation levels (for example writing loops in loops in loops etc.) are the limit style-wise? Where is the point where you think: 'Alright, too much local complexity, let's write another function for this'? Is there a rule of thumb for that?

1st Aug 2018, 4:04 PM
HonFu
HonFu - avatar
1 Answer
+ 7
I would say anything that keeps you hitting the 80-char width limit in lines is already too deeply nested :)
1st Aug 2018, 10:10 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar