I came across something like the following code recently and ended up refactoring it to make it much simpler. Let’s take a look at what the original developer was trying to do. In the first statement, a new list of dictionaries is being created and stored in the result variable. Then an empty set is […]
The post Code Odour: Using Both a List and Set Instead of Just a Dict appeared first on Matt McCormick.