CS/SE education topic: WHY do so many books/instructors have students program a student DB/gradebook/etc. as an early exercise, esp in OOP?
My assertion (maybe not 100% right but close I think) is that these are wrong motivating examples for the concepts.
-
-
For example a C++ class "Student" is almost surely wrong, even if you decided to keep the interface and swap in a db-backed implementation.
-
It's wrong because the object lifetime is wrong unless you plan to copy the whole db into your process and keep it there.
-
Instead you probably want some sort of object to represent a query result or changes to go into a transaction. Not to represent the record.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.