News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
feed this:

Anthony Ferrara's Blog:
Open Standards - The Better Way
May 24, 2012 @ 08:18:13

In this new post to his blog Anthony Ferrara responds to some of the recent news about PHP standards being up for voting (PSR-1 and PSR-2). He has an issue with how they were created, though, and notes that the current PSR process doesn't encourage open standards.

There has been a lot of traction lately on the topic of the PSR "PHP Framework Interoperability Group". They are introducing two new proposed standards: PSR-1and PSR-2, both dealing with code formatting standards. [...] I have read both, and actually agree and think they are quite good. However, there's a deeper problem. Open Standards is something that the internet was built upon. From HTTP, E-Mail and HTML to ECMA Script (JavaScript), OAuth and JSON, open standards are everywhere. The problem with the entire PSR process is that it is not designed to produce open standards.

He describes an "open standard" and points to this RFC as an example of the open process they should result from. He talks about the importance of the process and how having more people reviewing and contributing their ideas could help find issues in the proposal. He issues a "call to the PSR team" to adopt this practice, allowing a more open flow to the ideas that are being proposed.

Note that I'm not asking to open the vote to anyone else. I'm not saying that standards should be approved by everyone in the community. There should still be a standards body that makes the final decision. But they should make that decision based on community input. They should actively look for and encourage open discussion prior to voting.
0 comments voice your opinion now!
open standards discussion opinion psr proposal community



Freek Lijten's Blog:
SOLID - The O is for Open Closed Principle
May 07, 2012 @ 10:45:37

Freek Lijten has posted the second part of his series looking at the SOLID development methodology. In this latest post his looks at the second letter in the acronym - "O" for "Open Closed Principle."

Software that requires an enormous amount of changes to implement one new feature or fix a bug is unstable and should be considered as "bad". Software should be designed so, that in case of a new feature, no existing classes should have to change. In other words: it is closed for modification. Existing software may be extended to achieve new features however.

He starts off with a "What" section explaining a bit more about what this open/closed means for your code and gets into an example showing it in a more practical way. He shows how to take the principle and refactor an API connector class to pass in the object it needs (Bike) and use that to get information (rather than just passing in the data). He uses a Factory to get the object type he needs based on the Bike type.

0 comments voice your opinion now!
solid development principles open closed principle


Josh Adell's Blog:
Command Invoker Pattern with the Open/Closed Principle
January 16, 2012 @ 10:04:42

In a response to a recent post on DZone.com about the "Open/Closed Principle" Josh Adell has posted an example of a " flexible and extendable command invocation solution" implementing this SOLID idea.

Let's overcome some of these issues [with only being able to extend the invoker class and that the invoker needs to know how to create commands], and also make the code even more extensible. I'll use a simplified command invoker to demonstrate.

His code is included - the creation of a "Command" interface and two comments that implement it: "HelloCommand" and "PwdCommand", each with "register" and "execute" methods. His "Invoker" class then only needs to be told how to map these commands and the "register" is called as they're needed. You can find the full example code for this invocation example in this gist.

0 comments voice your opinion now!
command designpattern invoke open closed principle solid tutorial


DZone.com:
Open/Closed Principle on real world code
January 13, 2012 @ 09:05:53

In a new post to DZone.com Giorgio Sironi talks about the "open/closed principle" in software development and shows an example based on the design of the PHPUnit_Selenium project.

This article shows an example of how the application of the Open/Closed Principle improved the design of a real project, the open source library PHPUnit_Selenium. These design concepts apply to every object-oriented language, including Java, Ruby or even C++. The Open Closed Principle, part of SOLID set, states that software should be open for extension and at the same time closed for modification.

He starts with a little background on the project, pointing out that there's a Session object it uses for all of its testing with a magic "__call" method that handles any kind of method call to the object. This method has issues (dependencies, strict requirements for use) but can be refactored according to the Open/Closed idea to set up an array of anonymous functions that can be called as a "command". Examples of these types of classes are also included (one for the "click" action on a button and another for getting the current location).

0 comments voice your opinion now!
open closed principle solid design command phpunit selenium


Anna Filina's Blog:
Public Call for Papers What Does That Mean?
July 19, 2011 @ 11:06:01

Anna Filina, one of the organizers of the ConFoo Conference in Montreal (February 27th through March 2nd) has a new post to her blog about a new process they're trying out this year for the Call for Papers - a public voting feature that allows anyone to voice their opinion on the proposed sessions.

Some of you may have already heard that the ConFoo call for papers is already open. The great thing about it this year, is that it's public. This means that anyone can vote on the proposals. Besides being fun for the speakers and attendees, it opens up a whole lot of possibilities.

She talks about some of the reasons they decided to go this route such as wanting to give the attendees the most "bang for the buck" and the ability for speakers to see what their fellow speakers are proposing and is working. The committee, of course, will have the final say, but the votes will help quite a bit.

If you'd like to vote and are even considering making it to this year's event, go over an sign up to vote on the conference's Call for Papers section.

0 comments voice your opinion now!
confoo11 public callforpapers open vote


Community News:
ZendCon 2011 Registration Opens
June 23, 2011 @ 10:58:06

As was mentioned by Zend late yesterday, the registration for this year's Zend/PHP Conference have officially opened!

