The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > Web Programming > PHP


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags:

Closed Thread
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 06-10-2007, 04:11 PM
jayztttight
Posts: n/a
[SOLVED] Should I learn Object Oriented Programming for PHP?

I was wondering if I should learn Object Oriented Programming.

I keep hearing people explain what it is, but I still don't get it. And I probably won't get your explanation, just a heads up.

Do PHP coders actually use this? I heard it was pretty hard.... also I was wondering if big sites use this also. All I remember is seeing a blog entry by an experienced coder and he was basically saying that it is harder than it looks.

I just don't understand the practicality of it all. Wondering if sites like digg.com or another really big site (like Yahoo answers) uses it. And, of course I mean with PHP.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
  #2 (permalink)  
Old 06-11-2007, 11:37 PM
TeraTask's Avatar
TeraTask TeraTask is offline
PT Staff*
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 3
Join Date: Jun 2007
Location: Reno, NV
Posts: 428
iTrader: (0)
TeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enoughTeraTask will become famous soon enough
It really depends on your usage. When programming for PHP 4, I don't usually use objects. When programming for PHP 5, I do. I have studied OOP in college, however, so I have formal training which provides a stronger background (in most cases). Objects can be very, very challenging. It really depends on your goal with the code you're working on, who else will be viewing and working with the code, and which you prefer.

IMO more and more PHP written for PHP 5 will be object oriented so you do risk falling behind being able to competently read code from others if you don't learn at least the basics of it.

That said, learning OOP is worth learning properly. Those who don't create extremely hard to read garbage which ultimately ought to be wholly rewritten. You stand less a chance of that with procedural programming as a lot gets stuck in functions, but even that's subject to the spaghetti code syndrome.

In short, it's worth learning but only if you plan on learning it well. Even if you decide to stick with procedural programming, you should familiarize yourself with the concepts behind OOP in order to be able to work with others' code.

__________________
Jeremy Miller
Content Farmer - Optimized Automated Blog Posting

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
  #3 (permalink)  
Old 06-11-2007, 11:53 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
At first, OOP may be very challenging and confusing for a beginner, but once you get the step and realize on how it works, it's going to be extremelly useful and makes your life easier

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Closed Thread


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 11:45 AM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50