Application Development Flashcards
How are applications are functionally split into?
- Frontend or Presentation Layer
- Middle or Application / Business Logic Layer
- Backend or Data Access Layer / Tier
What are the architecture of Presentation Layer?
Model-View-Controller (MVC) architecture
. model: business logic
. view: presentation of data, depends on display device
. controller: receives events, executes actions, and returns a view to the user
What does Business Logic Layer contain?
- Provides abstractions of entitites
- Enforce business rules for carrying out actions
- Supports workflows which define how a task involving multiple participants is to be carried out.
What is Object Relational Mapping?
Allows application code to be written on top of object-oriented data model, while
storing data in a traditional relational database.
Schema designer has to provide a mapping between object data and relational schema
Application opens a session, which connects to the database
* Objects can be created and saved to the database using session.save(object)
What is HTML?
HyperText Markup
Language (HTML)
* HTML documents contain
◦ text along with font specifications, and other formatting instructions
◦ hypertext links to other documents, which can be associated with regions of the text
◦ forms, enabling users to enter data which can then be sent back to the Web server
What is HTTP Protocol?
HyperText Transfer Protocol (HTTP) used for communication with the Web server
The HTTP protocol is connectionless
Information services need session information (using cookies).
What is a cookie?
A cookie is a small piece of text containing identifying information Sent by server to browser. Sent by browser to the server that created the cookie on further interactions. Server saves information about cookies it issued, and can use it when serving a
request. Cookies can be stored permanently or for a limited time
What is a web server?
A web server is software and underlying hardware that accepts requests via HTTP or its secure variant HTTPS
What is CGI (Common Gateway Interface)?
Common Gateway Interface (CGI): a standard interface between web and application
server
What is Representation State Transfer (REST)
Representation State Transfer (REST): allows use of standard HTTP request to
a URL to execute a request and return data
. returned data is encoded either in XML, or in JavaScript Object Notation
(JSON)
What are Big Web Services?
Big Web Services:
. uses XML representation for sending request data, as well as for returning results
. standard protocol layer built on top of HTTP
What is a Script?
A script is a list of (text) commands that are embedded in a web-page or in the server
* They are interpreted and executed by a certain program or scripting engine
* Scripts may be written for a variety of purposes such as for automating processes on a
local-computer or to generate web pages.
* The programming languages in which scripts are written are called scripting language
* Common scripting languages are VBScript, JavaScript, ASP, PHP, PERL, JSP etc.
What is client side scripting?
Client-side scripting is responsible for interaction within a web page. The
client-side scripts are firstly downloaded at the client-end and then interpreted and
executed by the browser
What is Server side Scripting?
Server-side scripting is responsible for the completion or carrying out a
task at the server-end and then sending the result to the client-end.
Numerous server-side scripting languages
◦ JSP, PHP
◦ General purpose scripting languages: VBScript, Perl, Python
What is DOM?
document object
model (DOM) is tree representation of the displayed HTML text