Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
Zend_Glossary
Nov 24, 2010 @ 18:13:18

If you're new to using the Zend Framework, you there's one big hurdle you might have to overcome. There's a lot of terms used in the system that might not be all that familiar to you. Thankfully Giorgio Sirnoi has written up a guide (he calls it a "Zend_Glossary") to help smooth over the rough parts.

When you're approaching a framework with a learning curve as steep as ZF, it's easy to be overwhelmed by new terms and declare them buzzwords. Instead, they have often a very precise meaning. I've creates this glossary to collect all the defined terms I could find, so that the PHP developer new to Zend Framework would have a place to come and lookup in the time of confusion.

He breaks it up into a few different sections - generic/reused terms, common component names, what MVC and the bootstrap are as well as the different parts of Zend_Forms.

tagged: zendglossary glossary common term confusion

Link:

CodeIgniter.com:
CodeIgniter Community Branch NDA
Nov 22, 2010 @ 18:07:25

On CodeIgniter.com today there's a new blog post hoping to clear up any confusion about the Community Branch of the framework and the NDA that would be required for those developers on the project.

The confusion lies in the purpose of the NDA, and the scope of what it covers. The branch’s development will not be under NDA, nor will discussions between the deputies and the community, how they receive code submissions, what they reveal to others about their own plans, and so on.

The NDA does, however, cover any discussions that might be had with the EllisLab group about the structure and guidelines concerning the development of the branch. It's not designed to keep the community out of the development process but rather to keep things about ElliLab's other products out of the larger flow of ideas.

tagged: codeigniter community branch nda framework confusion

Link:

NETTUTS.com:
9 Confusing Naming Conventions for Beginners
Oct 25, 2010 @ 16:39:42

On NETTUTS.com there's a new article that list nine different conventions that developers (PHP, Javascript, general web) could get confused about when they are just starting out.

Especially when first getting started with various web development languages, it can prove to be a difficult task to learn all of the various naming conventions from language to language. This can be even more confusing when developers disagree on what’s considered best practice. To help ease the transition for beginners, this list will describe some of the more common conventions.

Some of the conventions that they mention that are more specific to PHP developers are underscores before property names, uppercase constants, capitalized first letters in variables and alternative syntax (like ternary).

tagged: naming convention beginner confusion

Link:

Travis Swicegood's Blog:
Why Inheritance Sucks
Oct 12, 2007 @ 15:11:00

Travis Swicegood has made two blog posts about his agreement with other statements made about why class inheritance sucks.

From the original comments made by Bernard Sumption:

All of the pain caused by inheritance can be traced back to the fact that inheritance forces 'is-a' rather than 'has-a' relationships. If class R2Unit extends Droid, then a R2Unit is-a Droid. If class Jedi contains an instance variable of type Lightsabre, then a Jedi has-a Lightsabre.

Travis agrees and then comes back with his second post to clarify something - composition versus inheritance:

I approach OOP from a flexibility standpoint with one of its biggest flex-points being loose coupling which in turn promotes reusability. I'm going to use Event as a hypothetical example.

He uses Events and design pattern illustrations (like the Visitor and Observer) to help illustrate his point.

tagged: inheritance designpattern observer event composition confusion inheritance designpattern observer event composition confusion

Link:

Travis Swicegood's Blog:
Why Inheritance Sucks
Oct 12, 2007 @ 15:11:00

Travis Swicegood has made two blog posts about his agreement with other statements made about why class inheritance sucks.

From the original comments made by Bernard Sumption:

All of the pain caused by inheritance can be traced back to the fact that inheritance forces 'is-a' rather than 'has-a' relationships. If class R2Unit extends Droid, then a R2Unit is-a Droid. If class Jedi contains an instance variable of type Lightsabre, then a Jedi has-a Lightsabre.

Travis agrees and then comes back with his second post to clarify something - composition versus inheritance:

I approach OOP from a flexibility standpoint with one of its biggest flex-points being loose coupling which in turn promotes reusability. I'm going to use Event as a hypothetical example.

He uses Events and design pattern illustrations (like the Visitor and Observer) to help illustrate his point.

tagged: inheritance designpattern observer event composition confusion inheritance designpattern observer event composition confusion

Link:

PHP Security Blog:
Open_basedir confusion
Feb 15, 2007 @ 13:42:00

