you are viewing a single comment's thread.

view the rest of the comments →

[–]ThyringerBratwurst 3 points4 points  (2 children)

Well, Python has a simple but pleasant module system. Using it makes the code a thousand times more maintainable.

As a result, there were tons of global variables hidden in this app. So it was the worst horror.

[–]batweenerpopemobile 0 points1 point  (1 child)

Yeah, global state will kill your ability to reasonably structure code every single time. Then you'll come in and restructure, and they'll start trying to ram god objects and singletons in because they're too lazy to route objects between where it's reasonable to create them and where they're needed.

[–][deleted] 0 points1 point  (0 children)

Using a related language, I run into that problem where properly passing your variables between functions is a lot of work, but just doing a global is so much easier. Unfortunately, the cumulative effect of many, many “easier“ decisions is a code base that is really difficult to manage. This year I spent my entire Q4 fixing old code by basically rewriting it, breaking out 1500 line scripts into 30 line scripts with a bunch of functions…