Development

Saffire update may 2013: coalesce

April 22, 2013
By

One of the things that happens over and over again is that you need to check a value, and if it’s not set, it should set a default value. Normally, these variables could be initially set by properties, but sometimes you don’t have any control on initialization. For instance, when these values come from users.…

Read more »

Scrum issues: being agile isn’t easy..

April 1, 2013
By
1-scrum-en

I do a lot of consulting work and because of this I see lots of different development processes at many companies. Some of them are good, but most of them are not. And this problem isn’t caused by lack of trying, but of lack of expertise. Most – if not all – software development departments…

Read more »

How Saffire doesn’t do things different

February 21, 2013
By

The question I get asked a lot, is what makes Saffire different? The most honest answer: nothing. There is absolutely nothing that makes Saffire different from other language, because Saffire doesn’t do things different. And there is a good reason for this: after many decades  of developing languages by many and much smarter people than yours…

Read more »

PHP5.5: Try/Catch/Finally

February 12, 2013
By

Exception handling is available in PHP since version 5.  It allows you to have a more fine-grained control over code when things go wrong ie, when exceptions occur. But since PHP 5.5, exception handling has finally evolved into what it should have been from the beginning: the “finally” part has been implemented. Let’s start with…

Read more »

Custom symfony2 config loader

January 30, 2013
By
symfony_black_05

It happens more and more: large projects where your symfony2 site is just a small part in the big picture. Lots of additional components might even play a bigger part, especially when you are dealing with asynchronous components  which are connected through message queues for instance. So the question is: we want to make sure…

Read more »

Saffire january 2013 update

January 26, 2013
By

Most development languages will have some kind of printf() functionality. It takes a string, and can have optional arguments, depending on the placeholders you have set inside your string. printf("Hello %s. You are %d years old", name, 33); The %s and %d will be filled with respectively the variable “name”, and the integer 33. However,…

Read more »

Saffire – Programming the web since 2013

December 20, 2012
By

So, Saffire started as a way to “learn” a bit about flex/bison. I’ve dealt with these systems before a long time ago (pre-2K), and i forgot lots about them. So it was about time for a refreshal. Unfortunally, looking on the internet for tutorials, almost all of them are about how to write a calculator…

Read more »

Debugging remote CLI with phpstorm

December 20, 2012
By
Debugging remote CLI with phpstorm

Even in these days, with full-featured PHP IDEs around,  I still see PHP developers using var_dump() and die() to debug their code. Not only is this a very bad way of “debugging”, it has other dangers as well, like side-effects on calling (non-idempotent) methods multiple times, not removing debug statements and possible even committing this…

Read more »

Introducing the REST cookbook

December 12, 2012
By
getThumbnail

One of the many things I do, on pretty much a weekly basis, is answering questions about REST and HTTP. Is this status code correct for X, should I use POST or PUT, is this hateoas enough, how do i handle logins in a RESTful API etc, etc…  This is why I decided to setup…

Read more »

Saffire: december 2012 update

December 10, 2012
By

A few months ago I started with a new programming language called Saffire, and it’s time for an update. Since then, we have merged over 100 pull requests, and the number of contributors is steadily increasing. This post is explains of the functionality we already implemented (or want to implement). From the user perspective, Saffire will operate…

Read more »