r/ProgrammerHumor • • Oct 15 '18

A Python programmer attempting Java

Post image
517 Upvotes

78 comments sorted by

View all comments

6

u/[deleted] Oct 15 '18

What is it with python developers and static methods? 🤔

5

u/fedeb95 Oct 15 '18

Since the methods don't modify the state of the class, it makes sense they're static. Also the class has no state at all so it's a utility class. What bothers me is the absence of a private constructor

-1

u/solovayy Oct 15 '18

watch for next refactor add some side effect and all your unit tests break

friendly reminder, don't use static in java, as there is no point

1

u/ZukoBestGirl Oct 15 '18

Say what now? That's wrong on just about every level. Ofc there is a point to static. No language can be moron proof, if you have no idea what you're doing, anything can break anything.