(09-06-2016, 01:28 AM)NiLSPACE Wrote: @DrMasik How does it prevent accidental errors?
1. When you are member of team and modify same file - it is hard to merge. In case Git cannot do it automatically.
2. When you are making some enhancement - it is simplest to add functions in separate file. Hello from C++ OOP.
3. When you are looking for bug - it is more efficient to have splitted files to function.
0. When I start programming (1997) no rules and howtos Now - you have many best practices. I like to split one task to one file or more files if needed. Task - it is function. It is from C++
Try yourself and you find it is interesting for you.
I recommend to read books of Bjarne Stroustrup