 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Court Ewing's Blog: Follow-up How PHP is Broken and How It Can Be Fixed
by Chris Cornutt November 15, 2011 @ 10:18:45
In a follow up to his previous post about how PHP is broken (and what can be done to fix it), Court Ewing has this new post with a few suggestions on how PHP development could be better, but admits that PHP itself is not broken.
It is no secret that the PHP development process has never been a shining example of project organization or quality assurance. Until recently, some of the most important aspects of any project's development cycle were either entirely lacking or were ill-defined. Worse, there was little in the form of systemic quality assurance. Fortunately, the core devs did not ignore these issues, and they've been pushing really hard to improve on these areas over the past few years.
He points out two things that he sees as things that could be improved in the overall process of developing the language - noting that failing automated tests are ineffective and that communication is a key factor in the trust developers have in PHP.
The core PHP developers have long been a key component of [the amazing things the language can do], and none of progress that modern PHP applications have made would be possible without their ongoing efforts. As a result of those efforts, PHP is a stable, secure, and beautifully-practical language that is both easy for novices to wrap their heads around and experts to build the most-used web applications the world has ever seen.
voice your opinion now!
broken opinion fixed communication automated test fail
Henri Bergius' Blog: DNode Make PHP And Node.Js Talk To Each Other
by Chris Cornutt October 31, 2011 @ 09:50:05
Henri Bergius has a new post to his blog today sharing details about a messaging protocol that can help PHP and Node.js play together nicely - DNode.
Both environments have their strong points. Node.js is very fast and flexible, but PHP has a lot more mature tools and libraries available. So in a lot of projects it is hard to choose between the two. But now you might not have to. DNode is a remote method invocation protocol originally written for Node.js, as the name probably tells. But as the protocol itself is quite simple, just sending newline-terminated JSON packets over TCP connections, implementations have started popping up in other languages. You can talk DNode in Ruby, Perl, Python, Java, and now PHP.
He includes a quick example of both sides of the messaging - a simple server on the Node.js side that looks for a DNode request and using the dnode PHP client to connect to it (and return the input number multiplied by 100). He also includes a method that allows for bidirectional communication with a service that converts from Celsius to Fahrenheit.
voice your opinion now!
dnode nodejs communication bidirectional dnodephp
Cal Evans' Blog: Six ways to be a better client for your developer - Point 1
by Chris Cornutt January 14, 2011 @ 09:51:28
Cal Evans has started up a new series of posts to his blog today, flipping things over from the usual developer-centric perspective most people take and looking at the client instead. In this first part of the series he looks at the first of six ways you can be a better client to your freelance developer.
You and you alone are the vision keeper for your project. You have to convey the problem that needs to be solved without specifying how it is to be solved. Work with your developer to make sure they understand you as you describe the problem. [...] Don't assume that the developer will understand industry jargon or acronyms. Just because it's clear to you doesn't mean that it is clear to them.
Communication is a huge key when dealing with any developers, freelance or not and Cal's suggests that not only is everything laid out clearly, but there's also no stone unturned on things like features and goals for the project.
voice your opinion now!
client freelance developer opinion communication
Derick Rethans' Blog: First release of the D-Bus extension
by Chris Cornutt April 06, 2010 @ 12:16:16
Derick Rethans has announced the first official release of his D-Bus extension that makes it possible for PHP applications (and ones built in other languages) to interact directly with each other.
A few days ago I made the first beta release of the D-Bus extension that I have been working on for a while. D-Bus is a message bus system, a simple way for applications to talk to one another. I started working on this because my cellphone. [...] However, many other applications on the Linux desktop speak D-Bus. This includes system services such as the notification daemon, the screen saver and hardware plug-in detection as well as desktop applications such as Pidgin and Empathy.
You can find out more about the extension on its PECL page or check out Derick's presentation on the subject (as presented at the 2010 PHP London conference).
voice your opinion now!
release dbus extension communication
ThinkPHP Blog: Comet in conjunction with a PHP socket server - server-client communication
by Chris Cornutt September 02, 2008 @ 08:41:55
In a new post to the ThinkPHP blog today there's a look at combining Comet with PHP to make a simple method for the client to talk back to the server outside the usual methods.
If a couple of users have opened the application there are already some hundred or thousand requests per second. The outcome of this is a big load for your server and a highly increased traffic - your server will in a senseless way be overloaded. In conclusion, our problem is the enormous amount of polling without knowing whether the server really wants to send a new push. Let's turn the initial situation around. And we get the solution to our problem: Comet.
With Coment, the model changes and the request is "cached" on the server-side automatically in a single Comet instance. Coordinate this with another recommendation of theirs, a PHP socket server, and you can do some pretty interesting things.
voice your opinion now!
communication socket server comet ajax push pull
WorkingSoftware.com.au: Something Like Threading- PHP Process Forking & Interprocess Communication
by Chris Cornutt June 07, 2007 @ 10:21:00
New from Iain Dooley on the Working Software website today is his look at working with threading in PHP including forking and communication between the processes.
I recently wrote a little application that dumps a file across a forwarded port. [...] So when I first wrote it, I didn't know what I was doing and had never written socket code before, so it was a big procedural mess. Naturally I was keen to separate out my socket class into it's own package but this presented a problem: the controlling process needed to check the status but how could I decouple the process that instantiated the socket class from the socket code itself
So, he set about working up his class, hitting a few barriers along the way:
- Copy On Write issues with how PHP handles the variable for the forked process
- Interprocess Communication using Sockets using the socket_create_pair function
- a "Curious Interlude" about why you can share sockets between two processes
There's a example of it in action - a setup with a child process that's all set to count up and respond back with the current number to the managing script.
voice your opinion now!
fork process communication thread tutorial fork process communication thread tutorial
Felix Geisendörfer's Blog: Welcome to the Dark Side of Plugins in CakePHP
by Chris Cornutt June 26, 2006 @ 06:27:28
CakePHP users out there looking to squeeze just a bit more out of their plugins might want to check out this new post over on Felix Geisendörfer's blog today. He shows how he's worked around two issues that have bothered him with the current framework setup - inter-plugin communication and filter callbacks.
He starts off by looking at the filter callbacks, looking to make "drag and drop-able" plugins for his setup. He notes that, right now, you'd have to call a plugin to perfom an action, making for a good bit of load depending on the application structure. It also means that you have to change the Controller to add a new plugin ("...which doesn't seem like a very RAD approach to me").
So in order to streamline such plugin callbacks, I created a function inside SpliceIt!, that allows plugins to hook into any AppController event, such as beforeFilter, afterFilter, beforeRender, etc. in order to make their own changes to the controller. So a Themes plugin can easily change the Controller::view and a Statistics plugin can make calls to a Model.
He gives the code for the function as well as an example of how to use it in your app.
Moving on, he looks at his next issue to overcome - inter-plugin communication:
Generally spoken Controller::requestAction() isn't a bad way to exchange data between controllers. It's a clean interface and you don't have to plan in advance what data should be exchangeable and what data should not. However, there are a couple problems with it.
His solution involves the creation of an entirely seperate ApiController pattern. Of course, he provides examples, specifically related to his SpliceIt! application.
voice your opinion now!
cakephp framework mvc plugin callback hook inter-plugin communication cakephp framework mvc plugin callback hook inter-plugin communication
|
Community Events
Don't see your event here? Let us know!
|