music
OSdata.com: programming text book 

OSdata.com

objects

summary

    This subchapter looks at objects.

free computer programming text book project

table of contents
If you like the idea of this project,
then please donate some money.
more information on donating

Google

stub section

    This subchapter is a stub section. It will be filled in with instructional material later. For now it serves the purpose of a place holder for the order of instruction.

    Professors are invited to give feedback on both the proposed contents and the propsed order of this text book. Send commentary to Milo, PO Box 1361, Tustin, California, 92781, USA.

objects

    This subchapter looks at objects.

    “I invented the term Object-Oriented, and I can tell you I did not have C++ in mind.”

—Alan Kay

    “If the particulars are to have meaning, there must be universals.”

—Plato

Ada

    “43 Finally, the language provides a powerful means of parameterization of program units, called generic program units. The generic parameters can be types and subprograms (as well as objects and packages) and so allow general algorithms and data structures to be defined that are applicable to all types of a given class.” —:Ada-Europe’s Ada Reference Manual: Introduction: Language Summary See legal information

    “1 Ada is a programming language designed to support the construction of long-lived, highly reliable software systems. The language includes facilities to define packages of related types, objects, and operations. The packages may be parameterized and the types may be extended to support the construction of libraries of reusable, adaptable software components. The operations may be implemented as subprograms using conventional sequential control structures, or as entries that include synchronization of concurrent threads of control as part of their invocation. The language treats modularity in the physical sense as well, with a facility to support separate compilation.” —:Ada-Europe’s Ada Reference Manual: Section 1: General See legal information

mathematical basis

    At the basis of object oriented programming is the idea of classification.

    Classification is the grouping of things.

    Socrates and Plato proposed in the theory of forms that everything we observe in physical reality is a mere shadow of the Form. The Form is aspatial (transcends space), atemporal (transcends time), and extra-mental (beyond mere thought).

    In philosophy, a concept is the basic idea of form, as proposed by Socrates and Plato. A referent is a specific example of a concept..

    So, the dog would be the concept and Sparky or Fluffy would be the referent.

    The concept is the basic category (in object oriented programming, the class), while the referent is an individual member of the concept (in object oriented programming, the instantiation or instance.

commentary

    A look at the mathematical basis for object oriented programming will reveal an early mistake that has caused a great deal of confusion and messiness to modern implementations.

    Unfortunately, the first attempts dealt with a handful of implementation ideas that fit will with a tree-based structure of classification. This was great for those first experimental attempts, because tree structures were well understood and easy to implement.

    It didn’t take a long time for object oriented programming to be applied to concepts that were not inherently tree-like. This led to messy hacks such as multiple inheritance.

    It is probably way too late for me to suggest that we should introduce a much cleaner non-tree approach that allows for better mapping of real world concepts to computer programs and algorithms.

    Even though it is probably too late to make use of the underlying math, it it worth looking at it.


free music player coding example

    Coding example: I am making heavily documented and explained open source code for a method to play music for free — almost any song, no subscription fees, no download costs, no advertisements, all completely legal. This is done by building a front-end to YouTube (which checks the copyright permissions for you).

    View music player in action: www.musicinpublic.com/.

    Create your own copy from the original source code/ (presented for learning programming).

    Work on this project is very slow because I am homeless. I am available for work if someone can provide an indoor place to work in Costa Mesa, California, electricity, internet connections, a flat raised working surface (such as a table or desk), a sitting device (such as a chair or stool), and a fully functional reasonably modern used computer. I’m already homeless, so you don’t need to pay me (and I understand how much business people hate the minimum wage law). Just give me a chance to work.


return to table of contents
free downloadable college text book

view text book
HTML file

Because I no longer have the computer and software to make PDFs, the book is available as an HTML file, which you can convert into a PDF.

previous page next page
previous page next page

free computer programming text book project

Building a free downloadable text book on computer programming for university, college, community college, and high school classes in computer programming.

If you like the idea of this project,
then please donate some money.

send donations to:
Milo
PO Box 1361
Tustin, California 92781

    At the time I write this message I am a few days from becoming homeless. That will greatly interfere with my ability to create this project, which can help nearly 20 million U.S. college students and more than 150 million students world-wide. I am looking for 30 rich people or corporations willing to donate $10 a month to my church so that the church can provide a place indoors for me to continue work. If you want to donate, please see help project. Thanks much.

Supporting the entire project:

    If you have a business or organization that can support the entire cost of this project, please contact Pr Ntr Kmt (my church)

more information on donating

Some or all of the material on this web page appears in the
free downloadable college text book on computer programming.


I do the news as an unpaid volunteer for KOCI 101.5 FM, Newport Beach/Costa Mesa (also available on the web)


Google


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    †UNIX used as a generic term unless specifically used as a trademark (such as in the phrase “UNIX certified”). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.

    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2010 Milo

    Created: November 1, 2010, 2011

    Last Updated: March 31, 2011


return to table of contents
free downloadable college text book

previous page next page
previous page next page