Recent Articles / Archives

MVC (Model-View-Controller)

Many of students and starter programmer are unaware of the MVC paradigm. This is my attempt to let them visualize how code can be highly maintainable and reusable by applying MVC pattern.

There are various design patterns already in existence which provide considerable benefits when applied. One such pattern is the MVC (Model-View-Controller) paradigm, which divides your application into three interoperable components:

  • Model: Represents the business data and any business logic that govern access to and modification of the data. The model notifies views when it changes and lets the view query the model about its state. It also lets the controller access application functionality encapsulated by the model.
  • View: The view renders the contents of a model. It gets data from the model and specifies how that data should be presented. It updates data presentation when the model changes. A view also forwards user input to a controller.
  • Controller: The controller defines application behavior. It dispatches user requests and selects views for presentation. It interprets user inputs and maps them into actions to be performed by the model. In a web application, user inputs are HTTP GET and POST requests. A controller selects the next view to display based on the user interactions and the outcome of the model operations.

Adhering to the MVC design pattern provides you with numerous benefits:

  • Separation of design concerns: Because of the decoupling of presentation, control, and data persistence and behavior, the application becomes more flexible; modifications to one component have minimal impact on other components. You can, for example, create new views without needing to rewrite the model.
  • More easily maintainable and extensible: Good structure can reduce code complexity. As such, code duplication is minimized.
  • Promotes division of labor: Developers with different skill sets are able to focus on their core skills and collaborate through clearly defined interfaces.

Happy coding!!!!

Short Love Conversation

What a girl wants to hear

Girl: Thanks for the fun day

Boy: No Problem

Girl: Can I ask you few questions?

Boy: Sure

Girl: And… Be honest

Girl: Have I ever crossed your mind?

Boy: No

Girl: Do you like me?

Boy: No

Girl: Do you want me?

Boy: No

Girl: Would you cry if I left

Boy: No

Girl: Would you live for me

Boy: No

Girl: Would you do anything for me

Boy: No

Girl: Choose me or your life

The girl ran away in depression The boy ran after her and told her

The reason you never crossed my mind because Your always on my mind

The reason why I don’t like you is because I love you

The reason I don’t want you is because I need you

The reason why I wouldn’t cry if left because I’ll die if you left

The reason I wouldn’t live for you is because I would die for you

The reason I’m not willing to do anything for you is because I would do everything for you.

The reason I choose my life is because you are my life.

Source: Copied from a shared video on facebook

Update Microsoft Security Essentials on Proxy

If you have problems updating the MSE (Microsoft Security Essentials) anti-virus files due to a proxy server then follow the following steps

  1. Go to, Start> All Programs > Accessories.
  2. Right Click on the “Command Prompt”.
  3. Click on “Run as Administrator”.
  4. On the opened command prompt type “netsh winhttp import proxy ie”.
  5. Open MSE, update it and voila it’s done.

Enjoy the updated antivirus.

August 5, 2010 · Awareness · Comments (1)
Next Page »