 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Jeremy Brown's Blog: 3 Tenets for Implementing a REST API
by Chris Cornutt March 18, 2011 @ 09:17:05
Jeremy Brown, after working tirelessly on a REST API based around the Zend Framework (and a few other technologies), has come up with his three tenets for implementing a REST API to hopefully help you along the straight and narrow path that he forged himself.
In the course of performing my duties at my day job I recently came across the need for our data to be accessible via an API. After researching the various types available, I settled on developing a REST API. The selection process wasn't the interesting part of this exercise though. Actually implementing a REST API is what was.
His advice ranges from the general to very specific, sharing tips on how to most effectively create the service's API:
- REST is a set of principles (and not a specification)
- Do not use custom media types
- Represent the headers in the response payload
voice your opinion now!
tenet rest api implement zendframework
Matt Williams' Blog: Implementing oAuth Twitter with CodeIgniter
by Chris Cornutt August 26, 2010 @ 12:18:43
On his blog today Matt Williams has a quick tutorial about setting up your CodeIgniter application to use the new oAuth authentication feature that Twitter with the help of this library.
On August 31st Twitter will be axing basic auth GET requests, which is being overtaken by the more secure oAuth, there are a few tutorials out there on how to use oAuth and how to get started creating an app with CodeIgniter, but not many with actually helpful advice so here is my 2 penneth.
The library makes it simple to connect to the Twitter servers with your key/token combination and run a check against the credentials via a simple "oauth()" method call. Sample code is included in the post to make implementing easier.
voice your opinion now!
oauth codeigniter tutorial library implement
Aaron McGowan's Blog: Five things I wish PHP would implement (or had) & would change
by Chris Cornutt April 05, 2010 @ 14:50:34
Aaron McGowan has posted his list of five things he wishes PHP could change (or even had) in future versions of the language.
Recently I have been hard at work trying to finish up a few major source packages and one application - but I have recently found myself thinking about how much better and more "grown" up PHP would be if it had a few things that other technologies such as C++ and C# have.
The five things on his list are:
- Operator Overloading
- Method and function Overloading
- Advancement of Namespaces
- Use of final keyword for class member variables
- 'Getters' & 'Setters' similar to C#'s for class member variables
Each point comes with a summary and a bit of code to show what he's talking about. He sees these things as major steps in PHP "growing up" and as features that could help it make a translation over from things like .NET simpler.
voice your opinion now!
opinion wishlist feature implement
Brandon Savage's Blog: Integrating Source Control Into Your Projects
by Chris Cornutt December 24, 2009 @ 10:13:20
Brandon Savage as a suggestion for anyone doing any kind of development work - use source/version control in your development, you'll be thankful later.
If you ask most developers about source control, they'll agree that it's a wise thing to use. They'll insist that they think it's important. But yet, why are so many companies out there still not using source control in their projects? A good number of companies that I've worked with failed to make use of source control, resulting in issues that would have been trivial otherwise. In this article we'll explore ways to make sure that if your company isn't using source control, that you can help make a change to this policy.
He makes a few suggestions about implementing version control in your environment (it doesn't need to come from the top), how it's best put in place before a crisis and how the real person that might need the convincing could be your fellow cowrokers.
voice your opinion now!
sourcecontrol project implement
Zend Developer Zone: Observer pattern in PHP
by Chris Cornutt February 24, 2009 @ 12:08:32
On the Zend Developer Zone there's a new tutorial posted about the Observer pattern (one of many design patterns) and how it can help you create code using an event-driven programming style.
What exactly is an observer pattern ? All the theory is accessible on Wikipedia. Basically we have an object you want to monitor ( observe ) for any changes. Most of the time this object just fires out events and we want to listen to them. We can have more objects observing one or more other objects so basically this can be M:N relationship
He compares them to triggers in the database world - bits of code that are activated when something changes on an object. His example implements an interface (IObservable) to set/get an email address and validate it with a regular expression. When the setEmailAddress method is used and the validate method is called, the observer kicks into action and checks to ensure the value is correct.
voice your opinion now!
observer pattern designpattern interface implement email validate
Timothy Boronczyk's Blog: Evil Access (a Database Class)
by Chris Cornutt January 21, 2009 @ 21:34:04
Timothy Boronczyk has posted a class that provides a different sort of theory on database access:
I was thinking today about database APIs when inspiration struck. I ended up hacking out the following class, which I think demonstrates a rather interesting approach to interfacing with a database (interesting enough at least to post here).
His class implements an Iterator and lets you bend a few of the rules PHP normally has in place (use of the magic methods, special characters in an identifier). He also includes an example of its use - connecting to the database, selecting information and pulling that information back out.
voice your opinion now!
database class iterator implement magicmethod
Brandon Savage's Blog: Picking The Right Tools For The Job
by Chris Cornutt January 13, 2009 @ 17:59:28
Brandon Savage has made a few suggestions that can help you with one of the most important parts of any development project - picking the right tool for the job.
You'd never dig a drainage ditch with a pitchfork, or plug a drywall hole with chewing gum. Instead, you'd pick an appropriate tool and you'd use it to accomplish the job (a shovel, or some spackle, for example). So why do software engineers often spend so much time fixing problems with the wrong tools at hand?
He includes three common issues and ways you can overcome/stay away from them:
- Lack of knowledge regarding available tools.
- Inability to implement solutions due to lack of resources.
- Unwillingness to implement a solution.
Of the three, the last one is possibly the most scary - don't let personal feelings or your dedication to Tool X be your undoing and hurt your application in the long run.
voice your opinion now!
right tool pick knowledge implement resource unwilling
|
Community Events
Don't see your event here? Let us know!
|