DPC speaker’s dummy guide into arduino
This year the DPC (and DMC) bought all speakers one of the coolest gifts I’ve ever got (or seen) for speakers: an Arduino. During the speaker dinner, a lot of people were a bit confused on how it was...
View ArticleUsing vagrant and puppet to setup your symfony2 environment
As you may now by now, I’m a big fan of using Puppet for configuration management. Since the rise of virtualization, these applications are becoming one of the more dominant tools in a developers tool...
View ArticleSymfony2: Implementing ACL rules in your Data Fixtures
Doctrine’s DataFixtures are a great way to add test data to your application. It’s fairly easy to get this going: Create a fixureLoader that extends Doctrine\Common\DataFixtures\AbstractFixture, had a...
View ArticleUsing varnish to offload (and cache) your OAuth requests
For a current project both me and a colleague are working on a big API system that authenticates through an OAuth system. Normally, such an API does all the necessary OAuth checking, handling of tokens...
View Article@MultiParamConverter for Symfony2
If you know Symfony2, you probably are using (or at least, have heard of) the @paramConverter annotation from the SensioFrameworkExtraBundle. This is a really simple way to convert slugs into entities....
View ArticleSaffire: A dive into a new language
Confused by Perl? Bored by Python? Ruby too 2011? What’s the alternative? PHP? Come on! Well, seek no further since here is the next language for at least the coming decade: Saffire! Well, I hope you...
View ArticleWriting a language
In the last blogpost I was talking about a new language in the making. Unfortunately, writing a complete new language – from scratch – isn’t as easy and takes a fair bit of time. During this...
View ArticleInstalling composer: russian roulette.
I love working with composer. I think it’s a really neat way of dealing with dependencies in (PHP) projects and it’s not for nothing that big frameworks like symfony2 are using composer as their...
View ArticleSaffire: december 2012 update
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...
View ArticleIntroducing the REST cookbook
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...
View ArticleDebugging 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...
View ArticleSaffire – Programming the web since 2013
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....
View ArticleSaffire january 2013 update
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....
View ArticleCustom symfony2 config loader
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...
View ArticlePHP5.5: Try/Catch/Finally
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...
View ArticleHow Saffire doesn’t do things different
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...
View ArticleScrum issues: being agile isn’t easy..
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...
View ArticleSaffire update may 2013: coalesce
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,...
View ArticleTwitter Customer Support: the best thing that happened for customers and...
I’m not a social media 2.0 hipster kinda guy. I use Twitter a lot on personal account, I do not have Facebook. But i do some LinkedIn. There’s lots of power in (ab)using social media, I understand...
View ArticlePHP’s Resources and garbage collection
Today, I’ve found a nice bug/feature/whatsmathing in PHP. I was playing around with writing a daemon and if you have any experience writing daemons (in any language), there are a few rules you have to...
View Article