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

DZone.com:
And now instead, 5 things Java envies PHP for
Jan 25, 2011 @ 13:56:53

Giorgio Sironi has posted the other side of the PHP/Java envy perspective in this new article on DZone.com - five things that Java envies PHP for (The first article is here offering the opposite perspective).

The comparison is only on web applications and dynamic websites, as PHP does not compete on the desktop. I am a PHP programmer, but I work in Java on university-related projects. If you notice something is missing from the comparisons in this list, feel free to comment and complete my depiction of Java features, and of PHP too.

His list of five things includes that there's no compilation required in PHP applications (running is "compiling"), that there's a unified platform to work on and that there's a lot more included "out of the box" than with Java (like database connectivity).

tagged: java feature wishlist envy opinion

Link:

Web Builder Zone:
5 things that PHP envies Java for
Jan 20, 2011 @ 11:44:33

On the Web Builder Zone today Giorgio Sironi has a new article with five things he thinks the PHP world is jealous about when they look at the features Java has to offer.

I've seen many programmers starting to think that Java is old and verbose, and trying to jump on the bandwagon of scripting languages such as PHP and Ruby. But it's not so simple, as these languages are late to the party in many areas. Here are the 5 things that as a PHP programmer I started envy Java for.

The five features on his list are:

  • Hibernate
  • Generics
  • Keeping objects in memory between requests
  • Java Collection Framework
  • Asynchronous processing

Keep an eye out for his next article - he flips it around and talks about what Java developers have to envy about PHP's features.

tagged: java feature wishlist envy opinion

Link:

Aaron McGowan's Blog:
Five things I wish PHP would implement (or had) & would change
Apr 05, 2010 @ 14:50:34

Aaron McGowan has posted his list of five things he wishes PHP could change (or even had) in future versions of the language.

Recently I have been hard at work trying to finish up a few major source packages and one application – but I have recently found myself thinking about how much better and more “grown” up PHP would be if it had a few things that other technologies such as C++ and C# have.

The five things on his list are:

  • Operator Overloading
  • Method and function Overloading
  • Advancement of Namespaces
  • Use of final keyword for class member variables
  • 'Getters' & 'Setters' similar to C#'s for class member variables

Each point comes with a summary and a bit of code to show what he's talking about. He sees these things as major steps in PHP "growing up" and as features that could help it make a translation over from things like .NET simpler.

tagged: opinion wishlist feature implement

Link:

LivePipe Blog:
What PHP6 Actually Needs
May 15, 2007 @ 10:13:00

On the LivePipe blog, there's a whishlist that Ryan has posted for some of the things he'd like to see in PHP6.

His list consists of:

  • Closures
  • { } is the new array()
  • Parameter Collection in Functions
  • Late Static Binding
  • Backwards Compatibility

Each is explained, some with code to illustrate.

tagged: php6 need wishlist closures array parameter static binding php6 need wishlist closures array parameter static binding

Link:

LivePipe Blog:
What PHP6 Actually Needs
May 15, 2007 @ 10:13:00

On the LivePipe blog, there's a whishlist that Ryan has posted for some of the things he'd like to see in PHP6.

His list consists of:

  • Closures
  • { } is the new array()
  • Parameter Collection in Functions
  • Late Static Binding
  • Backwards Compatibility

Each is explained, some with code to illustrate.

tagged: php6 need wishlist closures array parameter static binding php6 need wishlist closures array parameter static binding

Link:

Stubbles Blog:
My wishlist for PHP6, pt4: static initializers
Mar 26, 2007 @ 09:16:00

In a continuation of their "wishlist" series of posts for PHP6, Stephan Schmidt has postted this new item today taking about something he wishes PHP could do - initialize a property when defining an object.

But how could this be solved, when you never create an instance of Foo but only use static method calls?

I propose a new feature, we implemented in the Stubbles class loader and has been shamelessly ripped from the XP framework. If you need to initialize some properties with objects and are developing with Stubbles, you only need to implement a method called __static() in your class. If your class is loaded by the Stubbles class loader, it will check, whether this method has been implemented and call it. As every class is only loaded once, this enables you to add code to your class, that is also only executed once, if the class is imported into your application.

