The most common issue for non-OOP is:
how to prevent conflict of function name when the project becomes extremely huge?
For OOP we can simply put the functions into different classes,but what's the approach for procedure programming?
The most common issue for non-OOP is:
how to prevent conflict of function name when the project becomes extremely huge?
For OOP we can simply put the functions into different classes,but what's the approach for procedure programming?
In C++, without using OOP, you would use namespaces.
In C, people tend to create functions with prefixes (e.g. "sqlite3_some_function_name") and/or marking non-public functions static
.
Anyway, when using long and descriptive names for functions, no two functions will have the same name OR if they do, they're identical and one of them can be removed.