News for hackers. Stuff that matters.
Re:I Love Ruby by ilrwbwrkhv on Tuesday December 19, 2023 @08:41AM (#38695388)
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.

Re:I Love Ruby by jupp0r on Tuesday December 19, 2023 @02:04PM (#38699998)
Most 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.
Re:I Love Ruby by chris12321 on Thursday December 21, 2023 @08:54PM (#38729976)
Most code doesn't follow SOLID principles.