If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program
If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program
Linus Torvalds, the creator of the Linux operating system, is known for his no-nonsense approach to software development. He has a reputation for being blunt and straightforward in his communication, often expressing his opinions in a direct and sometimes controversial manner. One of his famous quotes that exemplifies this attitude is, "If you need more than 3 levels of indentation, you're screwed anyway, and should fix your program."This statement reflects Torvalds' belief in the importance of writing clean and maintainable code. Indentation is a common practice in programming that helps to make code more readable and organized. However, excessive levels of indentation can make code difficult to understand and maintain. It can also be a sign of poor design and structure in a program.
Torvalds' advice to fix the program if it requires more than three levels of indentation is a reminder to developers to pay attention to the quality of their code. By keeping code simple and well-structured, developers can avoid potential issues and make their programs easier to maintain and debug in the long run.