Thread: OOP v Procedural

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    60

    OOP v Procedural

    I began learning programming in C++ recently(last 6months) and I have found it to be very intuitive. Of course I have ventured into the world of win32 programming in an attempt to understand the fake fragile empire of MFC. I have not much idea about either @ this stage!
    My problem is with ownership of data. It just doesn't seem to gel with me in "c". Am I not too bright???

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    You would be "not too bright" if you quit now. Continue studying C++ and OOP paradigm.

    Kuphryn

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    36

    Thumbs up OOP

    OOP is just great... !!! This makes C++ "C++".
    I just started learning OOP. It might be kinda hard and little frustrating (well thats what I felt! ) in the beginning but you'll find it charm... as you go along with it... I'm really enjoying my OOP class! One woluldn't master C++ without knowing OOP.
    Good Luck! (y).
    will be there one day!

    I usually use VStudio 6!

  4. #4
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Originally posted by kuphryn
    You would be "not too bright" if you quit now. Continue studying C++ and OOP paradigm.

    Kuphryn
    Exactly... You have to continue learning C++.
    none...

  5. #5
    To use Procedural code over OO code would be like operating Windows without a mouse. You can... but it sucks.
    "There's always another way"
    -lightatdawn (lightatdawn.cprogramming.com)

  6. #6
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Originally posted by lightatdawn
    To use Procedural code over OO code would be like operating Windows without a mouse. You can... but it sucks.
    I don't know if I agree with that analogy, but I understand that you were trying to prove a point.

    If you are making a small little app that you know will never get large, using OOP is almost a waste of time. The time needed to code an entire class and then use 1 instance of it would be pointless. In this case, I would program procedurally. Any project that could amount to something of size, I would use OOD definately.

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    its not always about the size though, its good to use OOP just for the sake of practice when your learning. the more you use OOP the more comfortable you will be with it.

  8. #8
    Registered User
    Join Date
    Feb 2003
    Posts
    60

    Missunderstanding...!

    I was actually trying to express that I found procedural programming difficult because I began with C++. I am afraid I have misslead people unwittingly! My point is that learning win32 is seemingly a "C" experience and I find that a bit of a step backwards from the easy 'pick your device and play with it' approach of C++.
    I wish MFC was a completly new system(Sorry about windows reference in the general C++ forum) but it's shakily built on top of a decidedly non OOP foundation. It's hard to learn! But it does show the power of C++, in that it can even make a non OOP language into an OOP overnight(metaphorically typing!)
    Thanks for the support by the way. It's easy to get discouraged in this area, and none of my local friends are into this stuff, so coming here and learning and sharing is an enormous priveledge.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OOP flu
    By Hussain Hani in forum General Discussions
    Replies: 15
    Last Post: 06-27-2009, 02:02 AM
  2. Data Mapping and Moving Relationships
    By Mario F. in forum Tech Board
    Replies: 7
    Last Post: 12-14-2006, 10:32 AM
  3. recommendation for a good OOP book
    By Mario F. in forum C++ Programming
    Replies: 2
    Last Post: 06-15-2006, 04:28 PM
  4. OOP Theory Question
    By Zeusbwr in forum C++ Programming
    Replies: 2
    Last Post: 10-30-2005, 08:37 AM
  5. Switching from procedural to OOP
    By Thantos in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 04-04-2004, 10:08 PM