CoCCharGen is...a mess. Too many functions, separate them out.
Design Problem:
Should I
A) just leave all the randomization functions as they are (incredibly long switch statements)
This is easiest obviously, and since this project doesn't really need to worry about scaling, there is no reason to worry about the performance hit from doing it this way.
B) convert them into yaml.
Obviously this would involve a hash of the text, and then the action(s) to take if any (probably using some kind of messaging system). This would be a pain, but also makes it easier to convert this into a different language later if I want to. Probably go this route just for experience
CoCCharGen is...a mess. Too many functions, separate them out.
Design Problem:
Should I
A) just leave all the randomization functions as they are (incredibly long switch statements)
This is easiest obviously, and since this project doesn't really need to worry about scaling, there is no reason to worry about the performance hit from doing it this way.
B) convert them into yaml.
Obviously this would involve a hash of the text, and then the action(s) to take if any (probably using some kind of messaging system). This would be a pain, but also makes it easier to convert this into a different language later if I want to. Probably go this route just for experience