News for hackers. Stuff that matters.
Re:Python is becoming the world’s most popular programming l... by 3rdAccount on Wednesday October 10, 2018 @07:06AM (#18183727)
I've seen short python programs (5 pages of code) mutilated with over architecture and boiler plate from a Java dev. The great thing about python is that short scripts of a few pages don't necessarily need a class if you're doing something super basic.
Re:Python is becoming the world’s most popular programming l... by collyw on Thursday October 11, 2018 @07:04AM (#18192430)
Agreed. An ex Java guy I was working with asked me how yo do a singleton in Python. I had to google it because I had never thought of the problem before. As the answer said a module with functions is essentially a singleton. No need to overcomplicate things.