Recently I started a somewhat involved project that should make it much easier for me to design web pages: The last time I worked a large project it became increasingly difficult to manage all the code as the project grew. But as I’ve come to adopt classes and objects it has become much easier to implement and manage code. I’m use to writing large chunks of code consisting mainly of variables, loops and functions. I usually try to organize this code by separating different types of functions into different files: I still end up with a mess of functions. Some functions only being used once. And a mass of code I have to sift through to figure out how some variable is being used (or misused). One thing I love about objects and classes is the organization. If I have a range of variables associated to only one purpose then I can use an object related to a purpose to store specific properties for very specific functions. For example with mouse tracking I do som...
Comments
Post a Comment