News for hackers. Stuff that matters.
Re:Queueing Theory: An introduction for software development by dlisboa on Monday September 18, 2023 @09:26AM (#37555778)
Set theory might seem almost mundane in many cases, but it's really powerful to express certain solutions in a very concise way. I've refactored code into much simpler code by just thinking about it in terms of set manipulation, vastly reducing the number of classes/tables necessary. Operations became self-explanatory (it's "just a set").

It also gives you a good foothold to realize whether the solution works or not into the future, a bit of a barebones formalism. You get to play with it in math terms before writing any code. This particular refactoring became the only thing in the codebase that didn't need to change as new requirements came along.

Re:Queueing Theory: An introduction for software development by hiAndrewQuinn on Monday September 18, 2023 @09:55AM (#37556167)
Good pick, I'm a big fan of using set() in Python. The fact that they're unordered and do not allow duplicates communicates a lot about the nature of the problem you're working with.