[Tutor] Proper SQLite cursor handling?
Alan Gauld
alan.gauld at yahoo.co.uk
Sat Jul 3 06:13:00 EDT 2021
On 03/07/2021 10:02, dn via Tutor wrote:
> now, to run a game, the three steps are self-documenting:
>
> game_parameters = get_game_data_from_DB( db_defns )
> game = SolitaireGame( game_name, other_game_data )
> store_game_results_in_DB( game.results_for_DB() )
>From an OOP perspective I'd change that to:
parameters = GameParameters( db_defns )
game = SolitaireGame( parameters )
game.store()
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list