[Tutor] Python scripts: to use class or not — what is the best practice?
Mark Lawrence
breamoreboy at gmail.com
Mon Mar 16 05:23:51 EDT 2020
On 16/03/2020 02:07, Igwe Kalu wrote:
> Hi Community,
>
> I need your feedback on a possibly simple idea.
>
> Python scripts: to use class or not — what is the best practice?<https://softwareengineering.stackexchange.com/questions/406585/python-scripts-to-use-class-or-not-what-is-the-best-practice>
>
> The details of my question are posted on https://softwareengineering.stackexchange.com/questions/406585/python-scripts-to-use-class-or-not-what-is-the-best-practice
>
> I would greatly appreciate your inputs there, thank you.
>
>
> Best regards
> Der Neu PythonMeister
>
Stick with the KISS principle
https://en.wikipedia.org/wiki/KISS_principle so functions in a module
will be fine, only write classes if you really need them.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Tutor
mailing list