Advanced Web Technologies Lecture #3 By: Faraz Ahmed.

Slides:



Advertisements
Similar presentations
OBJECT ORIENTED PROGRAMMING M Taimoor Khan
Advertisements

OOP Design Patterns Chapters Design Patterns The main idea behind design patterns is to extract the high level interactions between objects and.
Week 8, Class 3: Model-View-Controller Model-View-Controller Why? What? How? Example: Barnyard Simon for the Web Question: Where should we use the command.
March Ron McFadyen1 Observer P Also known as Publish-Subscribe Applied in order to implement the Model-View Separation principle (see.
MVC Nick Lopez Duplication of course material for any commercial purpose without the explicit written permission of the professor is prohibited.
CS 290C: Formal Models for Web Software Lecture 10: Language Based Modeling and Analysis of Navigation Errors Instructor: Tevfik Bultan.
System Architecture Lecture 3 CSE 111 Spring /22/20151Copyright William E. Howden.
Graphical User Interface (GUI) Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Managing Agent Platforms with the Simple Network Management Protocol Brian Remick Thesis Defense June 26, 2015.
The Composite Pattern.. Composite Pattern Intent –Compose objects into tree structures to represent part-whole hierarchies. –Composite lets clients treat.
Object-Oriented Analysis and Design
Chapter 13: Object-Oriented Programming
Design patterns Observer,Strategi, Composite,Template (Chap 5, 6)
Application Architectures Vijayan Sugumaran Department of DIS Oakland University.
1 Object Oriented Design & Patterns Part 1. 2 Design Patterns Derived from architectural patterns: –rules for design of buildings –describe common problems,
Model View Controller (MVC) Architecture. Terminology and History MVC evolved from Smalltalk-80 Has become a key pattern in web based applications – If.
Dependency Injection and Model-View-Controller. Overview Inversion of Control Model-View-Controller.
Lecture 7: Objects and Interaction 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271 
MODEL VIEW CONTROLLER A Technical Seminar Report submitted to
MVC pattern and implementation in java
Sikuli Ivailo Dinkov QA Engineer PhoneX Team Telerik QA Academy.
MVC and MVP. References enter.html enter.html
JavaScript II ECT 270 Robin Burke. Outline JavaScript review Processing Syntax Events and event handling Form validation.
Computer Graphics Lecture 28 Fasih ur Rehman. Last Class GUI Attributes – Windows, icons, menus, pointing devices, graphics Advantages Design Process.
An Introduction to Design Patterns. Introduction Promote reuse. Use the experiences of software developers. A shared library/lingo used by developers.
Features and Updates Native UTF-8 support Innovative user interface to simplify everyday tasks Enhanced Photo Gallery 2.0 Windows-style control panel interface.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 343 Davis Hall
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Architectural Styles.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
C H A P T E R T E N Event-Driven Programming Programming Languages – Principles and Paradigms by Allen Tucker, Robert Noonan.
Chapter 6 – Architectural Design CSE-411, Dr. Shamim H Ripon.
COMP 6471 Software Design Methodologies Winter 2006 Dr Greg Butler
Swing MVC Application Layering A Layer is a collection of components that Perform similar tasks. Perform similar tasks. Isolate implementation details.
Design Patterns Façade, Singleton, and Factory Methods Team Good Vibrations (1)
An Introduction to Programming and Object Oriented Design using Java 3 rd Edition. Dec 2007 Jaime Niño Frederick Hosch Chapter 18 Integrating user interface.
Model View Controller MVC Web Software Architecture.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 18 Slide 1 Software Reuse.
Review Class Inheritance, Abstract, Interfaces, Polymorphism, GUI (MVC)
12 Chapter 12: Advanced Topics in Object-Oriented Design Systems Analysis and Design in a Changing World, 3 rd Edition.
Concordia University Department of Computer Science and Software Engineering Click to edit Master title style ADVANCED PROGRAMMING PRACTICES Model View.
SOEN 343 Software Design Section H Fall 2006 Dr Greg Butler
Object Arts.com “Twisting the Triad” The evolution of the Dolphin Smalltalk MVP framework Andy Bower Blair McGlashan Object Arts Ltd.
MVC WITH CODEIGNITER Presented By Bhanu Priya.
 An essential supporting structure of any thing  A Software Framework  Has layered structure ▪ What kind of functions and how they interrelate  Has.
1 Java Server Pages A Java Server Page is a file consisting of HTML or XML markup into which special tags and code blocks are inserted When the page is.
L10: Model-View-Controller General application structure. User Interface: Role, Requirements, Problems Design patterns: Model – View – Controller, Observer/Observable.
Observer / Observable COMP 401 Fall 2014 Lecture 14 10/7/2014.
Mach-II Primer Ben Edwards An Introduction to Mach-II: An event-based, implicit invocation web-application framework.
Java - hello world example public class HelloWorld { public static void main (String args[]) { System.out.println("Hello World"); }
Model View ViewModel Architecture. MVVM Architecture components.
SDJ INFOSOFT PVT. LTD. 2 BROWSERBROWSER JSP JavaBean DB Req Res Application Layer Enterprise server/Data Sources.
High degree of user interaction Interactive Systems: Model View Controller Presentation-abstraction-control.
Class Diagrams, MVC and Design Patterns CS153P Session 4.
Special Interest Groups - a Grid Service Dr. Algimantas Juozapavicius Vilnius University EGEE’06, Geneva, September.
Presented by Alexey Vedishchev Developing Web-applications with Grails framework American University of Nigeria, 2016 Intro To MVC Architecture.
CSC 222: Object-Oriented Programming
MPCS – Advanced java Programming
Observer Design Pattern
MVC and other n-tier Architectures
CS102 – Bilkent University
Model-View-Controller (MVC) Pattern
Patterns.
Object Oriented Design Patterns - Behavioral Patterns
Software models - Software Architecture Design Patterns
Lecture Set 11 Creating and Using Classes
Event loops 17-Jan-19.
Advanced ProgramMING Practices
Week 6, Class 2: Observer Pattern
Advanced ProgramMING Practices
Presentation transcript:

Advanced Web Technologies Lecture #3 By: Faraz Ahmed

Contents 0 Formal Notation Tool 0 MVC 0 References

Problem? A simple word processer would not be able to get those special set notations

LaTeX 0 A language 0 A specific ‘dialect’ of TeX for mathematicians/scientists

TeX 0 TeX is a system AND also a type setting language. 0 To “make” a TeX system, you need to install several components.

Installation Steps! 0 Daemon Tools ( or another similar tool). 0 Download ISO from the given link in notes. 0 Install MiKTeX (compiler) 0 Install TeXnic Center (for editing)

Relation

Design Patterns 0 Solutions to commonly occurring problems. 0 Templates on how a problem can be solved. 0 Half way through today I realized design patterns should have been there in the course!

An example to whet the appetite! 0 Singleton 0 Create a Public Class 0 Create a private constructor 0 Create a private static/shared variable 0 Initialize and expose that variable using a function/property

MVC- Motivation[1] 0 All applications contain data being manipulated by an interface. 0 That data should be disconnected with the interface.

Structure 0 Model 0 The data (ie state) 0 Methods for accessing and modifying state 0 View 0 Renders contents of model for user 0 When model changes, view must be updated 0 Controller 0 Translates user actions (ie interactions with view) into operations on the model 0 Example user actions: button clicks, menu selections

Basic MVC 0 Setup 0 Instantiate model 0 Instantiate view 0 Has reference to a controller, initially null 0 Instantiate controller with references to both 0 Controller registers with view, so view now has a (non-null) reference to controller 0 Execution 0 View recognizes event 0 View calls appropriate method on controller 0 Controller accesses model, possibly updating it 0 If model has been changed, view is updated (via the controller)

Extended MVC 0 Background: Observer pattern 0 One object is notified of changes in another 0 In extended MVC, view is an observer of model 0 Application within MVC 0 Asynchronous model updates 0 Associated view must be notified of change in order to know that it must update 0 A model may have multiple views 0 But a view has one model 0 All views have to be updated when model changes

C and C++

Disadvantages 0 Difficult to implement 0 Not suitable for smaller applications 0 Different, isolated development by UI developers, coders etc. could lead to more time. 0 Tightly coupled 0 Placing attributes that are not relevant to model e.g. popup

Advantages 0 Loose Coupling 0 Easy to unit-test 0 ??

Variants 0 The document-view Model 0 But tightly couples both view and controller.

References 1) “Model-View Controller Design Pattern”, state.edu/~rountev/421/lectures/lecture23.pdf, visited on 18th Jan 2011http:// state.edu/~rountev/421/lectures/lecture23.pdf 2) “Model-View-Controller”, visited on 18th Jan 2011http://msdn.microsoft.com/en-us/library/ff aspx