Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
quietbritishjim
11mo ago
0 comments
Save
Share
Are people really making classes with a single static method and nothing else? It just feels like filler material.
0 comments
4 comments · 1 top-level
top
newest
oldest
Sohcahtoa82
11mo ago
· 3 in thread
Yes. They probably learned Java first.
callc
11mo ago
+1. I learned Java first, in school and on my own. I needed to unlearn the OOP-first mindset.
AstroBen
11mo ago
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
Jtsummers
11mo ago
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?
j
/
k
navigate · click thread line to collapse