Be the first to like this
Controversy persists to this day about the relative merits of dynamic languages such as PHP and Python versus static languages such as C# and Java. We’re finding more and more that the difference isn’t so much about static or dynamic typing, but more about the cultures of different languages. In this article, I discuss an efficient representations of SQL trees in a database, an algorithm for creating that representation, and a PHP implementation. The PHP implementations uses objects in a way foreign to many developers: rather than using objects to represent nouns (data), it uses a class to represent a verb (an algorithm.) I make the case that programmers shouldn’t feel compelled to create new classes to represent every data item: that verb objects often provide the right level of abstraction for many tasks.