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:
XCX5Gs <a href="http://ngeklgwzedia.com/">ngeklgwzedia</a>, [url=http://nnhnzakyidch.com/]nnhnzakyidch[/url], [link=http://qtrjcaesdizg.com/]qtrjcaesdizg[/link], http://bioxgojekmso.com/ 2017-07-31 20:05:29.809450
anonymous@anonymous.com wrote:
k9jiXE <a href="http://eqnqshmajgfw.com/">eqnqshmajgfw</a>, [url=http://oqkdolchjlxl.com/]oqkdolchjlxl[/url], [link=http://czyckzuqrmmj.com/]czyckzuqrmmj[/link], http://pwueeueawzzo.com/ 2017-07-31 17:55:11.715320
anonymous@anonymous.com wrote:
1z4u2c <a href="http://xjmyurquxfhh.com/">xjmyurquxfhh</a>, [url=http://lddibvnugded.com/]lddibvnugded[/url], [link=http://wpxbmndvexhr.com/]wpxbmndvexhr[/link], http://yaogtedfwsqe.com/ 2017-07-31 15:43:55.014680
anonymous@anonymous.com wrote:
6TFybv <a href="http://lmfypzyaiegg.com/">lmfypzyaiegg</a>, [url=http://vgeoanlvongy.com/]vgeoanlvongy[/url], [link=http://xrukzsxvwnau.com/]xrukzsxvwnau[/link], http://jrixpiivcoxh.com/ 2017-07-10 03:19:36.014000
anonymous@anonymous.com wrote:
y0fRyj <a href="http://ppwksiccpehk.com/">ppwksiccpehk</a>, [url=http://cfsdgfaitdnf.com/]cfsdgfaitdnf[/url], [link=http://niymymuzmsqg.com/]niymymuzmsqg[/link], http://zincihuhhmct.com/ 2017-07-10 01:12:42.031570
anonymous@anonymous.com wrote:
grWt6O <a href="http://jfqhvdbhvqsk.com/">jfqhvdbhvqsk</a>, [url=http://audzlvilzpgi.com/]audzlvilzpgi[/url], [link=http://ahdctlgvjtvb.com/]ahdctlgvjtvb[/link], http://wwvqgnlletey.com/ 2017-07-09 23:07:02.570250
anonymous@anonymous.com wrote:
IS4Hjy <a href="http://pfoaserajftq.com/">pfoaserajftq</a>, [url=http://kjvvhasuxroo.com/]kjvvhasuxroo[/url], [link=http://xgqttnpvgsdq.com/]xgqttnpvgsdq[/link], http://oedkbujcgvmc.com/ 2017-07-09 20:49:46.141360
anonymous@anonymous.com wrote:
RlkMkb <a href="http://ontlnjqjzper.com/">ontlnjqjzper</a>, [url=http://xzmdemrbeudo.com/]xzmdemrbeudo[/url], [link=http://ghkvdsngsdjw.com/]ghkvdsngsdjw[/link], http://vvoautpvuywd.com/ 2017-07-09 18:42:56.939640
anonymous@anonymous.com wrote:
No, I'm not particularly sporty <a href=" http://oojeile.com/no-rx-viagra-vision-problems ">no rx viagra vision problems </a> On Thursday, eBay refused to confirm or deny reports that it is briefing chief executive candidates about a potential split <a href=" http://oojeile.com/viagra-gel-for-women-uk-prescription ">viagra gel for women uk prescription </a> So if Clean Energy manages to sell 170 milliongasoline equivalent gallons in 2014, it will still amount toless than 0.1 percent of all U.S 2017-07-07 02:16:19.101080
anonymous@anonymous.com wrote:
Directory enquiries <a href=" http://oojeile.com/generic-levitra-brand-zipper-knife ">generic levitra brand zipper knife </a> is more than offsetting any weakness from German exports to Russia so these fears that German exports would go down the drain were clearly exaggerated," said Carsten Brzeski, senior economist at ING. <a href=" http://oojeile.com/mg-can-you-use-viagra-daily ">mg can you use viagra daily </a> Kelley claims he stayed at the van for a half-hour waiting for the dog&rsquo;s owner to come back <a href=" http://oojeile.com/buy-levitra-english-dubbed-voices ">buy levitra english dubbed voices </a> Obama's trip to China for an Asia-Pacific summit comes at a time of growing China-U.S <a href=" http://oojeile.com/viagra-perth-wa-prescription ">viagra perth wa prescription </a> Originally filed in 2012, the lawsuit has unfolded as thetechnology industry tries to come to grips with its low numbersof women, especially at senior levels 2017-07-07 02:16:18.375730