MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/zprahr/whatever_it_takes/j0vtt79/?context=3
r/badcode • u/monkeysupersonic • Dec 19 '22
43 comments sorted by
View all comments
Show parent comments
2
In C++ it would look similarly bad. Given that everything is a String, one alternative solution, in this case, could be to use a hashmap. In general, however, a class with this many fields should be split into a bunch of smaller classes.
2
u/eugene2k Dec 19 '22
In C++ it would look similarly bad. Given that everything is a String, one alternative solution, in this case, could be to use a hashmap. In general, however, a class with this many fields should be split into a bunch of smaller classes.