News for hackers. Stuff that matters.
Re:Untangling the God Object by mdparker89 on Thursday September 04, 2014 @08:45PM (#8271685)
I've seen this in iOS code. I think it's partly because MVC gets pushed so hard. For a new programmer, it seems as if the code has to fall in to one of those three buckets. Views and view controllers change pretty frequently so there's only one place left.
Re:Untangling the God Object by zem on Thursday September 04, 2014 @08:52PM (#8271709)
yep, that was a large problem in the early days of rails too, where everything got pushed into the model simply because it was neither a view nor a controller.
Re:Untangling the God Object by donw on Thursday September 04, 2014 @08:55PM (#8271725)
Exactly. A lot of people learn to code for practical reasons -- which is great -- and cut their teeth on a Rails or iOS app, where there are a set number of "buckets" for where code goes.

The idea of just creating other objects out of rainbow tears and unicorn dust doesn't naturally flow from this style of learning to program. :)

Re:Untangling the God Object by girvo on Thursday September 04, 2014 @11:19PM (#8272151)
Amen. PHP had the same problem, and in some cases still does, but thankfully I'm seeing more and more developers (and more and more projects I'm working on here at work) where it's all Plain Old (language) Objects with some nice sprinklings of proper libraries to get stuff done. What's lovely about that is everything ends up being completely unit-testable without much extra effort. It also means I get to use proper OOP architecture yay!