The 7th Annual Zend PHP Conference (ZendCon) will take place October 17-20, 2011, In Santa Clara, California. ZendCon is the largest gathering of the PHP Community and brings together PHP developers and IT managers from around the world to discuss PHP best practices and explore new technologies.

The Early Bird pricing will last until September 10th saving you about $200 USD off the price of the ticket. The full ZendCon experience (Tutorials & Conference) is $1,195 USD or you can opt for just the Tutorial for $445 USD or just the Conference for $945 USD. You're in luck if you're looking for discounts, though - they have lots o them including ones for ZendCon alumni, group discounts, ZCEs and students.

The schedule's not quite out yet, but as you can see by some of the comments from speakers on Twitter, it's shaping up to be a great schedule. Topics like CouchDb, component architecture, design patterns, Redis and dependency injection will all be there.

0 comments voice your opinion now!
zendcon11 registration open satnaclara ca tickets


Community News:
ZendCon 2011 Call for Papers Opens!
April 28, 2011 @ 15:57:18

As was mentioned by Kevin Schroeder, the Call for Papers for this year's Zend/PHP Conference has officially been announced!

We are happy to announce that planning is underway for the 2011 Zend/PHP Conference which will be held in Santa Clara, October 17-20. ZendCon 2011 will be the best conference yet and we would like to invite you to be a part of it! A conference is only as good as its speakers and we are looking for the best speakers to share their knowledge and expertise with the PHP community. Attendees will include developers, architects, development managers, decision makers, core PHP developers and community members.

The key themes they're looking for this year are cloud computing, mobile and user experience and enterprise/professional PHP topics. Within those themes there's several other sub-categories including:

  • Architecture & Best Practices
  • Zend Framework 1&2
  • Rich Internet Apps and Mobile/Tablet - Flash /Flex/HTML 5/CSS3/Ajax
  • Standards Compliance
  • Real World Case Studies, Designs and Data Models

The Call for Papers will close on May 20th, 2011 and speakers will be given a hotel night for each of their sessions that are accepted. Submit your ideas at www.zendcon.com/input to see if you'll be selected!

UPDATE: for a bit more information on the categories, see this new post on Kevin Schroeder's blog.

0 comments voice your opinion now!
zendcon11 callforpapers open cfp santaclara


Community News:
FrOSCon '09 Call for Papers Now Open
April 27, 2009 @ 09:31:32

Kore Nordmann has a new post to his blog mentioning that the Call for Papers for this year's Free and Open Source Conference (FrOSCon) has been started up.

This year we will organize a PHP room for the third time, like in 2006 and 2007. We hope that we can keep up with the amazing conferences from the last years, and we expect it to be a wonderful open source event again. We would love to welcome you in the PHP room, either giving a talk, or just for a chat or listening. We are looking for speakers right now by starting the Call for Papers (CfP), which will end at the 23.05.2009 - please submit your talks.

Other non-PHP topics you could also submit on include development practices, security, desktop development, open hardware and several Java-related suggestions. You can find out more about these and what needs to be done to submit your proposal on this page of the conference site.

0 comments voice your opinion now!
froscon09 callforpapers cfp open room opensource conference


Shawn Stratton's Blog:
Startups and Working Environments
April 07, 2009 @ 10:22:47

Shawn Stratton has an interesting new post to his blog about startups, working environments and a few ideas that could change things a good bit for the average developer's workplace.

I've come to several conclusions after making observations on several articles by successful founders, thinking back on the startups I've seen and interacted with, and seeing the common mistakes that have been made thus far in the businesses and projects I've been involved in and let me just state that it has been a most interesting journey.

He suggests a few things that could make up an "idea workspace" scenario including less (required) work hours and more time off, giving full benefits, promoting an open environment instead of a "cube farm" and the encouragement to always keep learning. He even suggests something that could help make it easier - replacing a lot of the usual means (like books and training courses) with a Kindle loaded and ready to go.

I'm hereby making an open call for people to argue with or contribute to my ideas, let's fix what's wrong with the current corporations and thereby making our economy and our lifestyles sick and dying.

Want to comment? Head over here and share your thoughts...

0 comments voice your opinion now!
startup environment training hours work timeoff kindle open workspace


NETTUTS.com:
How to Open Zip Files with PHP
December 31, 2008 @ 12:04:06

The NETTUTS.com site has a new tutorial/screencast posted looking at their method for opening up uploaded zip files with PHP:

ThemeForest has a nice feature; It allows the authors to upload zip files containing screenshots of their themes. A script then extracts these files and displays the images accordingly. Though I doubt that the developers used PHP to accomplish this task...that's what we're going to use!

They create a simple form with one field - a file input - and write some basic PHP around it. The script ensures that it was a zip file that was uploaded (based on the mime type) and passes it through a ZipArchive class to do the hard work. This class and the rest of the source can be downloaded from the site.

0 comments voice your opinion now!
open zip file tutorial upload mime type download source



Community Events





Don't see your event here?
Let us know!


introduction api interview community testing zendframework2 framework application phpunit zendframework voicesoftheelephpant injection release language symfony2 podcast opinion database conference unittest

All content copyright, 2012 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework