Jason's Stage 4 Notes

Lesson 1: Understanding Networks


A group of entities that can communicate even though they are not directly connected. There has to be at least three entities and there has to be a way that entities that are not directly connected can still communicate.

This Video does a good job of explaining it.


A server is a computer that interacts with a request we make to the computer. For example, whenever we type in "http://www.google.com", we are sending a request to Google's servers to return a website.

Get vs Post

Get parameters are included in the URL. Get requests are used for fetching documents. Get parameters have a max URL length. Get parameters are generally ok to cache. Get parameters should not change the server

Post parameters are included in the body. Post parameters are used for updating data or actually making changes. Post parameters have no max length. Post parameters are almost never cached. Post requests are usually destructive in nature.

Server Responses

When you send commands to the server the server will respond with different codes. There are 3 main server response types. 2xx codes indicate Success. 3xx codes indicate a Redirection. or action needs to be taken by the client in order to fulfill the request. 4xx and 5xx codes indicate Error The 4xx codes are intended for cases in which the client seems to have erred, and the 5xx codes for the cases in which the server is aware that the server has erred.

This websiteprovides a great explanation.

Lesson 2: Importance Of Validating Input

Checking Validation

Validation is verifying on the server that what we receive is what we expect to receive. If what we receive is different than what we expect we send a message notifying the user.

It is important that we validate the data and send the appropriate response so that the user knows what the problem is and potentially how to fix it going forward. This Video goes into more detail about this topic.

Handling Bad Data

We need to verify what the user enters and confirm if the data is bad. Using something like a drop-down is not enough to ensure that the user is not passing bad data to our form. It is important that we send appropriate responses or messages if the data is bad or incorrect.

This lesson covers this topic in detail.

Lesson 3: HTML Templates

Introducing Templates

Templates refer to a library used to build complicated strings (html). Jinja2 is a template library that was used to make this web page. Avoiding repetition is necessary when programming. You want to avoid having to rewrite the same code multiple times.

Variable Substitution

The syntax for substituting a variable in Jinja is a double curly brace. Substitution is basically just printing the variable. This is a handy way to substitute a string while maintaining cleaner code.

Template Inheritance

This is a great way to avoid repetition and makes your code more organized and easier to read. This lets you define a base template which you can later plug new HTML into. This is useful when, for example, you want to have a consistent header and footer across your app. Remember better organized code is more readable,easier to fix, easier to share, and harder to break.

Lesson 4: JavaScript

What is JavaScript?

JavaScript is the main programming language used with HTML and the Web. JavaScript can be used to create interactive effects within your web page.

This Wikipedia page has a great definition.

Where to use JavaScript?

If you are like me you are probably wondering how you can use JavaScript in your web page. According to this website. JavaScript can be placed in the body and head sections of an HTML page.

JavaScript Syntax

JavaScript syntax is a set of rules for how programs are constructed. JavaScript statements are separated by semicolons. There are two main types of values: Fixed values and variable values. Visit this page for more details about JavaScript syntax.

anonymous@anonymous.com wrote:
GZCXfA https://www.genericpharmacydrug.com 2018-04-17 22:12:16.316470
anonymous@anonymous.com wrote:
5AYGMI https://www.genericpharmacydrug.com 2018-04-16 15:02:21.410420
anonymous@anonymous.com wrote:
uMzj2V <a href="http://jlxwkdvfhswx.com/">jlxwkdvfhswx</a>, [url=http://vcegrpztnktx.com/]vcegrpztnktx[/url], [link=http://mompcunwbdoq.com/]mompcunwbdoq[/link], http://akxcvebzwfpc.com/ 2018-04-15 18:35:55.853750
anonymous@anonymous.com wrote:
I'm originally from Dublin but now live in Edinburgh <a href=" http://www.microsmog.com/what-does-valium-show-up-as-in-drug-test.asp ">diazepam with paroxetine</a> As the statue of the great man looked down, Herrera and Falcao ignored the howling gale to conduct some drills, aiming to encourage more girls aged 14 and older to play football. <a href=" http://webevolution-networks.com/what-all-does-the-antibiotic-bactrim-treat.pdf ">does bactrim cure bladder infections</a> It is her husband Bill who is famously associated with dresses - specifically a blue Gap one worn by former White House Intern Monica Lewinsky. 2018-03-31 04:25:57.541030
anonymous@anonymous.com wrote:
How many are there in a book? <a href=" http://gadgetsformen.co.uk/valium-10mg-erowid/ ">c10 valium</a> Prior to that incident, Brazel accidentally sent the media two drafts of a statement and a note addressed to her colleague in January in which Murray praised the passage of legislation allowing financial aid for students illegally brought to the United States as children. <a href=" http://saanverdante.com/pax-valium-review.html#pending ">high with valium</a> But no party can afford to rest there in the centre-ground, because it does not stay in the same place for long 2018-03-31 04:25:56.959260
anonymous@anonymous.com wrote:
Pleased to meet you <a href=" http://carteacusecrete.ro/prednisone-30-mg-5-days-side-effects.php ">can prednisone raise blood glucose</a> I know they could use one of (the young pitchers) to get a bat or two, but I&rsquo;ve been here for the rebuilding,&rdquo; Wheeler said <a href=" http://trachelectomy.co.uk/antifungal-paint-jotun.htm ">antifungal paw wash</a> In recent years, Apple has hired Patrick Pruniaux, former vice president of Tag Heuer's global sales and retail; Angela Ahrendts, former chief executive of Burberry Inc; and former Yves Saint Laurent CEO Paul Deneve joined as vice president of special projects. 2018-03-31 04:25:56.373940
anonymous@anonymous.com wrote:
How do you know each other? <a href=" http://www.dunamis.us/sporanox-15d-precio.pdf#peak ">sporanox package insert pdf</a> Representative Stephen Fincher, a Tennessee Republican, told reporters in July that he was working on a bill to reform the bank 2018-03-31 04:25:55.358910
anonymous@anonymous.com wrote:
I want to report a <a href=" http://arabamodelleri.org/pharmafreak-test-freak-anabolic-freak-stack-review.pdf#rare ">buy pharmafreak test freak</a> Many animals are affected by temperature shifts and by observing the patterns of even the smallest animals&mdash;like sea slugs&mdash;it becomes glaringly obvious that something is going on. <a href=" http://gacetadominho.org/clearasil-ultra-acne-treatment-4hr-rapid-action-pimple-cream.pdf#poem ">clearasil ultra 4 hour rapid action treatment cream review</a> Serignese told a television station she met Cosby in 1976 inLas Vegas, where he invited her to a party and gave her pills."My next memory is feeling drugged and him having sex with me,"she told WPTV. 2018-03-31 04:25:54.719140
anonymous@anonymous.com wrote:
Could I have a statement, please? <a href=" http://arabamodelleri.org/order-of-the-golden-lion-forgotten-realms.pdf ">golden lion tamarin superfamily</a> Congress for years has been stymied on the best way to renew the much maligned law 2018-03-31 04:25:54.142050
anonymous@anonymous.com wrote:
A law firm <a href=" http://webevolution-networks.com/adalat-sony-tv-youtube-full-episodes.pdf#jan ">adalat april 2015 dailymotion</a> Our Classified websites (Photos, Motors, Jobs and Property Today) use cookies to ensure you get the correct local newspaper branding and content when you visit them <a href=" http://creativemindsplanet.com/haldol-and-valium.php ">can valium help cough</a> The woman's small blue step stool, used to boost her up over trash cans to search for recycling, was lying on the street beside the black shoes she was knocked out of 2018-03-31 04:25:53.415490