Ciro Santilli
🔗

Excessive encapsulation is the root of much evil | 🗖 nosplit | ↑ parent "Ciro Santilli's software engineering wisdom" | 178

🔗
Some anecdotes.
🔗
Ciro Santilli never splits up functions unless there is more than one calling point. If you split early, the chances that the interface will be wrong are huge, and a much larger refactoring follows.
🔗
If you just want to separate variables, just use a scope e.g.:
🔗
int cross_block_var;

// First step.
{
    int myvar;
}

// Second step.
{
    int myvar;
}
🔗
Ciro has seen and had to deal with in his lifetime with two projects that had like 3 to 10 git separate Git repositories, all created and maintained by the same small group of developers of the same organization, even though one could not build without the other. Keeping everything in sync was Hell! Why not just have three directories inside a single repository with a single source of truth?
🔗
Another important case: Linux should have at least a C standard library, init system, and shell in-tree, like BSD Operating Systems, as mentioned at: Linux.
🔗
🔗