SlideShare a Scribd company logo
Web Application
HTML, CSS, JS
Ingredients of a Web Application
● Front End
● Back End
● APIs
● Devices to support
● Accessibility**
Focus on Front End
Why? Where ? What? How?
Why ? - Naive User
Where ? - Internet [From Anywhere]
What? - Pictures are better way to express
communication than letters or journals
How? - HTML/CSS/JS
HTML - Structure
CSS - Design
Javascript - Behaviour
How to build a web application
● Viewports to support
● Devices to support
● HTML>CSS>JAVASCRIPT
● Way to communicate and get data
HTML Basic
● Significance of doctype
● <html>, <head>,<body>
● inline/block/table
● layouts
CSS Basic
● Selectors
● Box-Model
● Rendering
Javascript Basic
● Window, document
● Events - important for behaviour
● AJAX - Asynchronous **
● <noscript>
● Security
● Debugging - Ahh
● Everything is a Object eg function , var
anything(Native/Host)
● There are also these primitive
value types like Undefined, Null,
String, Boolean and Number that
aren't objects
● JS is Object-oriented language or Prototype
based language
"Prototype-based programming is a style of
object-oriented programming in which
classes are not present, and behavior reuse
(known as inheritance in class-based
languages) is accomplished through a process
of decorating existing objects which serve
as prototypes. This model is also known as
class-less, prototype-oriented, or instance-
based programming."
Prototype
● When you define a function within
JavaScript, it comes with a few pre-defined
properties
● The prototype property is initially an empty
object, and can have members added to it –
as you would any other object.
● Every object within JavaScript has a “secret”
property added to it when it is defined or
instantiated, named __proto__
● __proto__ property shouldn’t be confused
with an object’s prototype
var redbus = function(address){
this.address = "honolulu";
return this.address;
}
console.log(typeof redbus) //FUNCTION
"Function is a predefined object in
JavaScript, and, as a result, has its own
properties (e.g. length and arguments) and
methods (e.g. call and apply). And yes, it,
too, has its own prototype object, as well as the
secret __proto__ link."
console.log(redbus instanceof Function) //true
console.log(redbus.__proto__ == =Function.
prototype) // true
var rb = new redbus;
console.log(rb__proto__ ===redbus.prototype)
// true
console.log(rb_proto__===Function.prototype)
//false
This is known as prototype chain!
● Ends when prototype of any object is null
● By default Object's prototype is null
● Confusing - Yes , Everything is Object and
Function , no classess , no keywords as
public - private: "yet we challenge to make it
Object Oriented"
function Animal() {....}
Animal.prototype.walk = function(){
alert ('I am walking Gangnam style!');
};
function Monkey() {
// Call the parent constructor
Animal.call*(this*);
}
/ inherit Person
Monkey.prototype = new Animal();
Monkey.prototype.constructor = Monkey;
Monkey.prototype.sing = function(){
alert('Sing like OM');
}
var vishal = new Monkey();
vishal.walk(); vishal.sing();
This is Inheritance !
Can be checked by.
console.log(vishal instanceof Animal) // true
console.log(vishal instanceof Monkey) // true
In modern browser this can be achieved by:
Monkey.prototype = Object.create
(Animal.prototype);
Closures.
The pattern of public, private, and privileged
members is possible because JavaScript
has closures.
function Container(param) {
function dec() {
//uses secret
} //privileged
this.member = param;//public
var secret = 3;//private
var that = this;
this.service = function () {
return dec() ? that.member : null;
};//public
}
Enough OOPS!
Hoisting
● Function level scoping not block level like
C++, Java, C#
● Function declarations and variable
declarations are always moved (“hoisted”)
invisibly to the top of their containing scope
by the JavaScript interpreter. eg.
Memory Leaks
● garbage collection
● mark and sweep algorithm
● reason for memory leaks
● IE - Ohh yeah :P
● Possible scenarios
"Best Practices"
Good to follow!
Coding == Story Telling??
language agnostic
"A good story is one
which is easy to convey
and takes less time to
convey"
Developers need to convey code to
Browsers and other clients.
HTML5 - A bubble?
Why Facebook shifted back to native
application as compared to html5 ?
Reference
● WebPlatform.org
● Mozilla Developer Network
● Opera developer
Avoid w3schools if possible!
Assignment
http://apps.topcoder.com/wiki/display/~hello-
c/Quick-+48+hours%21+-+UI+prototype+-
+Customizable+eFlipbook+HTML+Prototype
Next session
● Performance
● Optimization
● Algorithms
- Thanks
@aquarius_vishal
http://www.vvishal.com

More Related Content

PDF
Web application
PPT
Web development basics (Part-7)
PDF
Javascript for Intermediates
PPT
Web development basics (Part-3)
PPTX
JavaScript operators
PPT
Web development basics (Part-2)
PPT
Web development basics (Part-5)
Web application
Web development basics (Part-7)
Javascript for Intermediates
Web development basics (Part-3)
JavaScript operators
Web development basics (Part-2)
Web development basics (Part-5)

