Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I half agree here. Especially in Python applications, so often you so a class that is instantiated only once. I'm not sure if this is overly usage of OOP or DRY, but defining a whole class just to be instantiated once seems like a very verbose abstraction to me. There's nothing wrong with a few functions to group code together and leave it at that.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: