Thursday, July 28, 2011

How Not To Hire Me

So I got a rather interesting email today.  Ever since I put my resume public a few months ago (even though it was taken off just 2 weeks later when I accepted a position), I've been getting emails quite often from recruiters looking for help. Most are mildly interesting and the majority I just glance over. But every once in a while I get one that takes me aback and makes me look deeper. Some of those turn out to be really good. And some of those are shockingly bad. This one is the latter...

Tuesday, July 26, 2011

Why I Don’t Use Autocomplete

Today’s IDEs (Integrated Development Environments) provide a lot of features that make development significantly easier. From error checking and debugging to intelligent syntax highlighting and refactoring, there are a significant amount of time saving features available. One of these commonly loved features I have disabled, and found it has made my life easier as well as the code I write better. The feature I am speaking of is autocompletion…

Friday, July 22, 2011

Are Traits The New Eval?

The upcoming release of PHP 5.4.0 includes a plethora of new features, including Traits. While I do believe this is a great feature with great possibilities, I also fear that it may fall into the category of often-abused-features such as eval(), goto, constants, the @ operator, class inheritance and regular expressions.

Monday, July 18, 2011

Random Number Generation In PHP

What is “random”?

When we talk about “random” numbers, we generally talk about two fundamental properties: Predictability and Bias. Both are closely related, but are subtly different. Predictability in reference to random numbers is the statistical problem of predicting the next value when knowing any number of previous values. Bias on the other hand is the statistical problem of predicting the next value when knowing the distribution of previous values.

Friday, July 1, 2011

Slides From "Cross Site Scripting and PHP Security" at NYPHP on 6-30-2011

As promised, I'm going to post the slides from last night's talk on XSS prevention with PHP here.  There was a fair turnout, with a few following the live stream of the talk.  I must thank those who came, as there was definitely some good interaction and questions.