WebFund 2015W Lecture 24: Difference between revisions

From Soma-notes
LeeCroft (talk | contribs)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Audio==
The audio from the lecture given on Monday, April 6, 2015 [http://homeostasis.scs.carleton.ca/~soma/webfund-2015w/lectures/comp2406-2015w-lec24-06Apr2015.m4a is now available].
==Notes==
==Notes==


===Administrative===
<h3>On-screen notes</h3>
====Administrative====


* Optional review session in SC 103 (Steacie Bldg), Friday, April 10, 2-3:30 PM
* Optional review session in SC 103 (Steacie Bldg), Friday, April 10, 2-3:30 PM
Line 8: Line 13:
* Final exam is on Tuesday, April 14th in Alumni Hall, rows 1-13
* Final exam is on Tuesday, April 14th in Alumni Hall, rows 1-13


===The Future===
====The Future====


Before the web
Before the web
Line 25: Line 30:
** stateless: scalable servers
** stateless: scalable servers
** URLs
** URLs
What's changed since the beginning of the web?
* CSS: prettier pages
* JavaScript: dynamic pages
* plugins came and went: Java, Flash, Silverlight...
* kitchen sink, aka HTML5 - video, video chat, sockets, location, touch, WebGL
** richer input and output
** in the framework of HTML, CSS, JavaScript
Why not just build separately?
* universal platforms tend to suck the oxygen out of the room
Web is the future
But won't anything else take over?
* evolution works, not revolution
* Java applets
* Flash
* Dart (now just compiled to JavaScript)
What about other technologies?
* run on the server
* translate for the browser
Other classes
* COMP 3000 (operating systems): what runs a browser or a web server
* COMP 3007 (programming paradigms): functional programming, which you kind of do in JavaScript
* COMP 3005 (databases): learn about SQL, data modelling
* COMP 3004: bigger programs, read code
* COMP 3804: see patterns underlying code
<h3>Student notes</h3>
<h4>Before the Web</h4>
Before the Web, there was the Internet. The Internet started around the late 60's / early 70's. The Web itself began around 1993.
Internet protocols before the Web were LAN (local area network) and WAN (wide area network).
LAN protocols:
<ul>
  <li>File sharing (NFS)</li>
  <li>Directory services (yp)</li>
  <li>Remote login (rsh)
  <li>Remote “desktop” (X windows)</li>
</ul>
WAN protocols:
<ul>
  <li>File transfer (ftp)</li>
  <li>Email (point to point) (smtp)</li>
  <li>Remote login (telnet)</li>
  <li>net news (UUCP)</li>
</ul>
Each of the services using these protocols required a client which knows the protocol in order to be used. Just as a web browser is a client, email requires a client, remote login requires a client, etc...
<h4>Beginnings of the Web</h4>
What was it that the Web added to all of this? Hypertext - linked information. There were many other previous systems which attempted to do this as well such as MEMEX, Xanadu, gopher, WAIS.
So what did the Web do differently from these?
<ul>
  <li>The Web had more presentation-oriented markup (it made 'prettier' documents) and handled things like images.</li>
  <li>It had a simpler implementation of its renderer (the borwser) and protocol (HTTP).</li>
  <li>HTTP was also particularly beneficial because of the fact that it is stateless. This greatly helps the scalability of web servers since the protocol needs to do no extra work with states, it is all managed (or ignored) by the code on the server.</li>
  <li>The standardization of URLs brought about uniformity and universal access of resources.</li>
</ul>
Side note:
The NeXTSTEP operating system is the OS on which modern Apple operating systems are based. The previous Apple OS was not able to browse the web without crashing and thus required NeXTSTEP system to fix this problem.
<h4>The modern Web and the future</h4>
What has changed now since the beginnings of the Web?
<ul>
  <li>CSS - Providing the ability to better manage layout and make pages look nicer</li>
  <li>JavaScript - Providing the ability to make dynamic pages</li>
  <li>Plugins - Providing the ability to extend functionality (Things like Java, Flash, Silverlight... although these have somewhat come and gone)</li>
  <li>The kitchen sink, aka HTML5 - Provides video, video chat, sockets, location, touch, WebGL... (Allows for richer input and output)</li>
</ul>
Things are now generally implemented within this framework (HTML, CSS, JavaScript) to extend functionality. This is done in the form of new tags, new functions, etc...
Things could be implemented separately and may have a better implementation if done in that way but we do not usually want to do this. Universal platforms tend to suck the oxygen out of the room. Windows was the universal platform before the Web, and before Windows, Unix sort of held this title. Having a universal platform provides simplicity and easy adaptability.
While the platform may continue to evolve and look different, the same basic pieces are likely to be used for quite some time. For example, while the communication protocol is continuing to change, it is still the same base HTTP concept.
Won't other newer technologies take over?
<ul>
  <li>Evolution works, not revolution.</li>
  <li>There have been technologies like Java applets and Flash but these have had issues and are proprietary software. They are mostly on the way out now.</li>
  <li>Google created Dart to try to improve on JavaScript... now Dart is just compiled to JavaScript. Nobody wants to support multiple runtimes if it is not necessary.</li>
</ul>
What about other languages?
<ul>
  <li>Other languages can be run on the server.</li>
  <li>Code written in other languages to be run in the browser is cross-compiled. This can be done using asm.js: an extraordinarily optimizable, low-level subset of JavaScript.</li>
</ul>
If you look on Wikipedia, you can see that there are many server frameworks available. You can choose whatever matches your programming style and needs (although you may be stuck without a choice when working for a company that has already made their decision).
How does all of this relate to other courses that you will be taking (or have already taken)?
<ul>
  <li>Comp 3000 (Operating systems): what runs a browser or a web server</li>
  <li>Comp 3007 (Programming paradigms): functional programming, which you kind of do in
JavaScript)</li>
  <li>Comp 3005 (Databases): SQL, data modelling, more sophisticated databases</li>
  <li>Comp 3004: Bigger programs, reading code</li>
  <li>Comp 3804: See underlying patterns in code and algorithms</li>
</ul>

Latest revision as of 17:14, 7 April 2015

Audio

The audio from the lecture given on Monday, April 6, 2015 is now available.

Notes

On-screen notes

Administrative

  • Optional review session in SC 103 (Steacie Bldg), Friday, April 10, 2-3:30 PM
  • Assignment 10 solutions will be discussed in the review session (and posted then)
  • Assignment 8 and 9 solutions are posted
  • Final exam is on Tuesday, April 14th in Alumni Hall, rows 1-13

The Future

Before the web

  • The Internet started late 1960s-early 1970s
  • Web is 1993
  • LAN protocols: file sharing (NFS), directory services (yp), remote login (rsh), remote "desktop" (X windows)
  • WAN protocols: file transfer (ftp), email (smtp), remote login (telnet), net news (UUCP)

Why the web?

  • hypertext - linked information
  • many older systems: MEMEX?, Xanadu, gopher, WAIS
  • what was different about the web?
    • presentation-oriented markup ("pretty" documents) - HTML
    • IMAGES
    • simple to implement renderer (browser) and network protocol (HTTP)
    • stateless: scalable servers
    • URLs

What's changed since the beginning of the web?

  • CSS: prettier pages
  • JavaScript: dynamic pages
  • plugins came and went: Java, Flash, Silverlight...
  • kitchen sink, aka HTML5 - video, video chat, sockets, location, touch, WebGL
    • richer input and output
    • in the framework of HTML, CSS, JavaScript

Why not just build separately?

  • universal platforms tend to suck the oxygen out of the room

Web is the future

But won't anything else take over?

  • evolution works, not revolution
  • Java applets
  • Flash
  • Dart (now just compiled to JavaScript)

What about other technologies?

  • run on the server
  • translate for the browser

Other classes

  • COMP 3000 (operating systems): what runs a browser or a web server
  • COMP 3007 (programming paradigms): functional programming, which you kind of do in JavaScript
  • COMP 3005 (databases): learn about SQL, data modelling
  • COMP 3004: bigger programs, read code
  • COMP 3804: see patterns underlying code

Student notes

Before the Web

Before the Web, there was the Internet. The Internet started around the late 60's / early 70's. The Web itself began around 1993.

Internet protocols before the Web were LAN (local area network) and WAN (wide area network). LAN protocols:

  • File sharing (NFS)
  • Directory services (yp)
  • Remote login (rsh)
  • Remote “desktop” (X windows)

WAN protocols:

  • File transfer (ftp)
  • Email (point to point) (smtp)
  • Remote login (telnet)
  • net news (UUCP)

Each of the services using these protocols required a client which knows the protocol in order to be used. Just as a web browser is a client, email requires a client, remote login requires a client, etc...

Beginnings of the Web

What was it that the Web added to all of this? Hypertext - linked information. There were many other previous systems which attempted to do this as well such as MEMEX, Xanadu, gopher, WAIS.

So what did the Web do differently from these?

  • The Web had more presentation-oriented markup (it made 'prettier' documents) and handled things like images.
  • It had a simpler implementation of its renderer (the borwser) and protocol (HTTP).
  • HTTP was also particularly beneficial because of the fact that it is stateless. This greatly helps the scalability of web servers since the protocol needs to do no extra work with states, it is all managed (or ignored) by the code on the server.
  • The standardization of URLs brought about uniformity and universal access of resources.

Side note: The NeXTSTEP operating system is the OS on which modern Apple operating systems are based. The previous Apple OS was not able to browse the web without crashing and thus required NeXTSTEP system to fix this problem.

The modern Web and the future

What has changed now since the beginnings of the Web?

  • CSS - Providing the ability to better manage layout and make pages look nicer
  • JavaScript - Providing the ability to make dynamic pages
  • Plugins - Providing the ability to extend functionality (Things like Java, Flash, Silverlight... although these have somewhat come and gone)
  • The kitchen sink, aka HTML5 - Provides video, video chat, sockets, location, touch, WebGL... (Allows for richer input and output)

Things are now generally implemented within this framework (HTML, CSS, JavaScript) to extend functionality. This is done in the form of new tags, new functions, etc...

Things could be implemented separately and may have a better implementation if done in that way but we do not usually want to do this. Universal platforms tend to suck the oxygen out of the room. Windows was the universal platform before the Web, and before Windows, Unix sort of held this title. Having a universal platform provides simplicity and easy adaptability.

While the platform may continue to evolve and look different, the same basic pieces are likely to be used for quite some time. For example, while the communication protocol is continuing to change, it is still the same base HTTP concept.

Won't other newer technologies take over?

  • Evolution works, not revolution.
  • There have been technologies like Java applets and Flash but these have had issues and are proprietary software. They are mostly on the way out now.
  • Google created Dart to try to improve on JavaScript... now Dart is just compiled to JavaScript. Nobody wants to support multiple runtimes if it is not necessary.

What about other languages?

  • Other languages can be run on the server.
  • Code written in other languages to be run in the browser is cross-compiled. This can be done using asm.js: an extraordinarily optimizable, low-level subset of JavaScript.

If you look on Wikipedia, you can see that there are many server frameworks available. You can choose whatever matches your programming style and needs (although you may be stuck without a choice when working for a company that has already made their decision).

How does all of this relate to other courses that you will be taking (or have already taken)?

  • Comp 3000 (Operating systems): what runs a browser or a web server
  • Comp 3007 (Programming paradigms): functional programming, which you kind of do in JavaScript)
  • Comp 3005 (Databases): SQL, data modelling, more sophisticated databases
  • Comp 3004: Bigger programs, reading code
  • Comp 3804: See underlying patterns in code and algorithms