Really, I am not a huge fan of the MVC pattern. It places, sometimes, arbitrary guidelines regarding what should be placed in the Model, the View and the Controller. However, it is better that the SEIOF pattern! (Shovel Everything Into One File)
In my opinion, a logical separation of interests is best and basic. One file for the GUI, one or more files for the application or business logic and one or more containing global types, classes, utility code, etc...
Placing all that into one large bucket can be confusing. Please... If you are a programmer, please, please separate your code a little bit. Help save the next programmer's sanity.
Oh... And those long methods/functions/procedures... While in college I was taught that a method, function, procedure, subroutine, what-have-you, should be less than a page of printed code. While that isn't always possible, it is still a guideline that I try to observe, and firmly believe other programmers should as well.
No comments:
Post a Comment