Post Reply 
C++ Was a Joke
03-05-2014, 06:35 AM
Post: #8
RE: C++ Was a Joke
(03-04-2014 09:42 PM)Garth Wilson Wrote:  I've read various descriptions for what the parts of OOP are, watched YouTube videos on OOP, and none of it has ever really made any sense to me, at least as presented.
About 30 years ago I attended a lecture of Niklaus Wirth based on his book: Algorithms and Data Structures. It showed me how both are inherently related. If the data can be structured well to a given problem the program is usually much simpler.
OOP combines both: an object is data together with processes. Years later I realized that a closure is a dual concept: a function with related data. Thus both are similar: just looking from a different angle.
We don't have much structure in FOCAL programs: no proper names for variables, no types, at least some kind of array, just GTO and XEQ. Thus programs for difficult problems tend to become hard to write and read. This is very similar to assembler programming.
Analogies for OOP from the real world (e.g. animals, cars, ...) didn't help me to understand the concept. Geometric shapes were even a bad example as they violated the Liskov substitution principle. But it was easy once I knew what's going on under the hood.

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
C++ Was a Joke - Dave Frederickson - 03-04-2014, 05:27 PM
RE: C++ Was a Joke - HP67 - 03-04-2014, 06:10 PM
RE: C++ Was a Joke - Garth Wilson - 03-04-2014, 09:42 PM
RE: C++ Was a Joke - Han - 03-04-2014, 10:05 PM
RE: C++ Was a Joke - Thomas Klemm - 03-04-2014, 11:20 PM
RE: C++ Was a Joke - Thomas Radtke - 03-08-2014, 11:07 AM
RE: C++ Was a Joke - Thomas Klemm - 03-05-2014 06:35 AM
RE: C++ Was a Joke - pascal_meheut - 03-04-2014, 10:24 PM
RE: C++ Was a Joke - Garth Wilson - 03-04-2014, 10:35 PM
RE: C++ Was a Joke - Garth Wilson - 03-05-2014, 09:47 AM
RE: C++ Was a Joke - HP67 - 03-05-2014, 10:57 AM
RE: C++ Was a Joke - Tugdual - 03-05-2014, 07:34 PM
RE: C++ Was a Joke - David Hayden - 03-05-2014, 09:11 PM
RE: C++ Was a Joke - Joe Horn - 03-08-2014, 10:45 AM
RE: C++ Was a Joke - Marcus von Cube - 03-09-2014, 12:28 PM
RE: C++ Was a Joke - Howard Owen - 03-10-2014, 01:43 AM
RE: C++ Was a Joke - Sylvain Cote - 03-10-2014, 03:11 AM
RE: C++ Was a Joke - Marcus von Cube - 03-14-2014, 10:40 PM



User(s) browsing this thread: 1 Guest(s)