News for hackers. Stuff that matters.
Re:The Case Against OOP Is Wildly Overstated by dionian on Friday July 31, 2020 @10:54AM (#24009182)
I don't see why the Law of Demeter cannot be adhered to in OOP. I do it every day.
Re:The Case Against OOP Is Wildly Overstated by juniper_strong on Friday July 31, 2020 @08:51PM (#24016227)
Me too. I also violate it every day. Just this day I used System.out.println, for example.
Re:The Case Against OOP Is Wildly Overstated by hderms on Saturday August 01, 2020 @10:55AM (#24020884)
Yeah imo law of demeter shouldn't apply for namespace organization of static, globally relevant functionality. The amount of dots in that case is irrelevant to me because it doesn't really imply changing context in the same way. more like drilling down in a phonebook than calling your neighbor and telling them to call Bob for you