Re:DRY is an over-rated programming principle?
by mmcnl on Thursday July 07, 2022 @03:34PM
(#32018314)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.