 | News Feed |
Sections
Community Events
|
| feed this: |  |
Zend Developer Zone: Book Review Object-Oriented Programming with PHP5
posted Tuesday June 24, 2008 @ 11:14:28
voice your opinion now!
BY CHRIS CORNUTT
The Zend Developer Zone has published a new book review covering the Packt Publishing book from Hasin Hayder, "Object-Oriented Programming with PHP5".
The book does a decent job of covering the main OOP topics in PHP; as well as, touching upon some of the peripheral ones. Hayder devotes whole chapters to such topics as unit testing, design patterns, XML, SPL, and working with databases.
The review talks about the "Good", the "Bad" and the "Ugly" of the book ranging from the good code examples and the chapter on the SPL down to the flawed version of the Singleton used and the lack of commentary/explanations around the code.
tagged with: php5 book review object oriented programming
Alex Netkachov's Blog: Are setters evil?
posted Tuesday June 17, 2008 @ 09:36:03
voice your opinion now!
BY CHRIS CORNUTT
Alex Netkachov has posted his own response to this opinion on the Typical Programmer on getters and setters in object-oriented applications.
"Do not use getters and setters" looks like a hastily advise, but its meaning is very important and it is "do not break encapsulation", which moves us to the question what the encapsulation is.
He notes that encapsulation is, in essence, hiding parts of the code away so that the user/other coders only see a little bit of the magic that happens. He argues that getters and setters are a valid part of the encapsulation process and that designing a good, easy to use system almost requires them.
tagged with: setter getter object oriented programming encapsulation
PHPFreaks: OO PHP Parts One & Two
posted Monday June 09, 2008 @ 08:48:00
voice your opinion now!
BY CHRIS CORNUTT
PHPFreaks has posted part one and part two of a new series they're working on to introduce those new to the language to the concepts of object-oriented programming in PHP.
On the old site, I started a series of tutorials named "PHP Application Design". I planned for at least three parts, and while I did publish the first two and wrote at least half of part three, I found myself out of time to make it to the finish. Still dedicated to writing reusable and extensible PHP code and spreading the knowledge, this is a restart of the series, renamed as simply "OO PHP"
In part one he looks at the basics of OOP (terms, defining properties/methods, autoload, exceptions, type hinting, etc) with some code examples sprinkled through out. Part two looks at the "boring OOP principles" like polymorphism, encapsulation and heuristics.
tagged with: objectoriented programming tutorial principles introduction
Kae Verens' Blog: review Object-Oriented Programming in PHP5
posted Thursday May 29, 2008 @ 07:53:43
voice your opinion now!
BY CHRIS CORNUTT
Kae Verens has posted a review of a PHP-related book from APress Publishing, "Object-Oriented Programming in PHP5":
In short: a very good concise introduction to OOP. I'll be keeping this on my desk for a while. The language use is strange but the code examples and the spread of topics make up for that in spades. This book has a very broad scope, but is clear in the essentials. If you're looking for an introduction to Objected Oriented Programming in PHP, I'd recommend this one.
The review gets into a bit more detail on "The Good", "The Bad" and "The Ugly" of its contents including its intro to OOP in PHP (good), the assumption that OOP is better than other programming types (bad) and the poor structure of the book (the ugly).
tagged with: book review apress object oriented programming php5
CodeUtopia.net: Is PHP a good first language?
posted Thursday May 01, 2008 @ 13:39:53
voice your opinion now!
BY CHRIS CORNUTT
The CodeUtopia blog asks the online community for their opinion - what do you think of PHP as a first language?
Sometimes I've seen people say PHP is a bad first language, because it teaches bad programming habits. But is this actually true at all? Often those who say that don't really like PHP themselves either, many times because of equally untrue reasons.
They argue both sides of the situation, mentioning what could make for a good first language, why PHP is a "nearly perfect" fit for it and some arguing points for the other side as to why PHP isn't the best option.
tagged with: good first programming language argument pro con
Debuggable Blog: Programming Psychology - Return home early
posted Monday April 28, 2008 @ 14:36:43
voice your opinion now!
BY CHRIS CORNUTT
Felix Geisendorfer is taking an interesting approach to defining programming in this new post to the Debuggable blog - he's coming at it more from the level of the perception the programmer has about writing good code.
I believe understanding the patterns in your own thinking will by far make the biggest impact on how good you will get as a programmer. Forget design patterns, forget unit testing, forget all those functions you know. Important is to question why they exist and how they could be improved.
He illustrates through a few examples what he means. He describes one such thought method, the "return home early" process - basically, if something looks too complex for its own good, it probably is. He offers a different way of thinking about it too, a more visual way that can help simplify things even more by laying out the pieces and seeing where they all fit.
tagged with: psychology programming return home early complexity simple visualize
|