His solution allows for the creation of such objects with little more than the use of a __static call that could get the object and change the property defined on it.

tagged: static initializers php6 wishlist class loader static initializers php6 wishlist class loader

Link:

Stubbles Blog:
My wishlist for PHP6, pt4: static initializers
Mar 26, 2007 @ 09:16:00

In a continuation of their "wishlist" series of posts for PHP6, Stephan Schmidt has postted this new item today taking about something he wishes PHP could do - initialize a property when defining an object.

But how could this be solved, when you never create an instance of Foo but only use static method calls?

I propose a new feature, we implemented in the Stubbles class loader and has been shamelessly ripped from the XP framework. If you need to initialize some properties with objects and are developing with Stubbles, you only need to implement a method called __static() in your class. If your class is loaded by the Stubbles class loader, it will check, whether this method has been implemented and call it. As every class is only loaded once, this enables you to add code to your class, that is also only executed once, if the class is imported into your application.

His solution allows for the creation of such objects with little more than the use of a __static call that could get the object and change the property defined on it.

tagged: static initializers php6 wishlist class loader static initializers php6 wishlist class loader

Link:

Stubbles Blog:
More PHP6 Wishlist Talk (Annotations)
Feb 27, 2007 @ 13:02:00

Frank and Stehpan has posted two more items in their "PHP6 wishlist" series" today - both mentioning annotations.

In Stephan's post:

Porting JavaDoc comments to PHP was one of the best things, that ever happened to to PHP4. But like in Java 4, the DocBlocks in PHP evolved from plain documentation to a feature that adds meta information to classes, methods, properties and variables. IDEs, like Zend Studio, use the @var tag to enable type hinting for method return values, which would not possible without the DocBlock, as PHP is a dynamic languages.

And from Frank:

In part three of his wishlist for PHP 6 Stephan wrote that he would like to see annotations built into PHP 6 directly. I disagree with him about that. Annotations can be done in userland, without any problems. He already gave some examples of projects that accomplished this task. But if you look at them you see that every project has a different solution on how to implement annotations for PHP which leads to the problem that if you use different projects in your own application you have to handle all their ways of treating annotations. Annoying, isn't it?
tagged: php6 wishlist annotation comment docblock php6 wishlist annotation comment docblock

Link:

Stubbles Blog:
More PHP6 Wishlist Talk (Annotations)
Feb 27, 2007 @ 13:02:00

Frank and Stehpan has posted two more items in their "PHP6 wishlist" series" today - both mentioning annotations.

In Stephan's post:

Porting JavaDoc comments to PHP was one of the best things, that ever happened to to PHP4. But like in Java 4, the DocBlocks in PHP evolved from plain documentation to a feature that adds meta information to classes, methods, properties and variables. IDEs, like Zend Studio, use the @var tag to enable type hinting for method return values, which would not possible without the DocBlock, as PHP is a dynamic languages.

And from Frank:

In part three of his wishlist for PHP 6 Stephan wrote that he would like to see annotations built into PHP 6 directly. I disagree with him about that. Annotations can be done in userland, without any problems. He already gave some examples of projects that accomplished this task. But if you look at them you see that every project has a different solution on how to implement annotations for PHP which leads to the problem that if you use different projects in your own application you have to handle all their ways of treating annotations. Annoying, isn't it?
tagged: php6 wishlist annotation comment docblock php6 wishlist annotation comment docblock

Link:

Stubbles Blog:
Two New PHP6 Wishlist Items
Feb 21, 2007 @ 10:29:00

Launching off from this previous post on the Stubbles Blog, two more posts (from two other developers) have been posted on the same subject:

  • In this new post, Frank Kleine takes things a step further and talks about the same kind of type hinting but for more types - including arrays and objects. Examples of how he'd expect things to work followed.
  • The other post is from Stephan Schmidt again and varies slightly off into the world of Namespaces to be included in PHP6 along with the use of annotations.
Be sure to check out the comments on each for some more interesting tidbits...

tagged: php6 wishlist namespace annotation typehint array object php6 wishlist namespace annotation typehint array object

Link: