 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Freek Lijten's Blog: Currently on PHP's internals - Property Accessors
by Chris Cornutt February 03, 2012 @ 09:39:14
Freek Lijten has posted another "Currently on PHP's internals..." post to his blog today (here's the previous one) with a look at the discussions around the idea of having "property accessors" in PHP - a standardized way of defining getters/setters in objects.
Today I will be discussing a feature that at this moment is called "Property Accessor". It is a method of defining getters and setters. Originally an RFC was defined as early as september 2009, but recently new discussion took place and an actual patch was created. There is no certainty this feature will ever make a PHP version but discussion seems to target implementation details and not the feature itself, so things are looking bright for this feature.
There's two RFCs posted about the topic - the original proposal (from Dennis Robinson) and a patch for implementing them (from Clint Priest). The proposal replaces the common magic getters/setters (__get & __set) with the optional "get" and "set" keywords inside of custom-defined properties.
voice your opinion now!
property accessors proposals rfc internals discussion
Padraic Brady's Blog: Interfacing The PHP World Would Be Good
by Chris Cornutt October 27, 2011 @ 11:36:30
Padraic Brady has posted his own response to some of the recent talk about making standard interfaces in PHP applications. His perspective focuses on interfaces and coupling as related to the Zend Framework.
Every PHP framework has it's own unique set of interfaces for common operations such as logging, caching, http clients, filtering, validation, etc. This creates a situation where a framework tends to be loosely coupled but only within the scope of its own interfaces. [...] Loose coupling is therefore a bad joke. It is a narrowly defined concept usually described within the scope of one particular application. We never really apply the concept across multiple applications written with different frameworks because, at that point, the disparate interfaces of both frameworks would immediately make loose coupling unobtainable.
He goes on to talk about a simple example, ZendFeedReader, and how it's very difficult to swap something as simple as the HTTP client out for one from another framework. He mentions the common scapegoat for over-interfacing - Java - and how PHP's is a bit more "practical and flexible" in that department (a good and bad thing).
So yes, common interfaces would benefit PHP and would make framework libraries more interoperable and thus usable within competing frameworks. Hey, if you can't beat them at least make sure you can inject your classes into them. Hmm, still sounds dirty.
voice your opinion now!
interface discussion common opinion zendframework symfony2
Lukas Smith's Blog: Symfony2 stuff
by Chris Cornutt November 01, 2010 @ 10:48:17
Lukas Smith has posted a look at some of the things that have been included in the latest revisions of the Symfony2 framework.
Since about 4 weeks I have really started using Symfony2, in development for a work project no less. Kinda crazy seeing its still in pre-alpha phase, but I think its a great platform today and I know its going to be the best soon aka once we have a stable release. But in these 4 weeks quite a few things have popped up that I like to see addressed. Most things aren't really about writing code, but figuring out how things should be. The kind of stuff that is hard to fix on your own.
He mentions six different things (one or two with code examples) that are new to the framework or are being newly discussed:
- Making 3rd party controllers truly reusable
- Flash message handling
- Easy DIC customization of 3rd party Bundles
- Issues with setting GET parameters in functional tests as well as forward() calls
- Form validation issues
- Aligning the handling for Bundle configuration
voice your opinion now!
symfony2 improvement discussion framework
TechChorus Blog: What is your definition of a "True PHP Developer?"
by Chris Cornutt September 14, 2010 @ 14:53:42
On the TechChorus blog today Sudheer has posted his answer to a question posed to him on LinkedIn - "What is your definition of a 'true PHP developer'?" His short answer? The question is wrong. Here's the long answer:
A true PHP developer is a programmer who knows PHP. A false PHP developer is someone who doesn't know PHP. That's the closest correct answer I can think of. I think, Jamie wants to ask, "what's your definition of a good PHP developer?". There is no correct answer to the question. All, you can do is highlight some of the good things a PHP developer does. Let's seize this opportunity to talk about the traits of a good PHP developer. Most of the things that apply for a discussion about good PHP programmer also applies to a good web developer and good programmer in general.
He lists some of the criteria he thinks personifies good PHP developers including:
- A good PHP programmer writes PHP code everyday
- A good PHP programmer always keeps security in mind
- A good PHP programmer knows a bit of JavaScript
- A good PHP programmer keeps an eye open for trending technologies
- A good PHP programmer knows at least one popular framework very well
- A good PHP programmer embraces industry best practices
- A good PHP programmer is comfortable working with version control systems
- A good PHP programmer keeps a tab on PEAR and PECL
- A good PHP programmer writes articles
There's quite a few more than just those listed, so be sure to check out the full list for more good suggestions.
voice your opinion now!
opinion developer traits discussion
InfoQ.com: Is PHP Ready for the Enterprise?
by Chris Cornutt June 25, 2009 @ 12:06:19
On InfoQ.com there's a recent discussion with three members in a virtual panel discussing a common question among businesses all over the world considering PHP - is it ready for the Enterprise?
Although PHP boasts of being the most widely used environment for web application development, it has been traditionally considered as not suitable for the enterprise. InfoQ has conducted a virtual panel regarding the evolution of the language/platform and its suitability in enterprise environments.
The three members of the panel (Zeev Suraski, Rob Nicholson and Derick Rethans) are asked about PHP's interoperability with other platforms, the trend of scripts moving into a JVM, the transitions from the major versions of the language (ex. PHP4 to PHP5), the role more advanced features might play in PHP and if PHP might be considering a move into more functional programming.
voice your opinion now!
enterprise discussion panel
JankoAtWarpSpeed.com: Discussion Why web designers often use PHP over ASP.NET?
by Chris Cornutt December 10, 2008 @ 11:11:35
This post on the JankoAtWarpSpeed blog started off a discussion between PHP and ASP.NET developers as to why one would go for the first over the second.
The first thing that came up to my mind was that PHP is quite simple language comparing to ASP.NET (.NET actually) which is a complete framework that offers a wide range of possibilities (yeah I made a comparison). Maybe PHP has a simple learning curve comparing to ASP.NET, but why would web designers care for data access layer or OOP anyway? But on the other hand, it doesn't mean that web designers should limit their selves just to PHP. Why not be familiar with other technologies as well?
The post has lots of comments from both sides of the fence, each espousing their language of choice. Reasoning ranges from "because ASP.NET is a Microsoft product" to the price of ASP.NET hosters to PHP's open source-ness and the much different learning curves.
voice your opinion now!
aspnet choice web designer compare discussion
Jamie Hemmett's Blog: Tips for PHP User Groups
by Chris Cornutt October 15, 2008 @ 15:06:55
Jamie Hemmett has a few suggestions for local user groups out there on what to do and not to do to help make their group successful. Some of it was gathered from personal experience, other tips from the recent user group panel discussion from this year's ZendCon.
I just listened to the PHP User group Panel discussion from the Unconference session at ZendCon. While I listened I took some notes to try and help our Irish PHP Users Group be awesome like some of the other groups out there. I reckon the podcast and great tips it contains will help other User Groups out there too (not just PHP).
Some of the observations/comments she mentions include:
- Freelancing PHP developers may not feel like attending a group with "the competition"
- Several factors dissuade developers from attending (distance, confusing schedules, timing)
- Some ideas that groups out there could use to attract and keep more members
- Why the groups can make you a better developer
- and some sponsorship/promotion ideas to help grow and better the group
This is a great post packed with some good suggestions and observations. If you're involved at all in your local group (or would like to be) be sure to read it.
voice your opinion now!
usergroup tip zendcon08 panel discussion notes
|
Community Events
Don't see your event here? Let us know!
|