Phil Wallach

I follow where my mind leads …

Phil Wallach header image 4

Entries Tagged as 'Programming'

PHP profiling: comparisons

June 17th, 2009 · No Comments · Programming

An application I created used a lot of MySQL ENUMS.  They are kind of useful, in that the value of an ENUM column does not need a lookup.  The downside is that it lead to a lot of string comparisons in the code, and this became a prime suspect when performance degraded.
However a colleague of [...]

[Read more →]

Tags:

Embracing braces: please don’t

October 25th, 2006 · No Comments · Programming

In  Making Wrong Code Look Wrong Joel writes:
Even more subtle:
if (i != 0)
    foo(i);
In this case the code is 100% correct; it conforms to most coding conventions and there’s nothing wrong with it, but the fact that the single-statement body of the ifstatement is not enclosed in braces may be bugging you, because you might be [...]

[Read more →]

Tags:

VentureBlog: Chris Anderson Strikes Again: The Economy of Abundance

October 25th, 2006 · No Comments · Programming

What does it mean when the cost of supply (bandwidth, storage, processing speed) is effectively zero?  Does this change how businesses work?
It is easy to say yes, but I have an objection.  The caveat is that software is not free.  The problem is not even that software is expensive.  The problem is that good software [...]

[Read more →]

Tags:

Streamlining CSS – Part II

October 9th, 2006 · No Comments · Programming

Eric Meyer’s comments on Streamlining CSS sparked some further thoughts (always a good thing).
Eric was (unsurprisingly) talking about changing the standard (and therefore browser behaviour), which I had (also unsurprisingly) considered to be way beyond the scope of what I could consider.  My approach was therefore to focus on the build system, which was not only [...]

[Read more →]

Tags: