lundi 12 avril 2021

Applying creational design pattern to a project

I want to apply a creational Design pattern to this project -
https://github.com/geohot/corona/ from learning point of view specifically from

  • Singleton
  • Builder
  • Prototype
    Although the project is very small only 3-4 python files. I am unable to figure out what design pattern I could include in it.

Any hints or how should I begin about approaching this. This is a learning exercise so anything simple would be good enough. Should I understand the project first ? This looks like a biology thing
and it seems difficult to get my head around that.
The simplest I could think of is find some object which could be used in a pattern and use it
But what object that could be. As per my understanding of the code it is fetching genome data
and parsing it. one of the functions tells you if the input is a protein or not by looking at the
coded sequence. Just looking at the project it feels too small to include some pattern. Probably if
I could add something to it...

Aucun commentaire:

Enregistrer un commentaire