Re:Don't Name Classes After Patterns. Mostly
by heavenlyblue on Sunday August 23, 2020 @12:59PM
(#24253272)
> restoreDatabase
It may do anything because it was probably written by an intern
It may do anything because it was probably written by an intern
This is especially important in pure C. If OOP-style programming is adopted, databaseRestore() can be strictly interpreted as a method of the Database class without ambiguity, and its first parameter is the object the operation is applied onto. In a sense, even old C & POSIX functions such as fopen(), fclose(), fseek() can be seen as a rudimentary form of OOP. On the other hand, restoreDatabase() may perform other operations that change the state outside of the database object.