2 ms·
I've noticed that Java's tedium with millions of little files creates an instinctive knee-jerk resistance to creating new classes in new developers. Alternate
by Pxtl 12y ago
I've noticed that Java's tedium with millions of little files creates an instinctive knee-jerk resistance to creating new classes in new developers. Alternately, newbie C++ developers who don't have a good toolset develop a similar fear of adding classes because of concerns they'll miss something in their delicate language.
Never, ever, ever be afraid to add a class. If you've chosen an OOP language, then you have to make classes, and make them willy-nilly. Always better to create a class and then consolidate its commonalities with another class into a common base than to try and shoehorn too much logic into a single class where all its uses are intertwingled together.