Wow. I didn't know programming by exception is how things are done in Python. Even PHP avoids and discourages this practice. Crazy. It seems to me that there's got to be a better way to do this than what's coded here?
Yeah, IMO mainly because there's so much repetition. So it'd be better to use a function or defaultdict or something, instead of having to repeat yourself every time.
View all comments
Show parent comment
-4
u/RyanNerd shameless Jul 14 '21
Wow. I didn't know programming by exception is how things are done in Python. Even PHP avoids and discourages this practice. Crazy. It seems to me that there's got to be a better way to do this than what's coded here?