Archive for the 'programming' Category

Always verify your variables!

Working at the technology team in fronter I see a lot of code, and I review patches on a daily basis. One thing you learn after a while is to see beyond the code that is in front of you: patterns emerge, you start to see problems that can arise because of a patch that maybe looks clean from the outside. We have staging tools and review applications that helps facilitate the process that we go through, and we have a process now that makes patching much easier than it was earlier ( it’s a ongoing process – you can always get better ).
Read more »

phpm

4 years ago I wrote a small program called phpm that I used for php function lookup when coding in vim. since then I’ve crossed over to ZendStudio and I’m now using that for my everyday work. But: every now and then I’ve had requests regarding phpm and if I can’t digg up the sources, and I’ve said: “sorry, but those are lost”. Until today: I went through a old HD, digging through backups and files: and suddenly phpm resurfaced!

So, today I can put the sources up here again if you still are interested. I’m not going to develop any further on it, so if someone wants to continue the development on it: please contact me on this blogpost.

The files:
* phpm
* the xml files – you need these too
* optional phpdocumentor template that will generate a xml file from your project

Remember that the xml files from the projects included in the xml package are old, and is there now only for a reference on how the program is set up. I’m not sure if the generate.php script will actually generate a correct php.xml file since there might have been changes in the documentation process the last 4 years.

I have tested the script out and it is still working, so there you go: a little new years present from my good old backup HD to you :) Let me know how it works out for you.

Firebug workgroup

Firebug is a tool I’m using on a daily basis, and the workgroup is now being built up. I was reading a post on ajaxian.com that John Resig will now spend 50% of his time on Firebug: Starting this week about half of my time at Mozilla is going to be spent driving the direction of the brand-new Mozilla Firebug team, he is also joined by Rob Campbell. With this team in place I think we will see a good improvement on Firebug and maybe even more extensions appearing in the near future.

Design Patterns

As a programmer you will after a time start to recognize certain patterns, or things you have been doing in the past repeating itself over and over. You are not the first: a design pattern is a general reusable solution to a commonly occurring problem and will help you when it comes to solving your day-to-day programming.
Read more »