4 ms·
Is it normal to have 2000+ lines class? Looks like an instant code smell to me.
by dennisgorelik 11y ago
Is it normal to have 2000+ lines class?
Looks like an instant code smell to me.
- spacehome 11y agoHahahahah! Good one, dennisgorelik!
- artichokeheart 11y agoI've seen 10000+ line classes in the corporate world
- dennisgorelik 11y agoI've seen longer classes in the corporate world too. Such code was always buggy and hard to maintain.
- 72deluxe 11y agoWhy? I know one should avoid "god objects" but if the class does a lot, many lines are needed, surely?
- dennisgorelik 11y agoThe whole idea of avoiding "god objects" is exactly in preventing classes from doing a lot. https://en.wikipedia.org/wiki/Single_responsibility_principle https://en.wikipedia.org/wiki/Single_responsibility_principl...