version: #5 (current)  |  last edited by: Mike Ho  |  on: tuesday, october 13, 2009, 3:36 pm pdt (about 7 years ago)

The Code Generator: It all starts with the data model

Qcodo was designed for truly rapid application development which focuses on quick prototypes and rapid iterations. The intersection where design meets code always starts with the data model, and the expectation is that the data model will change, grow and adapt throughout the life of the application. These changes would inherently ripple out through to the rest of the code base. But instead of these changes being a burden to the development team, Code Generation can be implemented to make those changes occur with little to no interruption.

By analyzing the internal structure of your data model, Qcodo can generate not only the object code (the Object Relational Model), but also basic HTML pages to create, restore, update and delete those objects. This gives developers a great starting point to begin prototyping, even before a single line of code has been manually written. It allows the developer to focus more on writing business logic, implementing usability, etc., instead of spending time with more tedious and mundane (though required) database to object to HTML code.

These implementations and customizations are written in a code base separate than the code that is generated. So the key is that whenever changes are made to the data model, customizations in your PHP objects and HTML will be preserved, even when the code is regenerated.

Qforms: Bringing order to the madness

While PHP is great at allowing developers to rapidly create webpages, the inherent lack of structure does allow many one-off coding constructs to creep into your code, inherently making it more difficult to refactor your code. The result is that there is more code duplication and applications, especially as they grow in size, become very unwieldy to maintain.

Qforms is a completely object-oriented stateful event-driven architecture for HTML forms processing and rendering. (That's a mouthful. =)

In short, instead of single code bases where PHP logic and display HTML are intertwined together in sometimes confusing ways, Qforms allows developers and designers an easy divide to keep logic in one place, and design in the other.

But what's more powerful than just this separation of logic and presentation is the inherent event-driven architecture to manage forms, web controls and state, and that Qforms provides a single platform for developers to write all web controls in the same fashion. This allows for significantly less code repetition, and common controls can be grouped together into single classes.

Copyright © 2005 - 2017, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.