While pair programming last week a colleague of mine showed me a great trick for validating user input with multiple options. This trick works best in PHP because of its fantastic array support. But with the right utility classes or frameworks you could really use it with any language. It just might not save you as much time as it does in PHP.
In this case we were writing some setters for a class.
Posts
- APIs are awesome! Being able to tap into a web service and work with data can make a lot of tasks easier and cleaner. APIs also allow us to link into advanced functionality and provide a richer experience for end users. Unfortunately, a lot of APIs are poorly documented, even ones for well known online services (you know who you are). This can make working with them challenging, and debugging their errors even more of a nightmare.
- I’ve reflected on this old post! Lots of people, not just developers, dream about working from home. Whiling away the hours in the comfort of their castle and making a living at the same time. Why not? Everything is perfect when you’re working from home. Nothing can interrupt or distract you. Success is guaranteed, and just being there dissolves time management challenges and makes meeting deadlines a breeze. Working from home solves all your problems… right?