4 ms·
U am a new developer who is being thought Object oriented design. What is the alternative approach to OO? functional?
by eternalcode 9y ago
U am a new developer who is being thought Object oriented design. What is the alternative approach to OO? functional?
- louthy 9y agoYes, functional. I wasted a good 15 years in the OO world and wish I'd never seen it.
- vim_user 9y agoIf you're a new programmer, I don't think you should start from OO. OO-based languages are built on procedural, structural and imperative programming foundations. Starting from OO may force you to see everything as an object even when it doesn't fit. The less you start off with, the better your understanding will be, and then you should learn to expand your horizons with other programming paradigms: logical, functional, and many others.
- Sundiata 9y agoI know that a lot of universities (mine included) introduce programming through object oriented programming so this could be a problem for a lot of people going into university without much if any programming experience, much like I did. I've been interested lately and reading more about functional programming though.
- detaro 9y agoThrough object oriented programming or through a programming language that can do it? Many programming introductions start with mostly procedural/imperative, while using a language that has OO (and which is then introduced later in detail). Totally agreed on other paradigms not being teached enough though.
- spc476 9y agoOO is more an organizational method than a programming method; it still falls down to being imperative (do this; do that). OO is nice when you have a lot of types and few actions whereas non-OO languages are nice when you have lots of actions and few types. When there are a small number of types and actions, it really doesn't matter which organization method you use, but if you expect the types to grow, use OO. If you expect the actions to grow, don't use OO. If both are expected to grow to large numbers, there still isn't a good organization method yet.