These are our tracks which document tips and tricks we personally use in our programs to solve problems before they happen, make life easier, and end up with cleaner and faster code. Each article will have snippets, an explanation of the trick, and what problem the trick solves so you can use it yourself. These articles are meant for intermediate developers looking to push their skills to the next level by using less code to do more.
These will tend to be on the higher-level side of things where the code is simple and the positive influence on your codebase is outsized when wielded correctly.
-
Python Tip: Global, auto-incrementing IDs for class instances WITHOUT module-scope variables
This will be a short one, but it’s something you can easily apply to your own code when managing objects that must be indexable by an ID or be referenced in some downstream code. Recently, one of our developers wrote an entity system in a Python game server that they purpose-built for a toy game,…
-
Python Tip: Global, auto-incrementing IDs for class instances WITHOUT module-scope variables
This will be a short one, but it’s something you can easily apply to your own code when managing objects that must be indexable by an ID or be referenced in some downstream code. Recently, one of our developers wrote an entity system in a Python game server that they purpose-built for a toy game,…