rnagul wrote on Wednesday, June 13, 2012:
First of all, Let me say this is one of the best groups that I have been where the developers are so vocal and articulate in their communication.
I apologize in advance if I am overstepping any boundaries. Just had a few comments which I thought may prove useful.
I am in overall agreement with the comments made here. One can write bad code using any framework.
But what is required is creating some standard guidelines hand-in-hand with the current technologies, not sure how we would do that yet.
One of the things that we have learnt over the years customizing code is that code has to be readable, understandable. Currently there is way too many places in the OpenEMR codebase where php/html/javascript/SQL all intermingle causing the code to be unreadable at times, unclear, confusing causing delays and adding to the learning curve.
Even though Brady does a great job at being the gatekeeper for all patches/code that comes in, Thank you Brady!, there are times when such level of due diligence cannot be done.
Guidelines can be documented, but if not followed they do not provide much use. Some of these frameworks, MVC or non-MVC force convention which creates a uniform language of communication so to speak, reducing the amount of clutter in the PHP files.
I would vote for rework of the code, so we have a clear DAL, which can be used to add all kinds of overlaying functionality.
Whether we do it with a framework or write our own, I would leave it for higher powers to prevail, but certain MVC frameworks would be a great fit. One of the side benefits would be, we may be able to recruit some of the smarter minds out there that dabble in these frameworks.
My $0.02
Ramesh