 | News Feed |
 | Jobs Feed |
Sections
|
PHPFreaks.com: 10 Signs of Crappy PHP Software
by Chris Cornutt July 03, 2009 @ 17:51:32
On PHPFreaks.com they have a new "top ten" list of signs to look out for to tell if you're dealing with crappy software or not.
Like it or not, as a professional developer, sooner or later you are going to do some customising (if you are lucky, "extending") of existing software. If you are not familiar with the software, it is good advice to look into it before accepting the job. I had to learn that the hard way. But how do you recognize crappy applications without getting knee deep into the code?
Their list of signs include:
- The software tries to reinvent the object model, or "fix" language features.
- Scattered HTML and SQL
- Multiple levels of inheritance
- In the code base, there is a directory called "core"
voice your opinion now!
list software crappy
Lorna Mitchell's Blog: Status Codes for Web Services
by Chris Cornutt July 03, 2009 @ 15:44:37
Lorna Mitchell has posted the last article in her look at web services - a focus on status codes.
Unlike the other posts in this series, this one is quite specific to one type of service - REST - since it deals with status codes, specifically HTTP ones. The ideas are transferrable however and other types of service can return statuses in a similar way.
She mentions things to keep in mind in returning the codes, some of the more interesting codes as well as some typical situations where things like an error code 500 would be thrown.
Status codes are like a headline to the calling entity about what happened, and are a valuable tool in the web service toolkit.
voice your opinion now!
tutorial webservice statuscode
Oracle Technology Network: High Performance and Availability with Oracle RAC and PHP
by Chris Cornutt July 03, 2009 @ 14:12:07
John Lim has written up an article for the Oracle Technology Network about creating high performance systems with Oracle's Real Application Clusters (RAC) and PHP.
Running a software application that is able to work reliably through hardware and software failures is incredibly hard. [...] In this article, I will cover the network, architecture and design of our RAC application. Then I will discuss the real-world experiences and problems we experienced.
He details their RAC setup - load balancers, application servers and their RAC servers - before working through the different technologies and how they're all installed and configured to work together most efficiently.
voice your opinion now!
tutorial performance high install rac oracle
DevShed: Using the spl_autoload() Functions to Build Loader Apps in PHP
by Chris Cornutt July 03, 2009 @ 08:26:58
In the next to last article of their loader series, DevShed looks at replacing some of the file loading functionality in their examples with functions from the SPL.
As I mentioned before, the Standard PHP library comes bundled with some helpful functions, such as "spl_autoload()," "spl_register_extension()" and "spl_autoload_register()" that allow you to either use a default implementation of the "__autoload()" function, or create a custom one for it.
Their example defines the extensions to use for autoloading and the name of the file/class to pull in. The rest is done automagically.
voice your opinion now!
tutorial autoload spl
WebReference.com: XML and PHP Simplified
by Chris Cornutt July 02, 2009 @ 11:54:52
New on WebReference.com is this look (part of a series) at working with XML in PHP, this time it's specifically covering the DOM functionality.
With this series of articles, I will try to simplify and demystify the use and application of XML and the DOM. First, we will look at what XML is and then move on to what functions are available for use to manipulate and use XML.
The tutorial introduces XML and gives a sample structure of a document and breaks it down to explain each of the parts. Following that they look at some of the XML-related functionality to create their sample XML file.
voice your opinion now!
xml simple tutorial
Ilia Alshanetsky's Blog: Type hinting for PHP 5.3
by Chris Cornutt July 02, 2009 @ 09:46:18
One of the features included in the PHP 5.x releases is type hinting for validating that you have the right values for your functions and methods coming in. In this new post to his blog Ilia Alshanetshy takes a look at the the feature and gives a patch to add it .
On a general level most people agree it would be a good idea to have, since it is an optional feature and does not introduce any regressions, heck you can even mix type hinted code with the non-type hinted one. The "PROBLEM" has always been combining of PHP's typeless nature with type hinting, which is where the consensus has been difficult (impossible) to reach.
He mentions an example of why its such an issue (technically, both 1 and "1" are valid numbers) and includes a link to a patch that gives a new hint to help with the problem.
voice your opinion now!
patch scalar numeric typehinting
|
Community Events
Don't see your event here? Let us know!
|