r/programminghorror • u/SocksOnHands • Feb 25 '26
Object Oriented Design: Pokemon
I don't know how to properly post a link to a video, but check out this over engineered, overly complicated and confusing design for an object oriented Pokemon battle system that can't actually support all the gameplay mechanics of a real Pokemon battle: https://youtu.be/CyRtTwKeulE?si=iZqoCPxjv1QU3ZJt
I don't have anything against object oriented design if done well, but when you start implementing classes for simple logical operations like AND and OR, you're probably going down the wrong track.
0
Upvotes
View all comments
Show parent comment
2
u/cubic_thought Feb 25 '26
As always, the one true development pattern for avoiding refactoring is:
1v1 battles only? Design choice
Naming your fakemon NULL crashes the game and corrupts your save file? Feature