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:
Please wait <a href="https://euredski.hr/xtrasize-forum-romania-syam">xtrasize funciona mesmo yahoo</a> Vivendi said in July it had agreed to sell most of its stakein the publisher of the blockbuster "Call of Duty" videogamefranchise for $8.2 billion, paving the way for a broader splitof the French conglomerate's media and telecoms assets. 2021-08-04 01:39:31.176927
anonymous@anonymous.com wrote:
It's serious <a href="http://jurnal.akper-whs.ac.id/index.php/manforce-tablets-for-man-vu2b">how does manforce work</a> A Chinese national flag flutters in front of a GlaxoSmithKline (GSK) office building in Shanghai, in this July 12, 2013 file photo. The detention by Chinese authorities of a British corporate investigator and his American wife in the wake of a corruption probe into pharmaceutical giant GlaxoSmithKline has had a chilling effect on other risk consultants working in China. 2021-08-04 01:39:29.657774
anonymous@anonymous.com wrote:
Have you got a current driving licence? <a href="http://onixea.com.br/viagra-prescription-for-performance-anxiety-1fb0">cheap viagra for sale </a> Diageo has gradually increased its stake in the company since buying into it six years ago, and became one of the first foreign companies to gain a majority stake in a Chinese corporation in 2011. Back then, it raised its holding from 49pc to 53pc in a hard-fought battle which involved intensive lobbying by the British government. 2021-08-04 01:39:29.142826
anonymous@anonymous.com wrote:
It's a bad line <a href="https://euredski.hr/para-que-sirven-las-pastillas-ciprofloxacina-jbxt">ciprofloxacin hcl medicine</a> “We didn’t expect to see justice served in this world,”Lucia Kollarova, a spokeswoman for the Federation of the JewishCommunities in Slovakia, said today by e-mail. “However hedidn’t escape higher judgment.” 2021-08-04 01:39:28.634027
anonymous@anonymous.com wrote:
Could you tell me the number for ? <a href="https://dppw.org.uk/purchase-voltaren-x8di">voltaren ec 75 mg</a> "Every week, I go in preparing like I'm a starter," Ross said after Friday's practice. "You never know what's going to happen. In the first week when Prince Amukamara went down, I had to [know] the plays, know what I was going to do, know the formations . . . So I prepare like I'm a starter every week, no matter if I play or not." 2021-08-04 01:39:28.135392
anonymous@anonymous.com wrote:
My battery's about to run out <a href="https://juanbautistanieto.com/spell-acetaminophen-vjcr">tylenol acetaminophen pronounce</a> Two wrongs do not make a right. Whatever went on in corporate Britain cannot excuse the shocking behaviour of Wallis&rsquo;s old newspaper. But it does seem clear that the News of the World&rsquo;s conduct was not, perhaps, as exceptional as we thought, and nor was it the most serious offender. 2021-08-04 01:39:11.771557
anonymous@anonymous.com wrote:
It's a bad line <a href="https://mykanthaka.com/fucidin-2-pour-cent-eosc">fucidin tablete</a> It must be admitted that this eye for detail often failed him when he came to construct plots. When Howard Hawks, filming The Big Sleep, asked Chandler to clarify who was responsible for the death of the chauffeur Owen Taylor, the author couldn&rsquo;t tell him. 2021-08-04 01:39:11.290882
anonymous@anonymous.com wrote:
How many days will it take for the cheque to clear? <a href="https://francescacosso.com/pastillas-anticonceptivas-yasmin-opiniones-eosc">efeitos colaterais do yasmin genrico</a> “Before I found out (the ankle) broke the second time (in April), every time I ran I would feel it. I didn’t say anything but I would feel it,” Jeter said. “So after we found out it was broken, then initially when I started running again, I was more curious than anything, but then a little scared to see how it would feel. But that was three weeks ago. Everything you do in a game, I’ve already done.” 2021-08-04 01:39:10.782245
anonymous@anonymous.com wrote:
perfect design thanks <a href="https://gmh.com.tr/levocetirizine-hydrochloride--montelukast-tablets-ip-vjcr">cetirizine syrup side effects</a> Vivendi and Etisalat have been negotiating the deal since late April, when the United Arab Emirates-based company submitted a binding offer that was deemed more attractive than a lower, rival bid from Qatar-backed Ooredoo. 2021-08-04 01:39:10.283746
anonymous@anonymous.com wrote:
I'm happy very good site <a href="https://juanbautistanieto.com/metronidazole-topical-gel-usp-75-rosacea-vjcr">how long does metronidazole gel take to work for rosacea</a> An Israeli government spokesman dismissed the criticism, saying every peace initiative so far had proposed that the settlements in question become Israeli territory. The Palestinians are willing to accept land swaps. 2021-08-04 01:39:09.778720