4 ms·
I think another major problem which people do not mention too much is that the ruby community went pretty deep in the whole solid principles, uncle Bob refactor
by ilrwbwrkhv 3y ago
I think another major problem which people do not mention too much is that the ruby community went pretty deep in the whole solid principles, uncle Bob refactoring rabbit hole.
Because of that a lot of people still have major bad practices set in their heads such as a method shouldn't be longer than 5 lines etc.
Most rails code bases that I have seen usually has had a senior ruby lover refactor things in such a way that one thing is always calling another thing and even though the actual working business logic might be 12 lines which should have been linearly written, is spread across 5 files with objects being new'd up everywhere making it really hard to follow.
- jupp0r 3y agoMost Ruby code I've worked with does not follow SOLID principles. Especially the Liskov substitution principle is almost never adhered to when using inheritance as a way of code sharing.
- chris12321 3y agoMost code doesn't follow SOLID principles.