Submitted by Jim Cooper on Wed, 02/27/2013 - 00:00
Forums

Hi Niels,

I would like to connect with you some time and get caught up.

Can you do me a favor and explain in your words what the following title means:

Developing Modern Web Applications Using MVC

I'm doing three sessions at the TUG TEC Conference this year and Leo put this title in to hold my spot. I like it. The actual session is developing Web applications using jQuery, jQuery Libaries, JSON, AJAX, and RPG. That would be a very long title. I like the MVC title but not sure people will make the connection. Also, it seems to me that the model and controller are one in the same on IBM i.

Can you enlighten me with your wisdom. :)

Jim

Niels Liisberg

Thu, 02/28/2013 - 00:00

Hi Jim,

I am in Mexico right now and have only an ipad so typing long explantaions is not an option. But MVC is the idea to seperate the logic into where it belongs. On the IBMi the model runs on top of db2 with the business logic in rpg or php. The controller is typlically some javascript in jquery or extjs and the view is dynamic selected or generated by jquery or ext producing the html on the fly.

You only need to know one thing regarding best pratice in MVC: the thinner the bindings are between the M, the V, and the C the better design...the easier it is to reuse or... Think about you have a web page and you want to make an ipad app... In a perfect design you only create the new view an add the ipad controller logic and you are golden...

Niels Liisberg