What's hot (20)

PPTX
JavaScript Basics
PDF
WDB005.1 - JavaScript for Java Developers (Lecture 1)
PPT
Web development basics (Part-4)
PDF
A Deep Dive into Javascript
PPTX
Introduction to JavaScript Programming
ODP
JavaScript Object Oriented Programming Cheat Sheet
PPT
Web development basics (Part-6)
PDF
Object Oriented Programming in JavaScript
KEY
Learning To Walk In Shoes
PDF
Ruby on Rails: a brief introduction
PPTX
Complete Notes on Angular 2 and TypeScript
PDF
Lets talk-about-js
PPTX
Javascript basics for automation testing
PPTX
PHP Basics
PPTX
Object Oriented Programming In JavaScript
PPTX
Java scriptforjavadev part1
PPTX
Ajax search function
PDF
Kevin Whinnery: Write Better JavaScript
PDF
Spa with angular
PDF
Shootout! template engines on the jvm
JavaScript Basics
WDB005.1 - JavaScript for Java Developers (Lecture 1)
Web development basics (Part-4)
A Deep Dive into Javascript
Introduction to JavaScript Programming
JavaScript Object Oriented Programming Cheat Sheet
Web development basics (Part-6)
Object Oriented Programming in JavaScript
Learning To Walk In Shoes
Ruby on Rails: a brief introduction
Complete Notes on Angular 2 and TypeScript
Lets talk-about-js
Javascript basics for automation testing
PHP Basics
Object Oriented Programming In JavaScript
Java scriptforjavadev part1
Ajax search function
Kevin Whinnery: Write Better JavaScript
Spa with angular
Shootout! template engines on the jvm
Ad

Similar to Web application (20)

PPTX
JavsScript OOP
PDF
Basics of JavaScript
PPTX
Awesomeness of JavaScript…almost
PPT
Javascript Ks
PPT
Javascript quiz. Questions to ask when recruiting developers.
PPT
eXo SEA - JavaScript Introduction Training
KEY
Javascript tid-bits
PDF
JavaScript ES6
PPTX
JS Essence
PDF
JavaScript Abstraction
PPTX
JavaScript (without DOM)
PPTX
Lecture 5: Client Side Programming 1
PDF
JavaScript - Chapter 8 - Objects
PDF
Let's JavaScript
PPTX
Advanced JavaScript
PPTX
Introduction to JavaScript
PPTX
An Intro to Scala for PHP Developers
PDF
Testable JavaScript: Application Architecture
PPT
JavaScript Misunderstood
JavsScript OOP
Basics of JavaScript
Awesomeness of JavaScript…almost
Javascript Ks
Javascript quiz. Questions to ask when recruiting developers.
eXo SEA - JavaScript Introduction Training
Javascript tid-bits
JavaScript ES6
JS Essence
JavaScript Abstraction
JavaScript (without DOM)
Lecture 5: Client Side Programming 1
JavaScript - Chapter 8 - Objects
Let's JavaScript
Advanced JavaScript
Introduction to JavaScript
An Intro to Scala for PHP Developers
Testable JavaScript: Application Architecture
JavaScript Misunderstood
Ad

More from Om Vikram Thapa (20)

PDF
Next Set of Leaders Series
PDF
Integration Testing at go-mmt
PDF
Understanding payments
PDF
System Alerting & Monitoring
PDF
Serverless computing
PDF
Sumologic Community
PPTX
Postman Integration Testing
PDF
Scalibility
PDF
5 Dysfunctions of a team
PDF
AWS Must Know
PDF
Continuous Feedback
PDF
Sql views, stored procedure, functions
PDF
Confluence + jira together
PDF
Understanding WhatFix
PDF
Tech Recruitment Process
PPTX
Jira Workshop
PPT
Security@ecommerce
PPT
Understanding iis part2
PPT
Understanding iis part1
PPT
.Net framework
Next Set of Leaders Series
Integration Testing at go-mmt
Understanding payments
System Alerting & Monitoring
Serverless computing
Sumologic Community
Postman Integration Testing
Scalibility
5 Dysfunctions of a team
AWS Must Know
Continuous Feedback
Sql views, stored procedure, functions
Confluence + jira together
Understanding WhatFix
Tech Recruitment Process
Jira Workshop
Security@ecommerce
Understanding iis part2
Understanding iis part1
.Net framework

Recently uploaded (20)

