473,890 Members | 2,051 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Object Oriented PHP

I am new to PHP, just one day new. But I am otherwise a seasoned
programmer on many other languages like C, VB 6, C#, VB.NET, Win32
platform and have some tiny bit experience in MFC, C++, Python.

All the tutorials I read so far about PHP contain procedural examples.
I haven't yet come accross a tutorial on the object oriented PHP. Could
someone point me to one?

Jun 17 '06
73 4556

"Jim Carlock" <an*******@127. 0.0.1> wrote in message
news:PQ******** ***********@tor nado.tampabay.r r.com...
"Tony Marston" <to**@NOSPAM.de mon.co.uk> and
"Jerry Stuckle" <js*******@attg lobal.net> argued a bunch
about objects, their encapsulated data, and how events
change the nature of the object...

I'm curious as to what the simplest object oriented program
in PHP would be. Either one of you that might be able to
suggest something or provide a demonstration?

Thanks.


I have a small demonstration application which can be accessed from
http://www.tonymarston.net/php-mysql...plication.html, and also its
big brother which can be accessed at http://www.radicore.org/

--
Tony Marston

http://www.tonymarston.net
http://www.radicore.org

Jun 28 '06 #71

"Jerry Stuckle" <js*******@attg lobal.net> wrote in message
news:WJ******** *************** *******@comcast .com...
Tony Marston wrote:
"Jerry Stuckle" <js*******@attg lobal.net> wrote in message
news:HN******** *************** *******@comcast .com...


And OO *REQUIRES* message passing. Non-OO languages do not.

You really ARE dense, aren't you?

Not as dense as you. The principles of OO are features that do not exist
in other languages. Having something which is required instead of
optional DOES NOT MAKE IT A FEATURE. Non-OO languages have had messaging
for decades, so messaging is not a fundamental feature of OO.

Encapsulation, inheritance and polymorphism do not exist in non-OO
languages, so THEY are fundamental principles. Messaging is not. The fact
that OO requires messaging while others do not is totally insignificant.


Not at all. Quite frankly, I really don't care what YOU think. What I'm
worried about are the asinine opinions you foster off onto unsuspecting
beginners.

I agree you are an expert - ex meaning "has been" and spert being a "drip
under pressure". Describes you exactly.

Once you get some REAL WORLD experience under your belt - and I'm not
talking a few web pages - I'm talking about projects with dozens of
programmers and hundreds of K LOC, we can talk again. Until then I'll
just consider you to be the uneducated idiot you are.


The size of project does not determine what is OO and what is not.

That still does not disguise the fact that what you are calling a
fundamental principle of OO is not unique to OO at all, but something which
has been a part of every other language for decades. The fact that it is
required instead of optional is a trivial point which most intelligent
people would not even consider.

--
Tony Marston

http://www.tonymarston.net
http://www.radicore.org

Jun 28 '06 #72
Tony Marston wrote:
"Jerry Stuckle" <js*******@attg lobal.net> wrote in message
news:WJ******** *************** *******@comcast .com...
Tony Marston wrote:
"Jerry Stuckle" <js*******@attg lobal.net> wrote in message
news:HN***** *************** **********@comc ast.com...
And OO *REQUIRES* message passing. Non-OO languages do not.

You really ARE dense, aren't you?
Not as dense as you. The principles of OO are features that do not exist
in other languages. Having something which is required instead of
optional DOES NOT MAKE IT A FEATURE. Non-OO languages have had messaging
for decades, so messaging is not a fundamental feature of OO.

Encapsulatio n, inheritance and polymorphism do not exist in non-OO
languages, so THEY are fundamental principles. Messaging is not. The fact
that OO requires messaging while others do not is totally insignificant.


Not at all. Quite frankly, I really don't care what YOU think. What I'm
worried about are the asinine opinions you foster off onto unsuspecting
beginners.

I agree you are an expert - ex meaning "has been" and spert being a "drip
under pressure". Describes you exactly.

Once you get some REAL WORLD experience under your belt - and I'm not
talking a few web pages - I'm talking about projects with dozens of
programmers and hundreds of K LOC, we can talk again. Until then I'll
just consider you to be the uneducated idiot you are.

The size of project does not determine what is OO and what is not.

That still does not disguise the fact that what you are calling a
fundamental principle of OO is not unique to OO at all, but something which
has been a part of every other language for decades. The fact that it is
required instead of optional is a trivial point which most intelligent
people would not even consider.


It makes a huge difference. You wouldn't get by with your sloppy practices on a
large project. You would have to follow good OO principles to get the job done.
Quite frankly, Tony, I've seen guys like you on big projects. And they don't
make it. They just can't understand why their practices are a bunch of crap.

And I wonder about what Booch (the creator of OO theory) would say about your
"trivial point" - which he considers a fundamental concept in OO. I think he
knows a *little* more about it than you do!

