As scripts get larger, functions become more interrelated. Suddenly, youâ€™ve got ten functions on a page, six of them calling each other to accomplish one task, and another four working towards something else entirely. For someone taking a first look at this code, it certainly wouldnâ€™t be immediately clear which were meant to work together and which werenâ€™t. This is where objects come in.
Posted by Chris Cornutt at 10:20 am