Comment on Python classes aren’t always the best solutionparentComments−quietbritishjim1yAre people really making classes with a single static method and nothing else? It just feels like filler material.−Sohcahtoa821yYes. They probably learned Java first.−callc1y+1. I learned Java first, in school and on my own. I needed to unlearn the OOP-first mindset.−AstroBen1yThis has nothing to do with OOP. A class with a single static method isn't OOPYou can use the 'class' keyword and write your program functionally, or procedurally−Jtsummers1ySo you actually thought you needed, in Python, classes with static methods instead of just plain old modules? What was your first Python "hello world" like?
Comments
Are people really making classes with a single static method and nothing else? It just feels like filler material.
Yes. They probably learned Java first.
+1. I learned Java first, in school and on my own. I needed to unlearn the OOP-first mindset.
This has nothing to do with OOP. A class with a single static method isn't OOP
You can use the 'class' keyword and write your program functionally, or procedurally
So you actually thought you needed, in Python, classes with static methods instead of just plain old modules? What was your first Python "hello world" like?