Monthly Archive for May, 2011

Behavior of Ant Foraging Algorithms, and their Application to the Knapsack Problem

This is a paper I did for my artificial intelligence class. It’s an area I would like to explore further some time. AI and emergence algorithms fascinate me.

The way the OOP on this turned out was pretty good,  but I think I used too many concrete classes and not enough interfaces. But then on the next java project I did, I used too many interfaces and had too much structure, without enough code. Didn’t follow the PMF pattern ;) . I’ll find a good balance eventually. Continue reading ‘Behavior of Ant Foraging Algorithms, and their Application to the Knapsack Problem’

PHP coders have no class

I started web programming like many others: modifying code packages such as wordpress, joomla, and drupal. I was just getting used to coding paradigms (and have since gone from 20 cents to several dollars of techniques) and was doing more hacking than designing. Since then, I’ve learned to OOP, and have learned its elegance. Sadly, legacy projects that are more procedural have not developed in the same way I have, especially in the realm of PHP.  Andrew Rickmann elaborates:

Andrew Rickmann — WordPress coders have no class.

Although from a code aspect wordpress may be somewhat behind, I find it is incredibly useful and elegant from an interface and usability perspective.