Tag: Work

Occam's Razor Applies to Coding, Too

In the previous post I mentioned temporarily frakking up the comments here aboard StarshipTim.com, done while testing a feature I was putting together for a different project, and thought that since I'd solved the issue over there, fixing it over here would take all of five minutes.

Three nights later, I finally have it working. I still don't know quite why it broke in the first place; a compatibility issue with PHP versions and software updates and associated whooziwhatsises, to be sure, but specifically...still beats me.

However, I still could have fixed it in maybe half an hour instead of three days if I'd remembered the Holmesian credo to respect the simpler solution in the face of more complicated ones. I wanted my code to work within the bounds of nested PHP and MySql tables and cooperate with the database-oriented CMS. But the conflicts were making me tear my hair out (which is thinning enough on its own, thank you very much) and it finally occurred to me that I could accomplish the same goal with two lines of Javascript.

If you don't need the whiz-bang goodies and fancy whatsises, then—revelation—you don't have to use them. Go figure.

Anyway, the comments work now.

No Comments yet