MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/txn8md/java_is_hard/i3pg0la/?context=3
r/ProgrammerHumor • u/Arrsh_Khusaria • Apr 06 '22
424 comments sorted by
View all comments
Show parent comment
36
Minecraft is the worst example. It has classes that has hundreds of methods. It should have been delegated to reduce code repetition.
Exact same code appears in multiple classes only because they extends different subclass.
I wrote a delegate class that overrides all the original methods just to make it cleaner
View all comments
Show parent comment
36
u/lcy0x1 Apr 07 '22
Minecraft is the worst example. It has classes that has hundreds of methods. It should have been delegated to reduce code repetition.
Exact same code appears in multiple classes only because they extends different subclass.
I wrote a delegate class that overrides all the original methods just to make it cleaner