Jason's Stage 4 Notes

Lesson 1: Understanding Networks

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.

Servers

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.



Login
anonymous@anonymous.com wrote:
I'd like to transfer some money to this account <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Ginette-35.html#shadow ">ginette-35 online</a> For taking a relaxed stroll around town, Caprice&#39;s sweatpants, trainers and white tee is the perfect ensemble. And she&#39;s added some fashion factor with her shiny black shoulder bag and cool sunglasses. 2017-12-07 08:39:59.083690
anonymous@anonymous.com wrote:
Not in at the moment <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Fertomid.html#whence ">buy fertomid</a> Former Journal reporter Kara Swisher and Mossberg founded AllThingsD in 2003 as an annual technology industry gathering. The blog launched later, in 2007, as an extension of the conference and quickly became an authoritative source of industry news and gadget reviews while retaining considerable editorial independence from Dow Jones and the Journal. 2017-12-07 08:39:58.477510
anonymous@anonymous.com wrote:
I'm retired <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Lady-era.html ">order lady era</a> "After Earth," a $130 million post-apocalyptic thrillerstarring Will Smith and his teenage son Jaden, continued itsweak showing at U.S. and Canadian box office with $3.6 million, in ninth place. "After Earth" did perform well overseas, selling$24 million worth of tickets outside the domestic market. 2017-12-07 08:39:57.906210
anonymous@anonymous.com wrote:
Do you need a work permit? <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Fertomid.html#part ">buy fertomid</a> Shumpert is one of the few players on the roster with an upside. Ask most coaches and scouts to assess the Knicks and the two role players they usually rave about are Pablo Prigioni and Shumpert. It probably has something to do with Pablo and Iman being willing defenders and meshing well with Carmelo. 2017-12-07 08:39:57.279880
anonymous@anonymous.com wrote:
Could I make an appointment to see ? <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Lady-era.html ">order lady era</a> Alipay and Tianhong launched a new fund and payment platform - called Yu E Bao, or "leftover treasure" in Chinese - in June to help Alipay customers convert spare cash into a money market fund holding. 2017-12-07 08:39:56.722470
anonymous@anonymous.com wrote:
I'd like to pay this in, please <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Lady-era.html#completely ">lady era online</a> The paper concludes: "The UK remains wedded to distorted markets and private ownership. Only by breaking out of this policy regime and developing an alternative agenda around new forms of strategic planning and public ownership can Scotland fulfil its true potential and wider obligations as an energy-rich nation." 2017-12-07 08:39:56.066050
anonymous@anonymous.com wrote:
I work here <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Fertomid.html#do ">buy fertomid</a> The community and world at large benefits from the bonuses of breastfeeding by welcoming a new healthy member into society.  Children who breastfeed are confident, generally healthy and well-adjusted, influencing those with whom they come in contact with to express similar, inspiring qualities.   In the world, coming into contact with a breastfeeding woman challenges individuals to reconnect to their roots and see life from a primal perspective of love and nourishment, so often lacking in today&#8217;s world.  So many people wish to place organic, raw, living, breathing reality on the back burner in favor technology and &#8220;progress,&#8221; all the while denying the true nature which lies within them.  Breastfeeding is a natural and beautiful process that heals the planet by its very nature. 2017-12-07 08:39:55.448420
anonymous@anonymous.com wrote:
A Second Class stamp <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Fertomid.html#zeal ">order fertomid</a> It is unclear what the government's crackdown on the sit-ins would entail or when it would begin, but it appeared unlikely to start until next week. The Cabinet statement said the government was keen not to take action during the celebrations that mark the end of Muslim holy month of Ramadan, which started Thursday and continue for four days. 2017-12-07 08:39:54.799690
anonymous@anonymous.com wrote:
Thanks funny site <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Cabgolin.html ">cabgolin price </a> Amos said the USS San Antonio, an amphibious transport dock, and the USS Kearsarge, an amphibious assault ship, had moved further north in the Red Sea two or three nights ago to better respond if needed. 2017-12-07 08:39:53.775640
anonymous@anonymous.com wrote:
Hold the line, please <a href=" https://goldentabs.com/categories/Woman's-Health/Buy-Cheap-Lady-era.html#twinkle ">lady era price </a> Many high street banks and retailers would love it if we abandoned notes and coins, and used debit cards or, better still, contactless swipe cards. It would save them a fortune in cash-handling charges. But reassuringly, cash is more popular than ever and makes up 4.12 per cent of GDP, up from the 3 per cent a decade ago. 2017-12-07 08:39:53.086510