Welcome Guest, Not a member yet? Register   Sign In
Not OO profficient - can you suggest relevant tutorials?
#1

[eluser]Unknown[/eluser]
Hi,

I've been writing procedural PHP scripts for a few years but have always found OO confusing and difficult to understand. I read a review of the book by David Upton and bought it because the review suggested that this would be a good book for procedural programmers wanting to learn a PHP frame-work. The review was misleading as the book assumes competence in OO programming concepts/techniques.

CodeIgniter does however sound impressive so would be willing to endure some upfront 'pain' to learn the background ideas and practices of PHP OO programming - so I can realise some of the promised CodeIgniter magic.

Can you suggest PHP OO tutorials that would help me understand the basics in in a way relevant to how CodeIgniter works (not general OO tutorials - as I don't find stories about bicycles useful in helping me understand how to create a real program)?

Thanks.

All the best,
Jim
#2

[eluser]Ebot Ndip-Agbor[/eluser]
Get into JAVA a little and you will not regret it.
#3

[eluser]jcopling[/eluser]
A quick google search of "php oo tutorials" returned what look to be a number of good resources:

http://www.tutorialized.com/tutorials/PHP/OOP/1
http://www.codewalkers.com/c/a/Programmi...ng-in-PHP/
http://massassi.com/php/articles/classes/
...

take your pick Smile
#4

[eluser]Glen Swinfield[/eluser]
Google it, there are plenty of tutorials - but if you want to spend a few pounds (dollars?) the best php OO book I have read (and I've read a few) is this one from apress: http://www.apress.com/book/view/1590599098 - there is an e-book which is a bit cheaper than the print version I think.
#5

[eluser]Unknown[/eluser]
Thanks for the links and book reference - they are much appreciated.

I came across this great introduction: http://www.killerphp.com/tutorials/objec.../index.php

The videos that introduce PHP OO I am finding particularly useful.

All the best,
Jim
#6

[eluser]Ryan Zec[/eluser]
[quote author="batangai" date="1205982443"]Get into JAVA a little and you will not regret it.[/quote]

I have regretted it. I mean for one i don't like the syntax very much(I like C++/PHP style better, and most java applications that i have tried are buggy because the java virtual machine i believe is buggy.
#7

[eluser]Pascal Kriete[/eluser]
How is the java syntax different from C++/PHP?
#8

[eluser]esra[/eluser]
[quote author="inparo" date="1206124086"]How is the java syntax different from C++/PHP?[/quote]

Find that interesting also, since Java was largely based on ANSI C/C++ ideas, less much of the low-level C code required by C++. Microsoft's C# was their answer to competing with Java and has a similar heritage. When you think about it, PHP5 is a nice mix of C++/Java ideas.
#9

[eluser]fdog[/eluser]
I don't recommend Java since it's not that good with OO. Java has a bit too much C/C++ influence.
Try learning Python or Ruby. It would be easier to dive into PHP's OOP when you learn any of those languages. You'll even be a little disapointed with CI poor OOP Tongue
#10

[eluser]dawnerd[/eluser]
I say just read the php docs... That's how I learned. That and jumping into open source code.




Theme © iAndrew 2016 - Forum software by © MyBB