Hello again wizards!
Having kicked off my chatbot (It works! Happy dance!), I've turned my attention to the automatic sorting hat as a web app.
I have 9 different developers with 9 different sets of locations and qualifications. Instead of building basic rules with a few exceptions for the quirky ones, I'm building all of the tedious rules in for every developer, so even the quirkiest one is just another cog in the wheel for processing. I wish there was a better way to process things than a nested if sequence, but that's probably the best I have.
I've opted to create a Developer class and write each individual is an instance of that class. It seems like this should save time, because the processor will only be accessing a piece of each object at a time. My concern is that the object now has 20+ variable assignments and most of those assignments are dictionaries. When it comes time to tie everything together, I don't want my code to slow down from having to push all of those instances around.
Is object-creation the most efficient way to do this, and will it slow down my code?