Putting into practice Flashcards

(5 cards)

1
Q

What’s the guideline for which pattern to use in developing an application

A

1- Option layer by layer
2- Option depending on the technological platform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Main options in the domain layer

A

Transaction Script
– Best for simple apps
– Procedural logic, easy but not scalable
Table Module
– For moderate complexity
– Logic tied to DB tables, OK for form-based apps
Domain Model
– For complex/extensible logic
– Full OOP, harder to map to DB but powerful

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Main options for the data layer:

A

It depends on the choice of the domain layer
Transaction Script → Row Data Gateway or Table Data Gateway
(+ Optimistic Offline Lock if editing before saving)

Table Module → Table Data Gateway
(+ Unit of Work for concurrency)

Domain Model

Simple: → Active Record

Complex: → Data Mapper

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Main options for presentation layer

A
  • Use client side frameworks for interactive apps
    -Use server side rendering for simpler HTML based apps
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

When is MVC used?

A

Model View Controller is used in both cases,
Model in Domain layer (handles data & logic)

View & Controller in Presentation layer

Controller:
- Page controller-> simple document
oriented sides (static + dynamic)

 - Front controller -> more complex and 
 interactive interfaces, both client and 
 server side

View:
- Template view: common, simple, server
page + client side
- Transform view: with XML input, allows
output formats
- Two step view: unusual, for very
complex view with different output
formats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly