Architecture
MVC Architecture
MVC stands for Model View Controller, an abbreviation for Model-View-Controller, a software design paradigm. Model Describes your application. View Displays your data. Controller Controls your application.
Wikipedia: Model, View, Controller
|
![]() |
|---|
Model - simply a plain XML file
The model describes your application and can be reused across different hardware and software platforms (PC, iPhone, Tablets, etc.). It does not care about the user interface (UI) or presentation.
The model is written in XML and stored on a web server.
The example above defines a data source from the Northwind database.
The model allows data to be fetched using predefined SQL. It also allows querying and sorting data by Customer, City, and Country.
View - simply an ordinary HTML file
The view is the UI (User Interface). It is typically an HTML page that displays and optionally inputs data:
My First Web Application
The HTML page above uses a scripting language to create an AppML object and displays the data in a div with id="Place01".
The "appml.js" script file is used.
Controller - simply a browser and server-side script
The server-side script controls the application in the following ways:
- Receives request data from the browser
- Returns the model and data to the browser
- Receives updated data from the browser
- Updates data on the server
- During data communication, please perform data security validation.
The browser script controls the application in the following ways:
- When the page loads, you can load
the controller onto the page. - Using the controller, you can create on the page
object. - When executing
the object, it requests data from the server. The object receives data from the server (using the data model). The object (or your code) displays your data on the page. - (Optional) The web user modifies the data.
- (optional)
It can send a modification request to the server.
Typical web files and folders:
|

Web folder:Demo
Data folder:Data
Images folder:Images
Models folder: Models
Applications:Demo.htm
Styles:Demo.css
Fast, flexible application development
Rapid Application Development (RAD) is not only a requirements elicitation method but also an integrated software development approach. The goal of RAD is to quickly deliver system solutions, where technical elegance is secondary to release speed.
An application prototype can run directly from the application model without any coding.
Wikipedia: Rapid Application Development
Agile software development is a method that evolves step by step based on collaboration between users and developers.
Wikipedia: Agile Software Development
Declarative Programming
Software development often fails to meet expected schedules and budgets. Coding errors also occur frequently. This is because computer code is hard to develop, test, and maintain.
Coding is alreadyoutdated. You should describe more about what to do, rather than how to do it.
Use
Use
Wikipedia: Declarative Programming
Code First
Web application development can use the following two different approaches:
-
Code First: use pre-programmed, pre-tested code, adding only new application specifications.
-
Contract First: write the application from scratch using complete application specification requirements.
Service-Oriented Architecture (SOA)
Web Service is a data interface specified by a URL, like a web page. But unlike a web page, it is only a way to convey information.
A typical Web Service provides data to the page.
Use
Original Web Services The design uses XML standards such as SOAP, WSDL, and UDDI.
Modern Web Services For example,
- Easier to understand - can be read by us
- Lightweight - no unnecessary code or markup
- Easy to implement - no development tools required
Service-Oriented Architecture (SOA) is a component model that connects different functional units of an application (called services) through well-defined interfaces and contracts between these services. The interfaces are defined in a neutral manner and should be independent of the hardware platform, operating system, and programming language that implement the services. This allows services built in such diverse systems to interact in a unified and common way.
Advantages of Web Services
- Web services require only a small amount of code
- Web services are designed to handle a limited set of tasks
- Web services use HTTP-based communication protocols
- Web services are independent of the operating system
- Web services are independent of the programming language
- Web services can connect different applications, systems, and devices
- Web Services can easily publish information
- Web Services facilitate rapid application development
For example, a web service can be designed as a small program that provides other applications with the latest stock trading prices.
Web services use the HTTP protocol to communicate with other systems, and web services are independent of operating systems and programming languages.
An application that calls web services will always use the HTTP protocol to send requests. The calling application will never care about the operating system or programming language running on the other computers.
Web services can create new possibilities for more enterprises because they provide a simple way to distribute large amounts of information.
For example: flight schedules and ticket reservation systems.
Cloud Computing
Cloud Computing is an extension of SOA: Application-as-a-Service, Storage-as-a-Service, and Data-as-a-Service.
For most people, cloud computing is storing data on the web:
- Email and calendar
- Documents and spreadsheets
- Books, notes, to-do lists
- Music, pictures, and movies
- Databases and applications
The reasons are obvious:
- Access data from around the world
- Share my data with others
- Hardware upgrade or crash
