Good vs. Evil

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
51 Today I learned how to use C#'s is statement.

This allowed me to greatly simplify how State is stored. Rather than needing one dictionary for every type I can store it all in 1 and use a good amount of generics and some wrappers to still have access to every type I could ever need.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
50 Nice. Simplification is good.
51 I'm not sure if it is simpler, considering I now need a lot of generics. However, it does mean I have a lot less code duplication. So... a bit less KISS in order to make the code a lot more DRY.

Though, the biggest reason of this being less KISS is because of generics, which I personally think aren't too hard?
 

duckfan77

Popular Member
Mar 18, 2013
80
683
118
50 Less duplication is always nice, I've made new classes to avoid it in the past, since it makes it easier to update and make more things using it in the future.