Stefan Esser is trying to clear up some confusion in a new post to the PHP Security Blog today about his stand on enabling open_basedir on your PHP installation.

From time to time I get the question why I recommend enabling open_basedir and on the other hand call it a solution flawed by design. This is actually a good question, because the untrained PHP user might get a little bit confused about this and might believe that I change my opinion on a daily basis.

He talks about his reasoning - how it does it's job protecting PHP developers from being able to get to those file, but how it's also flawed with issues due to some 3rd party libraries that have their own problems.

tagged: openbasedir confusion useful flawed thirdparty library openbasedir confusion useful flawed thirdparty library

Link:

PHP Security Blog:
Open_basedir confusion
Feb 15, 2007 @ 13:42:00

Stefan Esser is trying to clear up some confusion in a new post to the PHP Security Blog today about his stand on enabling open_basedir on your PHP installation.

From time to time I get the question why I recommend enabling open_basedir and on the other hand call it a solution flawed by design. This is actually a good question, because the untrained PHP user might get a little bit confused about this and might believe that I change my opinion on a daily basis.

He talks about his reasoning - how it does it's job protecting PHP developers from being able to get to those file, but how it's also flawed with issues due to some 3rd party libraries that have their own problems.

tagged: openbasedir confusion useful flawed thirdparty library openbasedir confusion useful flawed thirdparty library

Link:

Pierre-Alain Joye's Blog:
imagerotate, little confusions in the manual (damned, I cannot say RTFM!)
Feb 06, 2007 @ 18:02:00

Pierre-Alain Joye is looking to clear up some confusion with his new blog post today surrounding the imagerotate function and some of its options:

imagerotate has special intern functions when the rotation angle is a multiple of 90 degrees, it actually only flips the image. The operation is quite fast as it is a two nest loops with a little copy operation. However it looks like the manual has a little mistake in the function description, which can lead to confusion.

The problem comes from a part mentioning the scaling down of an image to fit into the destination image. With a flip of 90 degrees, though, the resulting image contents will stay the same size as the original - the image only flips, not really rotates.

tagged: imagerotate manual confusion degree flip image imagerotate manual confusion degree flip image

Link:

Pierre-Alain Joye's Blog:
imagerotate, little confusions in the manual (damned, I cannot say RTFM!)
Feb 06, 2007 @ 18:02:00

Pierre-Alain Joye is looking to clear up some confusion with his new blog post today surrounding the imagerotate function and some of its options:

imagerotate has special intern functions when the rotation angle is a multiple of 90 degrees, it actually only flips the image. The operation is quite fast as it is a two nest loops with a little copy operation. However it looks like the manual has a little mistake in the function description, which can lead to confusion.

The problem comes from a part mentioning the scaling down of an image to fit into the destination image. With a flip of 90 degrees, though, the resulting image contents will stay the same size as the original - the image only flips, not really rotates.

tagged: imagerotate manual confusion degree flip image imagerotate manual confusion degree flip image

Link:

Sara Golemon's Blog:
Compiled Variables
May 24, 2006 @ 22:39:32

In a new post from her blog today, Sara Golemon seeks to dispell any FUD that might come up surrounding compiled variables (as there's already some issues raised in this interview).

Last month at php|tek I gave a presentation on "How PHP Ticks" where I covered, among other things the process of compiling source code into opcodes (an intermediate psuedo-language similar to what java calls "bytecode" or what .NET calls "MSIL"). As part of this section of the presentation, I showed one of the more interresting changes between ZE 2.0 (PHP 5.0) and ZE 2.1 (PHP 5.1), namely: How variables are retreived and used in an operation. More specifically, how they provide a small, yet cumulative, speedup to applications in a way that's transparent to the end-user -- One more reason to like PHP 5.1 right?

After listening to Marcus Whitney's interview with Brion Vibber of WikiMedia in which he mentions my presentation and makes reference to this engine change, I realized that I should clarify what this feature is (and more importantly, what it isn't) before any FUD spreads.

She describes what they are with an illustration using a simple PHP script and breaking it out into the compiled version's parts - both in PHP4 and the PHP5 versions. Of course, representing what they are needs a flipside, so she presents a look at what they are *not* as well. There's also a brief mention of the special status that globals and static variables get outside the norm.

tagged: compiled variables confusion interview php4 php5 compiled variables confusion interview php4 php5

Link:


Trending Topics: