Language HIGH LEVEL Overview

Slides:



Advertisements
Similar presentations
Facts about Welcome to this video from Ozeki. In this video I will present what makes Ozeki Phone System XE the Worlds best on-site software PBX for Windows.
Advertisements

HTTP Request/Response Process 1.Enter URL ( in your browser’s address bar. 2.Your browser uses DNS to look up IP address of server.com.
1 Database Driven Web Application Clients Application Servers including web servers Database Server Traditional client-server (2-tier architecture): client:
Server-Side vs. Client-Side Scripting Languages
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Multiple Tiers in Action
The World Wide Web and the Internet Dr Jim Briggs 1WUCM1.
Website Development with PHP and MySQL Introduction.
E-Commerce The technical side. LAMP Linux Linux Apache Apache MySQL MySQL PHP PHP All Open Source and free packages. Can be installed and run on most.
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
ECA 228 Internet/Intranet Design I Intro to the Web.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
WEB DESIGN SOME FOUNDATIONS. SO WHAT IS THIS INTERNET.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Chapter 1: Introduction to Web
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Session I Chapter 1 - Introduction to Web Development
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Web Architecture Introduction
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
Introduction and Principles Web Server Scripting.
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
Overview Web Technologies Computing Science Thompson Rivers University.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
Database application development 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall OBJECTIVES  Define terms  Explain three components.
1 LM 6 Database Applications Dr. Lei Li. Learning Objectives Explain three components of a client-server system Describe differences between a 2-tiered.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
Basics Components of Web Design & Development Basics, Components, Design and Development.
National College of Science & Information Technology.
Web Development. Agenda Web History Network Architecture Types of Server The languages of the web Protocols API 2.
Dive into web development
CGS 3066: Web Programming and Design Spring 2017
Web Programming Language
Scripting - Client-side vs. Server-side Scripting
Web Technologies Computing Science Thompson Rivers University
Introduction to Dynamic Web Programming
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
COP4710 Database Systems Project Overview.
What is WWW? The term WWW refers to the World Wide Web or simply the Web. The World Wide Web consists of all the public Web sites connected to the Internet.
Introduction and Principles
Introduction to PHP FdSc Module 109 Server side scripting and
AJAX and REST.
Developing Web-Based Applications
PHP / MySQL Introduction
Web App vs Mobile App.
LAMP, WAMP and.. L. Grewe.
APTECH JANAKPURI INSTITUTE PROVIDING WEB DESIGNING COURSES Address:- J-1,2nd Floor, Opp Metro Pillar No – 559, Janakpuri East, Delhi /42.
Database Driven Websites
Web Browser server client 3-Tier Architecture Apache web server PHP
CMP Creating Your Personal and Small Business Web Sites
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Lecture 1: Multi-tier Architecture Overview
Content of Presentation
Secure Web Programming
IntroductionToPHP Static vs. Dynamic websites
An Introduction to JavaScript
BOF #1 – Fundamentals of the Web
Web Technologies Computing Science Thompson Rivers University
Web Servers (IIS and Apache)
Web Application Development Using PHP
CGS 3066: Web Programming and Design Fall 2019
Presentation transcript:

Language HIGH LEVEL Overview More to come in future classes

Languages HTML CSS Javascript PHP / Ruby / Java / ASP / Perl

Client-server model When searching on Google: Your PC’s browser requests a webpage from Google’s server Google’s server processes that request Google’s server sends your browser an HTML file Your PC’s browser renders what you see as a webpage from that HTML

Simplest Reply: HTML Page Server simply sends you a single .html file Only HTML, no other programming required Said to be “static” – never changes Cannot have any interaction Cannot pull content from a database Cannot read or save other files Cannot log in or log out

HTML HTML serves one purpose: layout content on a webpage Hyper Text Markup Language Created by Tim Burners-Lee at CERN in 1991 Today universal, open standard supported on all browsers: Internet Explorer, Firefox, Chrome, Opera, and more Also now called “XHTML” – basically the same

HTML - Example

HTML + CSS Problem: HTML was limited in how you could display things. Solution: Cascading Style Sheets Compliments HTML – more control over how things look, in bulk manner Introduced idea of “separating form from content” CSS can be embedded in HTML or be sent by the server as a second document

HTML + CSS - Example

JavaScript (JS) Client side script – runs in your browser - NOT THE SERVER Server sends JS in HTML or as a separate file Makes the web page interactive Mouseovers Clocks Alert boxes Drag-and-drop Much more complicated than CSS or HTML – big leap Warnings Older browsers can’t work with newer commands Can be disabled by browsers (approx 1-3%) Code is 100% viewable – people can steal

Server Architecture Servers run programs, just like your PC: Operating System (OS) Manages server’s hardware and other programs Linux, Windows Web Server Software (HTTP) Process’s client requests, sends response Apache, LigHTTPD, IIS Database (DB) Optional, used for large web apps Stores tables of information – i.e. user info MySQL, Postgres, Oracle, Microsoft SQL Scripting Language Processor Depends on the language your site is coded in The “processor” will read your script and execute it

Server-side Languages Scripting language generally determines architecture PHP, Ruby, ASP, Java, Perl Executes code on the server Saves files, logs users in/out, queries the database Totally invisible to client Sends client HTML once completed

Common Web App Architectures LAMP Ruby on Rails ASP.NET OS Linux Windows Server Server Apache IIS DB MySQL Microsoft SQL Server-side script PHP Ruby ASP Framework (optional) Rails .NET Layout HTML Styling CSS Client-side script JavaScript

PHP “PHP Hypertext Processor” (recursive acronym) LAMP architecture Linux for OS Apache for webserver software MySQL for database PHP for programming Advantages: Large developer base All open source Very scalable Great documentation at PHP.net Disadvantages: Slower development than Ruby or ASP Sites that use PHP in parts or all of their site: Facebook.com Wikipedia.com Wordpress.com

PHP Example <html> <head> <title>PHP Test</title> </head> <body> 1+1 = <?php echo 1+1; ?> </body> </html> Executed by web server

What the browser sees <html> <head> <title>PHP Test</title> </head> <body> 1+1 = 2 </body> </html> Executed by web server

Ruby (on Rails) Ruby is the language Almost always used with Rails – the framework Advantages: Developed specifically for modern web apps Fastest to develop on Tight integration between server, DB, front and back ends Easy to make API’s Disadvantages: Poor scalability (so far) Samples of sites using Ruby: Twitter.com – fail whale Basecamp.com – 37 signals maintains Rails

ASP “Active Server Pages” - Microsoft’s web programming language Primarily for use if you want to go Microsoft across the board Windows for OS IIS for web server Microsoft SQL server for DB Advantages: Comes with a workflow & website framework “Enterprise” - geared towards large companies Microsoft provides customer service Disadvantages: Proprietary Expensive Not as popular as PHP or Ruby Samples of sites using ASP: Microsoft.com

Other Languages Java By Sun/Oracle Fallen out of popularity for web apps Python / Django Google has historically used Django Runs quickly on the server Perl Early Language Not designed for web, slow development

AJAX “Asynchronous JavaScript and XML” – is a technique, not a language How it works Javascript sends requests to server Server-side script (PHP) processes request Server sends back XML Browser updates the webpage Samples of sites using AJAX: http://maps.google.com http://www.kayak.com

Maps.Google.com

Web Hosting Hosting Option Self-hosted Shared Hosting Dedicated /Co-lo Cloud Hosting Where You own your box and connect it to the internet in your garage Your site is one of many on a machine at your webhost’s facility You get your own private box at your webhost’s facility Your site is abstracted across many boxes at your webhost Hardware Access Total None Set-up Software Access Limited Reliability Poor Good Scalability OK Great Security

My Preferred Configuration Hosting: Dedicated Servers at LiquidWeb.com OS: CentOS 5 (Linux) Server: Apache 2 DB: MySQL 5 SS-Script: PHP 5 Framework: Proprietary Benefits: Open source, low cost, stable, scalable, easy development, large developer pool

Why is this important? Dot Com 1.0 mistake: I have a great website idea. I’ll just pay some guy to make it. Then I’ll make millions!

With Technical founders Without Technical Founders Successful Web Companies With Technical founders Without Technical Founders (quasi-technical)

Dot Com 1.0 Reality You can’t tell a good contractor from a bad one Your contractor tells you all your terrible ideas are great just so you’ll hire him ½ of your billings go towards waste-of-time-phone calls You end up with a terrible site It’s programmed in Java and completely unmaintainable You don’t have the capacity to improve it or even fix bugs Your “amazing idea” will be copied by a better technical company in a week They’ll make millions and you just wasted $50,000

Web 2.0 Lessons Every founder needs a basic level of technical proficiency At least one founder needs to be technically advanced Ideas are worthless, the best execution wins Web companies need to be technically driven Products need to be constantly iterated and improved

Learn More W3Schools.com Go to any webpage, right click, “View Source”