What Do You Care Most About When Reviewing Someone Else’s Code?

Published on Jun 10, 2013 by Jamie Munro

I wrote an article a few months ago called Compelling Interview Questions where buried deep in the middle under several open-ended technical questions I asked the question “What Do You Care Most About When Reviewing Someone Else’s Code?”

The funny part about this when you read a few lines below I follow it up with I’m not looking for anything in particular; just some generic catch-phrases that most people throw out there.  E.g. properly indented code, no large comment blocks, documentation to explain a complex block of code, etc…

Ask me today what I expect from this question and my answer is totally different!  Today being as I write this article – ask me in the present and let’s see if my answer changes…

Read more >

Tags: Optimization | php | socket server | PHP | interview | Rants | clean code

How to create a socket server in PHP

Published on Mar 2, 2009 by Jamie Munro

Ever want to build a chat application or perhaps even a game? If so, a socket server will help you get started. Once you understand the underlying functionality of creating the server, enhancing it is just as easy.


The way a socket server works is, it will be running continously and waiting for a client to connect to it. When a client connects, our server will add it to our list of clients and begin waiting for messages from that client.


Without further adieu, here is the full source code:

Read more >

Tags: php | chat server | socket server | Theory | PHP