OOP and average programmers!
-
Hallo, I try to programm all my programming tasks using OOP. It's so convienent to extend functionality through classes and add new features through inheritage. Also it's easy to plan and control the development with the help of OOP. I think I do not produce too much bad code using OOP. The negative side effect: The programs tend not to be effective and fast. :(( But: maybe I am just an average or weak programmer. Maybe I just use OOP because I am not able to plan a program carefully enough before starting coding. Maybe OOP just covers up my bad design. :doh: Is OOP just good for the average and weak programmer. Is it possible to produce more efficient code not using OOP? Chris ;) -- modified at 23:38 Sunday 19th February, 2006
-
Hallo, I try to programm all my programming tasks using OOP. It's so convienent to extend functionality through classes and add new features through inheritage. Also it's easy to plan and control the development with the help of OOP. I think I do not produce too much bad code using OOP. The negative side effect: The programs tend not to be effective and fast. :(( But: maybe I am just an average or weak programmer. Maybe I just use OOP because I am not able to plan a program carefully enough before starting coding. Maybe OOP just covers up my bad design. :doh: Is OOP just good for the average and weak programmer. Is it possible to produce more efficient code not using OOP? Chris ;) -- modified at 23:38 Sunday 19th February, 2006
dl4gbe wrote:
Maybe OOP just covers up my bad design.
Maybe. OOP doesn't have anything to do with your program not being effective and fast. Bad software tend to be the result of bad planning and lazy programming. My suggestion is to understand what you're doing instead of simply getting the job done. Edbert Sydney, Australia
-
Hallo, I try to programm all my programming tasks using OOP. It's so convienent to extend functionality through classes and add new features through inheritage. Also it's easy to plan and control the development with the help of OOP. I think I do not produce too much bad code using OOP. The negative side effect: The programs tend not to be effective and fast. :(( But: maybe I am just an average or weak programmer. Maybe I just use OOP because I am not able to plan a program carefully enough before starting coding. Maybe OOP just covers up my bad design. :doh: Is OOP just good for the average and weak programmer. Is it possible to produce more efficient code not using OOP? Chris ;) -- modified at 23:38 Sunday 19th February, 2006
As the other guy said. Focus on the job being done nicely instead of writing OO code. Code efficiency (that is: 1. maintainability, 2. performance, 3. reusability) should be your primary goals. OO should just come naturally. Don't worry if it doesn't, I guess it just take a bit of getting used to it.
-
Hallo, I try to programm all my programming tasks using OOP. It's so convienent to extend functionality through classes and add new features through inheritage. Also it's easy to plan and control the development with the help of OOP. I think I do not produce too much bad code using OOP. The negative side effect: The programs tend not to be effective and fast. :(( But: maybe I am just an average or weak programmer. Maybe I just use OOP because I am not able to plan a program carefully enough before starting coding. Maybe OOP just covers up my bad design. :doh: Is OOP just good for the average and weak programmer. Is it possible to produce more efficient code not using OOP? Chris ;) -- modified at 23:38 Sunday 19th February, 2006
My take on it is this: If you really do have weak design skills, then OOP actually helps you to end up with a better program than you would end up with otherwise. It provides a boost for your skills. OOP was created in the first place to make extremely complex programs be understandable by mere humans. So, in my opinion, it can help you produce a program that is more advanced than you could produce without OOP. :cool: Good luck, Rich
-
Hallo, I try to programm all my programming tasks using OOP. It's so convienent to extend functionality through classes and add new features through inheritage. Also it's easy to plan and control the development with the help of OOP. I think I do not produce too much bad code using OOP. The negative side effect: The programs tend not to be effective and fast. :(( But: maybe I am just an average or weak programmer. Maybe I just use OOP because I am not able to plan a program carefully enough before starting coding. Maybe OOP just covers up my bad design. :doh: Is OOP just good for the average and weak programmer. Is it possible to produce more efficient code not using OOP? Chris ;) -- modified at 23:38 Sunday 19th February, 2006
Hello OOP always involves overhead. You always only use parts of an object. So everything you do not use is waste of resources. I guess I could produce more effective programs (in term of speed and memory consumption.) not using OOP But: In my case, Not using OOP always ends up in Spaghetti Code. So, I guess I have to stick with OOP, so my code is readable, reusable, extendable. My colleges are using Pearl and C non object oriented. I always complain their code is unreadable. But often their programs are more effective in term of memory and speed than my programs written in .Net. :((
-
Hallo, I try to programm all my programming tasks using OOP. It's so convienent to extend functionality through classes and add new features through inheritage. Also it's easy to plan and control the development with the help of OOP. I think I do not produce too much bad code using OOP. The negative side effect: The programs tend not to be effective and fast. :(( But: maybe I am just an average or weak programmer. Maybe I just use OOP because I am not able to plan a program carefully enough before starting coding. Maybe OOP just covers up my bad design. :doh: Is OOP just good for the average and weak programmer. Is it possible to produce more efficient code not using OOP? Chris ;) -- modified at 23:38 Sunday 19th February, 2006
Hi Chris, I would recommend to look into the following book: Craig Larman "Applying UML and Patterns : An Introduction to Object-Oriented Analysis and Design and Iterative Development" (3rd Edition) http://www.amazon.com/gp/product/0131489062/sr=8-1/qid=1140426442/ref=sr\_1\_1/104-8162030-4383146?_encoding=UTF8 The major difference between this book and other books, is that it outlines what exactly is important, what you should pay attention to during OOP and most important HOW you construct your classes so that your program is efficient, reusable and easy to maintain. On top of it, the book introduces OOP in the context of the iterative development process. Take a look at its amazon ranking, other people seem to like it as well as me. Nick