 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Smashing Magazine: Why Coding Style Matters
by Chris Cornutt October 26, 2012 @ 09:41:32
On the Smashing Magazine site there's a new article talking about coding style matters with developing projects with multiple people (or even possible contributors in the future) involved.
Coding style is how your code looks, plain and simple. And by "your," I actually mean you, the person who is reading this article. Coding style is extremely personal and everyone has their own preferred style. You can discover your own personal style by looking back over code that you've written when you didn't have a style guide to adhere to. Everyone has their own style because of the way they learned to code.
They talk about how everyone has their own personal "style" to their code and how, when working with a team, everyone needs to communicate and make sure their styles match. They also make a few recommendations for your code like leaving "clues" (comments) and making errors easier to spot. There's also a few links to tools that can help keep your code standardized including CSS Lint and the Eclipse code formatter. PHP, of course, has its own - PHP_CodeSniffer with its own rules.
voice your opinion now!
code style standard communication tools
PHPMaster.com: Let's Talk Efficient Communication for PHP and Android, Part 1
by Chris Cornutt May 28, 2012 @ 16:20:09
On PHPMaster.com today, they've started a new series about integrating two popular technologies - PHP and the Android OS - in this new tutorial from Matthew Turland. He'll show both sides of the code needed to get your Android app talking to a PHP backend.
This two-part article will guide you through the process of building an efficient PHP-based REST web service to be consumed by an Android-based application. Some of the concepts presented here are also applicable to other mobile platforms, such as iOS. I assume you already know the basics of PHP and Android development and that you have a suitable development environments set up for both. I'll focus mainly on showing you how to handle data serialization and compression in both environments.
In this first part, he starts from the client side, creating the code (Java) that's needed to create the connection to the backend. He stets it up as a background task so its execution won't block the main app from working. He shows how to execute it, running an "on create" method and checking to ensure the network is available for the request.
voice your opinion now!
tutorial android communication backend mobile java
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
|
Community Events
Don't see your event here? Let us know!
|