I wonder if anyone even uses the VNDB binding but here goes. I'm an effort to bring upgrades, I'm thinking about borrowing some of my encapsulations from the MAL design for get and set. Set and Get are super complicated queries and I've thought about how to make them better. I decided I can make them somewhat easier on the programmer by using a structure and some Enums. Essentially, this would allow the programmer to create an instance of a Set object that you would assign variables to and then internally I can convert those values into a proper query. So for instance:
a = SetCmd()
a.type = stype["votelist"]
a.id = 122
a.fields # would just show vote
a.fields.vote = 25
Would this interrupt anyone's work flow? Does it make it better? Worse?
I wonder if anyone even uses the VNDB binding but here goes. I'm an effort to bring upgrades, I'm thinking about borrowing some of my encapsulations from the MAL design for get and set. Set and Get are super complicated queries and I've thought about how to make them better. I decided I can make them somewhat easier on the programmer by using a structure and some Enums. Essentially, this would allow the programmer to create an instance of a Set object that you would assign variables to and then internally I can convert those values into a proper query. So for instance:
Would this interrupt anyone's work flow? Does it make it better? Worse?