About indentations | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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