Posted by Jacob Wright in General, Javascript, Object Oriented ProgrammingAug 4th, 2005 | No Comments
It's alive!! I have created a very cool, very simple, function to create new javascript objects that are (not just act upon) HTML DOM elements. Let me explain. Say I have a cool new tree menu I'm creating (true story), and I want others to be able to just start creating the menu items and adding them in via javascript if they need to. The ideal way would be to just say myItem = new MenuItem('Cool Item'); and have it return to me the actual menu item (the TR tag or LI tag) which can be inserted into the menu.
No more of this element wrapper stuff. I don't want to code my classes to act upon a...
Posted by Jacob Wright in General, Object Oriented ProgrammingJul 18th, 2005 | 15 Comments
This is the fourth of five articles on object oriented-programming.
An Introduction to Object-Oriented Programming
Thinking Object-Oriented
Planning an Application
Creating Objects
Making Objects Reusable
In the previous three object oriented programming articles written for jacwright.com, we introduced object oriented programming, spoke of thinking about a system object oriented, and discussed the importance of planning, even if only in one's head. The next two articles, Creating Objects and Reusing Objects, delve into the meatier subject of writing objects. We will be discussing how to implement...
Posted by Jacob Wright in General, Object Oriented ProgrammingJun 27th, 2005 | 6 Comments
I recently watched an email discussion comparing object-oriented programming and procedural programming in PHP. I was very surprised to see how many people there are that don’t understand the benefits of object-oriented programming and feel procedural is usually the best tool for the job.
Why Object-Oriented Programming?
The discussion began with a question, “why [do] folks like OOP so much in PHP?” Few of responses attempted to answer the question but most seemed to agree that perhaps OOP is over-rated and used in too many circumstances. I would like to answer that question for anyone...
Posted by Jacob Wright in General, Object Oriented ProgrammingJun 27th, 2005 | 8 Comments
This is the third of five articles on object oriented-programming.
An Introduction to Object-Oriented Programming
Thinking Object-Oriented
Planning an Application
Creating Objects
Making Objects Reusable
Object-oriented programming gives us many new ways to create an application. It makes many things easier to do. One of these things is planning. Planning is an important and oft overlooked part of an application, but it is as essential to the success of the application as the coding of it. Just to clear the air, let me clarify that planning is not necessarily spending months of sketching...
Posted by Jacob Wright in General, Object Oriented ProgrammingJun 20th, 2005 | 4 Comments
This is the second of five articles on object oriented-programming.
An Introduction to Object-Oriented Programming
Thinking Object-Oriented
Planning an Application
Creating Objects
Making Objects Reusable
This is the second of five articles written on object-oriented programming. These articles were originally written for http://www.jacwright.com/ This article was going to be entitled Conceptulizing Systems, but was changed to Thinking Object-Oriented as this title better describes the content of the article. I hope these are of benefit to you.
Real Power
One of the more difficult jumps of...
Posted by Jacob Wright in General, Object Oriented ProgrammingJun 13th, 2005 | 12 Comments
This is the first of five articles on object oriented-programming.
An Introduction to Object-Oriented Programming
Thinking Object-Oriented
Planning an Application
Creating Objects
Making Objects Reusable
An Introduction to Object-Oriented Programming will give a brief overview of why there is such a thing as object-oriented programming. Conceptualizing Systems will help us to better picture a system in terms of objects and how the relate to each other. Planning an Application will teach us the importance of planning and what we should do to plan. Creating Objects explains how the objects in...