Quote:
Originally Posted by fowlplay4
See the thing about my example is, by using accessors and mutators to work with your information, you can easily change it over from a DB-Flag system to SQLite with minimal trouble.
|
Quoted for truth.
A good script design is one that lets you switch out how you are accessing your data with no effect in the rest of your code.
SQLite is not a solution for all problems and, in fact, is overkill 90% of the time.
Designing your code like fowlplay4 just did lets you switch it over to SQLite in the future if you need to for some reason.