Programming – the important of design patterns

Posted on

It’s common sense to have some concrete design in your software not just for other people to understand your code, but also later when you have to modify your own project it will save you time.

You could be debugging in spaghetti code and try to “fix” 1 bug and cause 32 more defects to appear.

That’s my situation right now. Except before I allow any bugs to appear I have to consider putting everything into a new design that makes more sense. My approach would be the MVC approach (Model View Controller)

Model: the template
View: the GUI
controller: the code that does all the work

The view would talk to the controller for some data to be calculated.
The controller would look at the model while processing the requested data.
The model is .. just there like a confused bf passing stuff to his woman when she needs something.

Ok I’m done talking, lets start revamping this mess.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s