Sunday, October 19, 2025
Python Modules vs Classes
I faced a dilemma about when to use modules versus classes. I realized that if you only need a single instance of something, a module level variables is often the better choice. However, if you need to create multiple objects with the same structure, a class is more appropriate.
Subscribe to:
Post Comments (Atom)
Python Terminal Animation for Waiting
A nice small tool for terminal animations from yaspin import yaspin with yaspin(): do_stuff()
-
It is difficult to create robot that cleans our arbitrary dirty dishes. However , if we put some digital information on dishes (special des...
-
Real Time Transcription: In TV channels I realize that text is a little bit coming late after the speech. So , I think they are using...
-
Layoffs from cloud companies Amazon, Google and Microsoft is fade of Web2. But Metaverse is failed attempt to create Web3 so far. My perspec...
No comments:
Post a Comment