Archive of posts for 2012”
Decluttered Elevating Desk
0 commentsAuthor: Steven Vachon
Apparently, I have a computer job.
Sitting at the desk all day takes its toll on your shoulders and eventually your health, so I decided to purchase an elevating, or “height-adjustable” desk. Exercise aside, I am now healthier, always comfortable and get more work done in less time as I require fewer body breaks.
There was a downside to this, however: the cables! Read more
Benchmark: PHP array_splice vs. unset & array_values
0 commentsAuthor: Steven Vachon
If you’re wondering which of these two popular techniques for removing array indexes is fastest, this should be of some help. Read more
Pretty Query String Booleans
0 commentsAuthor: Steven Vachon
Beautifying parts of your work is never a bad idea. I just wish that I could remember where I got this idea because it really is a neat one. Read more
Benchmark: PHP Reverse Array while vs. for vs. foreach
0 commentsAuthor: Steven Vachon
When looping through an array in reverse and wondering which was faster while finding nothing on Google, I put this benchmark together. Read more
Benchmark: PHP strlen vs. count (and sizeof)
0 commentsAuthor: Steven Vachon
I was writing some code that generated a string from an array and came across a pretty rare situation where I could either get the length of that array or the length of the assembled string. Wondering which was faster and finding nothing on Google, I put this benchmark together. Read more