Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Web Development World

Kat Chuang
November 05, 2019

Web Development World

Quick overview of the web and best practices to keep in mind. Talk given to CISC 3140 class at Brooklyn College (Fall 2019).

Kat Chuang

November 05, 2019
Tweet

More Decks by Kat Chuang

Other Decks in Technology

Transcript

  1. Mario is a plumber who travels through the sewer tunnel

    system in a well known video game.
  2. Internet: The Information Superhighway a telecommunications infrastructure or system (as

    of television, telephony, or computer networks) used for widespread and usually rapid access to information
  3. Basically a bunch of networked machines Our job as “plumbers”

    is to make sure data passes through correctly, consistently, etc.
  4. Luncheon Kingdom - Super Mario Odyssey (2017) In 2017, Nintendo

    came up with a new storyline for Mario. He has to save Princess Peach with various new challenges in The Luncheon Kingdom. Application development is very much like working as a Chef in a restaurant. Challenging, terrifying, yet exciting. Presentation will henceforth feature an expert in the dining industry, Mr. Ramsey →
  5. Nah, web development is a means to an end I

    like this analogy of a dim sum meal. Application development includes providing: 1) Various widgets are possible. 2) Use of containers for delivering widgets. 3) End user can access any combination of widgets. 4) End user may lack technical literacy.
  6. There is a sense of organization To maintain high quality

    service and product offerings, follow specs: • World Wide Web Consortium (W3C) Specifications • Semantic HTML Etc.
  7. The minimalist HTML structure read by browser HTML Specs https://www.w3.org/TR/html52/

    <html> <head> <!-- This is a comment. --> <!-- metadata goes in the head section --> </head> <body> <!-- Page contents goes in the body. Multiline comments are allowed. --> </body> </html>
  8. Document Type Definition (DTD) <!DOCTYPE ...> Should be declared as

    the first line of a file. To define the markup language.
  9. Backus Naur Form (BNF) • A compact way to represent

    the grammar of computer languages • Many specifications use this format to describe legal syntax Example: sandwich ::= lower_slice [ mustard | mayonnaise ] lettuce? tomato? [ bologna | salami | ham ] {2,4} cheese + top_slice
  10. HTTP Status Codes • Grouped into categories • Links: ◦

    https://www.iana.org/assignments/http-status-codes/ ◦ https://httpstatuses.com/
  11. Remember that someone will inspect your code • Comment your

    code. • Write clean code. Further advice: • https://css-tricks.com/different-ways-to-format-c ss/ • https://developers.google.com/style/html-format ting
  12. Community of Practice - Find your support group Web Design

    Blogs • https://www.smashingmagazine.com/ • https://alistapart.com/ • https://codepen.io/spark/ • CoDrops • CSS-Tricks “Plumbing” (Backend blogs) • https://devops.com/ • http://highscalability.com/ • Superhero.js • https://scotch.io/ • http://www.echojs.com/
  13. Cascading Style Sheets (CSS) • Used for describing the presentation

    of a document written in HTML • Enables separation of presentation and content • In CSS, selectors declare which part of the markup a style applies to by matching tags and attributes in the markup itself. ◦ Selectors may apply to all elements of a specific type, e.g. the second-level headers h2 ◦ elements specified by attribute, in particular: ▪ id: an identifier unique within the document ▪ class: an identifier that can annotate multiple elements in a document ▪ elements depending on how they are placed relative to others in the document tree.
  14. CSS Pre-processors Tools that allow you to generate CSS from

    preprocessor’s syntax. • May have added features that don’t come with CSS • Helps with maintaining large scale CSS structure https://sass-lang.com/ http://lesscss.org/
  15. CSS Frameworks How to use: 1. Link to the style

    sheets <link rel="stylesheet" href="css/bootstrap.min.css" > 2. Use their CSS classnames (see next slide) Some of the ones available • Bootstrap https://getbootstrap.com/ • Bulma https://bulma.io/ • Material Design https://material.io/ ...and more