Author: Nick Belhomme

phpGG Frontend Special was da bomb

Hello again,

Yesterday I attended the phpGG Frontend Special  , phpGG first great conference and I must say it was very good organized. I had to be on the road for more than four hours but it was worth every second of it.

Like on most conferences you were welcomed with your preferable drink, for the record mine is orange juice. I saw a lot of net workers drinking milk. 🙂 After some networking/ chitchatting  the presentations began right on time.

The presentations were professionally introduced by Stefan Koopmanschap and Kana Yeh and were all on the topic of front end.

The first presentation was from Bram Veenhof about MS Silverlight. It was interesting but not really PHP oriented.

The second one speaker was a charismatic speaker with great humor and very much knowledge about the Adobe Flex and Air platforms, Mihai Corlan.

He was able to grab my interest with live demos and coding examples. In a matter of minutes he had a working application using Flex and PHP. Awesome. I really see this technology used in one of my next CMS projects. He explained about datagrids and how flex uses them to interact with a Mysql Database through PHP on a different or same server.

After so much interesting information it was time for a lunch break and I spoke with Mihai and he explained first hand the new technology behind the Text Layout Framework in Flex 3.2 or AIR 1.5. It looks great, I urge you to check it out if you are interested in anything Flash, Flex or Air related.

After a sandwich or two it was time to have presentations introducing some user groups.  Juliette Reinders Folmer introduced  PHP Women ,  Sander van Lambalgen introduced Fronteers and of course the group phpGG, frontend special organizer itself, was introduced by Stefan. He even threw in some surprise gifts. Including several elephpants, ZCE study guides and even two tickets to the upcoming PHP Conference in London.

Now my favorite presentation took of. Ibuildings own Javascript evangelist Boy Baukema. He talked about of course Javascript and what made it interesting for me was the fact that he made comparisons between upcoming new features in PHP 5.3 and already existing features in Javascript like Lambda functions and Closure. I will post a link towards the presentation soon.

Robert Jan Verkade founder of Eend.nl  talked about why PHP developers should be nice to frontend and visa versa. Personally I do not have any bad experiences on this subject but I can imagine a lot of developers do. He said communication is key. Isn’t this so true for all parts of life! But if communication is faulty on your work floor he spoke about some key principles what you can do to minimize conflicts.

And that is a wrap.  I would like to thank all the speakers and the organization phpGG for  making my Saturday a very good one. I hope to see more of these days organized in the future. If not for the great presentations, than for the wonderful networking you can do. It is always fun to see new and familiar faces.
I hope to be able to post links to the presentations somewhere this week. In the meantime you can checkout Flickr, there are some pictures definitely going to be posted there under the tag: phpggfs

Warm winter greetings from Belgium,
Nick Belhomme
Your PHP5 Zend Certified Engineer

[UPDATE]

Ok as promised  here are the slides:
* Flex and AIR for PHP programmers by Mihai Corlan

*  Javascript: 8 Reasons every PHP developer should love it by Boy Baukema

* phpWomen

Using FaceBook as a marketing tool

Dear readers,

After playing a while on facebook I have started my very own fanpage.  Yeps you can now besides, Flickr, Twitter, this blog and many more follow my adventures also on facebook. 🙂

Some fans already started the Nick Belhomme Facts. You ought to check it out, it is a great laugh.

I will be adding some great games as Facebook applications mostly written in Action Script 3. You can check out my very first. http://www.new.facebook.com/pages/Nick-Belhomme/35013689614

I will market them all under the label : Simple Mad Productions.

Hope you have fun playing them.

Warm winter greetings from Belgium,
Nick Belhomme

Commented-out Code is rotting code

One of the things I really hate, and programmers should really avoid is commenting-out code. Do NOT do this!

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
//curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
//curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile");
//curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile");
//curl_setopt($ch, CURLOPT_COOKIE, session_name() . '=' . session_id());
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

curl_setopt($ch, CURLOPT_URL, 'http://www.testingsite.com');
$result1 = curl_exec($ch);

curl_close($ch);
?>

You all have seen code like this. Commented-out code you do not know why it is there and if it should be deleted.

IF you work in team or if you work on the code yourself and coming back to it after some while, you and others will not have the courage to delete it. Everybody thinks it is there for some reason and it should not be deleted, because of too important. In the end they all clutter up fine code and make it a rotting code.

Why are those lines of code commented? Are they important? Where they left as a reminder for a change at hand? Or is it just dead code nobody ever took the time to clean up? Aren’t cookies used anymore and why not? Should it be enabled again? Why was the decision made to comment it out. A million questions arise. Those questions make it harder for the reader of the code to understand the story clean code is trying to convey. Remember you are not just writing programs you are writing stories through code. You are not a programmer, you are a story teller. Stories should get better over time and changed to today’s thinking.

Keep your code clean, just delete the code, today we have source revision control systems as a reminder of old code. Use that. You will not loose the code, SVN remembers. Promise.

Warm winter greetings from Belgium
Nick Belhomme