Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #3400
| From | "Charles Hottel" <chottel@earthlink.net> |
|---|---|
| Newsgroups | comp.programming |
| References | <ko5341$heu$1@news.albasani.net> <f944fd26-df63-4dc1-ba36-7af2b8062015@googlegroups.com> <koaao7$iec$2@news.albasani.net> |
| Subject | Re: Object oriented programming? |
| Date | 2013-05-31 12:12 -0400 |
| Message-ID | <ReOdnVRP6v1lVjXMnZ2dnUVZ_gWdnZ2d@earthlink.com> (permalink) |
"root" <NoEMail@home.org> wrote in message news:koaao7$iec$2@news.albasani.net... > rugxulo@gmail.com <rugxulo@gmail.com> wrote: >> Hi, >> >> On Wednesday, May 29, 2013 9:25:05 AM UTC-5, root wrote: >>> >>> My programming experience began before the advent of Object >>> Oriented Programming so the concepts are vague to me. It would >>> help if someone could sketch out how OOP would enter into some >>> of tasks I have done. >>> >>> (snip) >>> >>> How do OOP concepts come into such program design. >>> >>> Thanks for any help. >> >> Try reading these two .PDFs (first one is only a few chapters, >> second is a whole book): >> >> 1). http://edn.embarcadero.com/article/20803 >> http://edn.embarcadero.com/article/images/20803/TP_55_OOP_Guide.pdf >> >> 2). http://www.ssw.uni-linz.ac.at/Research/Books/ >> http://www.ssw.uni-linz.ac.at/Research/Books/Oberon2.pdf > > Thanks, I downloaded the documents and will take a look. I > have a number of books on C++, but what I really need > are programming examples for the types of programs I > write, not large multi-programmer environments. > > I have a suspicion that I am asking the question > "why would anyone ever need arrays" if all they > had programmed up to this point were scalar variables. The book "Design Patterns, Elements of Reuseable Object-Oriented Software" by Gamma, Helm, Johnson and Vlissides contains in Chapter 2 "A Case Study: Designing a Document Editor". It discusses the kinds of objects and patterns that you might want to use. However no computer code for the design is presented. In the rest of the book the examples are in C++, but hey are not complete programs. I would suggest looking at a library copy before buying it. When I first tried to read this book I had only a theoretical knowledge of OO concepts and I found out that that was insufficient. For me the best way to obtain working knowledge familiarity with OO was to learn a language like Java or C# followed by "Head First Design Patterns" by Freeman, Bates and Sierra which has Java code examples (I believe C# examples can be found on the web). I needed to associate in my head, the concepts with concrete code examples before I could appreciate that design patterns are at the heart of OO programming. I know Java but not C# although I have heard they fairly analogous. I know a little C++ and while it is a powerful language, based on my experience Java or C# are easier to learn. YMMV. When coming from a non-OO programming background you need to keep an open mind. Non-OO languages may seem better to you because of funcionality built into the compiler. For example if you know COBOL then the combination of PICTURE clause and MOVE statements may seem superior to creating and edit pattern object and a string object and passing them a parameters to a method. The COBOL EVALUATE statment may seem better than the Java switch statement. OO programming may not seem better to you at first but if you stick with it you can learn to appreciate that it is better in some ways. For example in non-OO if you need multiple stacks you craft them both by hand, but in OO you craft one Stack class and you can use the constructor of that class to create as many stack objects as your program needs. Of course Java comes with a library of such classes which you usually just use instead of creating your own. After all of this you may still prefer non-OO to OO but if you are flexible enough in you thinking you can see the strong and weak points of each paradigm. OO is not everyones cup tea but it does have its advantages if you look for them.
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Object oriented programming? root <NoEMail@home.org> - 2013-05-29 14:25 +0000
Re: Object oriented programming? Melzzzzz <mel@zzzzz.com> - 2013-05-29 18:19 +0200
Re: Object oriented programming? root <NoEMail@home.org> - 2013-05-30 13:51 +0000
Re: Object oriented programming? Melzzzzz <mel@zzzzz.com> - 2013-05-30 19:48 +0200
Re: Object oriented programming? Patricia Shanahan <pats@acm.org> - 2013-05-29 09:21 -0700
Re: Object oriented programming? root <NoEMail@home.org> - 2013-05-30 13:56 +0000
Re: Object oriented programming? James Harris <james.harris.1@gmail.com> - 2013-05-29 13:05 -0700
Re: Object oriented programming? root <NoEMail@home.org> - 2013-05-30 14:07 +0000
Re: Object oriented programming? "osmium" <r124c4u102@comcast.net> - 2013-05-30 10:49 -0500
Re: Object oriented programming? James Harris <james.harris.1@gmail.com> - 2013-06-01 12:18 -0700
Re: Object oriented programming? Kicer <a@b.c> - 2013-05-29 22:13 +0200
Re: Object oriented programming? root <NoEMail@home.org> - 2013-05-30 14:22 +0000
Re: Object oriented programming? Kicer <a@b.c> - 2013-06-01 02:54 +0200
Re: Object oriented programming? Patricia Shanahan <pats@acm.org> - 2013-06-01 07:43 -0700
Re: Object oriented programming? Kicer <a@b.c> - 2013-06-05 18:16 +0200
Re: Object oriented programming? rugxulo@gmail.com - 2013-05-30 22:22 -0700
Re: Object oriented programming? root <NoEMail@home.org> - 2013-05-31 14:05 +0000
Re: Object oriented programming? "Charles Hottel" <chottel@earthlink.net> - 2013-05-31 12:12 -0400
Re: Object oriented programming? root <NoEMail@home.org> - 2013-05-31 20:31 +0000
Re: Object oriented programming? "BartC" <bc@freeuk.com> - 2013-06-01 00:59 +0100
Re: Object oriented programming? Willem <willem@turtle.stack.nl> - 2013-06-01 07:54 +0000
Re: Object oriented programming? Jongware <jongware@no-spam.plz> - 2013-06-07 11:05 +0200
Re: Object oriented programming? Paul N <gw7rib@aol.com> - 2013-06-02 13:11 -0700
Re: Object oriented programming? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-06-03 11:06 -0700
csiph-web