I try to learn C# and it said that it is a good practice to limit 25 lines of code in one function. If it is more than that, you have to break into another function. What about C++? Do we have such advice? What is the limit to put lines of code in one function in C++?
In C#, code like this:
is bad. The good one is like this:Code:int main() { Detroit_Pistons() { } }
But if I were not mistaken, in C++ both style are good. So I just wonder why C# developers are such weird people?Code:int main() { Detroit_Pistons() { } }