PDF
August Patch Tuesday
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mushroom cultivation and it's methods.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Approach and Philosophy of On baking technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Machine Learning_overview_presentation.pptx
PPTX
OMC Textile Division Presentation 2021.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
A comparative analysis of optical character recognition models for extracting...
August Patch Tuesday
Digital-Transformation-Roadmap-for-Companies.pptx
Assigned Numbers - 2025 - Bluetooth® Document
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mushroom cultivation and it's methods.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Group 1 Presentation -Planning and Decision Making .pptx
Unlocking AI with Model Context Protocol (MCP)
Heart disease approach using modified random forest and particle swarm optimi...
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Approach and Philosophy of On baking technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Machine Learning_overview_presentation.pptx
OMC Textile Division Presentation 2021.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A comparative analysis of optical character recognition models for extracting...

Web application

  • 2. Ingredients of a Web Application ● Front End ● Back End ● APIs ● Devices to support ● Accessibility**
  • 3. Focus on Front End Why? Where ? What? How?
  • 4. Why ? - Naive User Where ? - Internet [From Anywhere] What? - Pictures are better way to express communication than letters or journals How? - HTML/CSS/JS
  • 5. HTML - Structure CSS - Design Javascript - Behaviour
  • 6. How to build a web application ● Viewports to support ● Devices to support ● HTML>CSS>JAVASCRIPT ● Way to communicate and get data
  • 7. HTML Basic ● Significance of doctype ● <html>, <head>,<body> ● inline/block/table ● layouts
  • 8. CSS Basic ● Selectors ● Box-Model ● Rendering
  • 9. Javascript Basic ● Window, document ● Events - important for behaviour ● AJAX - Asynchronous ** ● <noscript> ● Security ● Debugging - Ahh
  • 10. ● Everything is a Object eg function , var anything(Native/Host) ● There are also these primitive value types like Undefined, Null, String, Boolean and Number that aren't objects ● JS is Object-oriented language or Prototype based language
  • 11. "Prototype-based programming is a style of object-oriented programming in which classes are not present, and behavior reuse (known as inheritance in class-based languages) is accomplished through a process of decorating existing objects which serve as prototypes. This model is also known as class-less, prototype-oriented, or instance- based programming."
  • 12. Prototype ● When you define a function within JavaScript, it comes with a few pre-defined properties ● The prototype property is initially an empty object, and can have members added to it – as you would any other object. ● Every object within JavaScript has a “secret” property added to it when it is defined or instantiated, named __proto__ ● __proto__ property shouldn’t be confused with an object’s prototype
  • 13. var redbus = function(address){ this.address = "honolulu"; return this.address; } console.log(typeof redbus) //FUNCTION "Function is a predefined object in JavaScript, and, as a result, has its own properties (e.g. length and arguments) and methods (e.g. call and apply). And yes, it, too, has its own prototype object, as well as the secret __proto__ link."
  • 14. console.log(redbus instanceof Function) //true console.log(redbus.__proto__ == =Function. prototype) // true var rb = new redbus; console.log(rb__proto__ ===redbus.prototype) // true console.log(rb_proto__===Function.prototype) //false
  • 15. This is known as prototype chain! ● Ends when prototype of any object is null ● By default Object's prototype is null ● Confusing - Yes , Everything is Object and Function , no classess , no keywords as public - private: "yet we challenge to make it Object Oriented"
  • 16. function Animal() {....} Animal.prototype.walk = function(){ alert ('I am walking Gangnam style!'); }; function Monkey() { // Call the parent constructor Animal.call*(this*); }
  • 17. / inherit Person Monkey.prototype = new Animal(); Monkey.prototype.constructor = Monkey; Monkey.prototype.sing = function(){ alert('Sing like OM'); } var vishal = new Monkey(); vishal.walk(); vishal.sing();
  • 18. This is Inheritance ! Can be checked by. console.log(vishal instanceof Animal) // true console.log(vishal instanceof Monkey) // true In modern browser this can be achieved by: Monkey.prototype = Object.create (Animal.prototype);
  • 19. Closures. The pattern of public, private, and privileged members is possible because JavaScript has closures.
  • 20. function Container(param) { function dec() { //uses secret } //privileged this.member = param;//public var secret = 3;//private var that = this; this.service = function () { return dec() ? that.member : null; };//public }
  • 21. Enough OOPS! Hoisting ● Function level scoping not block level like C++, Java, C# ● Function declarations and variable declarations are always moved (“hoisted”) invisibly to the top of their containing scope by the JavaScript interpreter. eg.
  • 22. Memory Leaks ● garbage collection ● mark and sweep algorithm ● reason for memory leaks ● IE - Ohh yeah :P ● Possible scenarios
  • 24. Coding == Story Telling?? language agnostic
  • 25. "A good story is one which is easy to convey and takes less time to convey" Developers need to convey code to Browsers and other clients.
  • 26. HTML5 - A bubble? Why Facebook shifted back to native application as compared to html5 ?
  • 27. Reference ● WebPlatform.org ● Mozilla Developer Network ● Opera developer Avoid w3schools if possible!
  • 29. Next session ● Performance ● Optimization ● Algorithms