Moron.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jun 28 '06 #73

"Jerry Stuckle" <js*******@attg lobal.net> wrote in message
news:8s******** *************** *******@comcast .com...
Tony Marston wrote:
"Jerry Stuckle" <js*******@attg lobal.net> wrote in message
news:WJ******** *************** *******@comcast .com...
<snip>
That still does not disguise the fact that what you are calling a
fundamental principle of OO is not unique to OO at all, but something
which has been a part of every other language for decades. The fact that
it is required instead of optional is a trivial point which most
intelligent people would not even consider.

It makes a huge difference.


When most people are already aware of the fact every language already has a
built-in messaging feature, they do not consider the fact that in OO it is
mandatory instead of optional a point worth considering. So to give it
elevated status and call it a fundamental principle of OO is just OTT. The
fundamental principles of OOP, what sets it apart from other paradigms, is
encapsulation, inheritance and polymorhism. Every paradigm has message
passing, so it cannot be a fundamental principle of any of them. It is a
*standard* feature, not a *differentiatin g* feature.
You wouldn't get by with your sloppy practices on a large project. You
would have to follow good OO principles to get the job done.
The people on that failed project were following "good OO principles" which
is why the project failed. I ignored their failed ideas and consequently was
able to produce working software in 2 man-weeks instead of their 3
man-years. So you can take your "good OO principles" and stick them where
the sun doesn't shine.
Quite frankly, Tony, I've seen guys like you on big projects. And they
don't make it. They just can't understand why their practices are a bunch
of crap.
And I've seen guys like you on big projects who have a knack of turning OOP
into POO(H).
And I wonder about what Booch (the creator of OO theory) would say about
your "trivial point" - which he considers a fundamental concept in OO. I
think he knows a *little* more about it than you do!
And a *lot* more than you do.
Moron.


Right back at ya.

--
Tony Marston

http://www.tonymarston.net
http://www.radicore.org


Jun 28 '06 #74

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1670
by: Benjamin C. Pierce | last post by:
The Twelth International Workshop on Foundations of Object-Oriented Languges (FOOL 12) Saturday 15 January 2005 Long Beach, California, USA Following POPL 05 The search for sound principles for object-oriented languages has given rise to much work on the theory of programming languages during the past two decades, leading to a better understanding of the key
5
2932
by: Martin | last post by:
When was inheritance intruduced into object oriented programming? More generally, does anyone know or have any sources on when the different features were introduced into object oriented programming?
34
7135
by: yensao | last post by:
Hi, I have a hard time to understand difference and similarities between Relational database model and the Object-Oriented model. Can somebody help me with this? Thank you in advance. Yensao
65
4309
by: Roger Smythe | last post by:
A means for the progressive decomposition a problem space into increasingly simpler component parts such that these component parts represent higher levels of conceptual abstraction, and are completely independent of each other except for their well-defined interfaces. This was an attempt to explain the gist of OOP to programmers accustomed to the structured programming paradigm. I tried to explain OOP in terms of ideals that can be...
14
2945
by: Rookie | last post by:
Is C an object oriented programming language?
100
5337
by: E. Robert Tisdale | last post by:
What is an object? Where did this term come from? Does it have any relation to the objects in "object oriented programming"?
8
1808
by: cppig1995 | last post by:
C++ is not only object-oriented language. I think the description of this group have to be changed. :-) Have fun! ---- cppig1995 (cppig1995@gmail.com) Daejeon Metropolitan City, Republic of Korea 11 years old in Western age.
47
5979
by: Thierry Chappuis | last post by:
Hi, I'm interested in techniques used to program in an object-oriented way using the C ANSI language. I'm studying the GObject library and Laurent Deniau's OOPC framework published on his web site at http://ldeniau.web.cern.ch/ldeniau/html/oopc/oopc.html. The approach is very instructive. I know that I could do much of this stuff with e.g. C++, but the intellectual challenge of implementing these concepts with pure ANSI C is relevant to...
46
3050
by: ajba74 | last post by:
Hi fellows, I am reading some books to learn the C programming language, and sometimes I have the feeling that when somebody becomes a C expert, he must learn a more modern and object-oriented language. When I read things like "... C++ is an evolution of C ..." or "... C is a subset of C++ ..." I tend to believe that I will have to learn C+ + sooner or later. It sounds like C++ is the future and C is the past (and will be no longer...
3
1551
by: notnorwegian | last post by:
i have some confusion over this. sure a class is basically a classification, like for example an animal or flower. and an object/instance of that class is then for example a cat. an object is an instance of a class. that i know, i also know how to program with classes etc. i am just confused about the term object-oriented.
0
9810
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11207
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10794
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10443
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7153
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5830
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6031
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4652
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.