Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2003 01:46:10 -0500
From:      "Marty Leisner" <leisner@rochester.rr.com>
To:        Lucas Holt <luke@foolishgames.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Newbie: The C / C++ Issue 
Message-ID:  <200311130646.hAD6kAw04271@gateway.home>
In-Reply-To: Message from Lucas Holt <luke@foolishgames.com>  <2721593A-1582-11D8-BB00-0030656DD690@foolishgames.com> 

next in thread | previous in thread | raw e-mail | index | archive | help

My take on computer science (which is an oxymoron) is this:

Researchers look at successful programmers and try to figure out
what they're doing.

In the 70s, it was "structured programming".

In the late 80s it was "object oriented".


You can manipulate the data with a struct -- put in function pointers
to methods -- which is a crude way to do polymorphism.

Don't forget -- cfront translated C++ into C code...

OO doesn't promote reuse -- good design promotes reuse.  I've been
reusing code for years.   I'm like Will Tracz -- a used program salesman ;-)
I've reused a lot of procedural code.

One of my coworkers took a C++ course, renamed her "structs" to "classes"
and thought she was doing object-oriented stuff...please...!!

The bottom line is can other people understand your program.
What I've seen is you have far less of a chance in C++ than in C.
I've recently read Stroustrup's book and got more involved in C++ --
it seems the principle of least surprise was thrown out the window.


marty



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311130646.hAD6kAw04271>