4 ms·
> I wonder if functional programming can escape the traps Object Oriented programming fell into? I'm not sure I would agree that OO has "fallen into a trap". I
by Silhouette 16y ago
> I wonder if functional programming can escape the traps Object Oriented programming fell into?
I'm not sure I would agree that OO has "fallen into a trap". I think OO, whether the Kay version or the C++/Java/whatever version, takes a certain approach: essentially, that one entity in any operation is considered "special". This approach can work nicely in some applications, such as a lot of GUI design work, but doesn't fit into all contexts as neatly.
That means sometimes building your design in an OO fashion is helpful, and sometimes it gets in the way. The interesting question is whether, for any given project, the benefits of the helpful side outweigh the hassle of working around the structure when it isn't helpful.
I think in the early days of OO, a lot of people assumed without evidence that the balance was usually on OO's side. Today, as other approaches with other abstraction tools are more widely known and once trendy ideas like Singletons have had their practical weaknesses revealed through experience, many of us wouldn't take the same bet.
- stcredzero 16y agoI don't know what to think of Singleton being a trendy idea. Then again, I guess screwdrivers were a trendy idea once. (The hardware thing, not the drink, though it applies there as well.)
- Silhouette 16y ago> I don't know what to think of Singleton being a trendy idea. I suppose, like Agile processes and OO, Design Patterns introduced some ideas with real merit, but some people got way too hung up on the less meritorious ideas that came along for the ride.