Archive | Development RSS feed for this section

Developers: Beware of scams posing at pre-employment tests on Craigslist.

I occasionally check-up on the web developer jobs on craigslist.org, and this is the second time this month I’ve noticed this particular scam. When I realize what these asshats are trying to pull, it enrages me. I figured I’d write about here to warn others. In case craigslist pulls the ad here it is:

We need [...]

Dear PHP, I think it’s time we broke up.

Dear PHP,

We’ve been together for about five years now. I’ve had a lot of good times and I’ve really enjoyed being with you. However, the more we work together, the more concerned I get about our future. I’m sorry, but you don’t have the elegance that inspires me to want marry you. I think it’s [...]

How to Develop A Web Portfolio When You’re a Newbie

It’s been some time since I last checked in since I’ve been so busy juggling projects. However, I wanted to make a quick update this weekend. I thought this would be a good topic.

Most of my readers I suspect are experienced web developers, but not everyone. Unless you have a formal education in software development [...]

Bleeding Every Last CPU Cycle from PHP

Like most languages, PHP allows developers to accomplish the same tasks using several different methods. I think most of us stick with whatever habits we fall into without really ever examining which methods might be the most efficent: Is there any performance difference between for and while? Is the ternary operator slower or faster than [...]

The secret to making a “contact us” form that gets used.

A case study
One of the most interesting projects I’ve been involved with was developing and managing a site for an online automotive accessories retailer. At it’s peak, the site was serving over 20,000 sessions a month, and processing over $1M/yr in sales on the website alone. It was the first large scale projects that I [...]

Picking the perfect font for writing code.

Programmers use a lot of tools throughout the day. Some of them are pretty obvious: a fast PC, wide monitor (or three), a robust IDE, and good coffee. Other items tend to get overlooked a bit more often: a quality keyboard, top-notch chair, and natural lighting. However, the most underappreciated tool of all is the [...]

A simple method to toggle a bit column (MySQL, SQL Server, and others)

I’ll occasionally see SQL code that looks something like this:
UPDATE products SET
in_stock = CASE WHEN in_stock = 1 THEN 0 ELSE 1 END;
Or sometimes the developer tries to accomplish the same thing with an overly complex subquery. We can greatly simplify what we’re trying to do with just this query:
UPDATE products SET [...]

10 things you (probably) didn’t know about PHP.

PHP is simultaneously the most infuriating and joyful languages I’ve ever worked with. I say “infuriating” primarily because the function names are so inconsistant. Despite the fact that I use it almost everyday, I still have to think to myself “Is it str_pos or strpos? str_split or strsplit?” On the other hand, occasionally I’ll stumble [...]