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:
hi there I am Mike Cuming from digitalsy.org.uk Your website looks really great. But as you may know, even if your website has the looks, doesnt worth much without being put out there for the world to see it Regarding appspot.com, Our team will hand-craft a SEO strategy for your business from scratch by optimizing content, building links, and taking care of all the SEO activtieis including ranking you for the Google maps. We can start with the Economy Plan for the first 3 months, then decide together what next, based on the results. https://www.digitalsy.org.uk/product/economy-seo-plan/ Mike Cuming support@digitalsy.org.uk https://digitalsy.org.uk/ 2021-04-02 00:08:28.015380
anonymous@anonymous.com wrote:
<a href="http://t.me/s/alcohol_yakutsk">Доставка алкоголя якутск</a> 2021-03-28 19:58:43.138832
anonymous@anonymous.com wrote:
How many days will it take for the cheque to clear? http://colabradio.mit.edu/?s=Cheap%20Essay%20Writing%F0%9F%8E%93%20www.WriteMyPaper.online%20%F0%9F%8E%93Apna%20Uttarakhand%20Essay%20In%20Hindi%20-%20Essay%20On%20Kip%20Kinkel apna uttarakhand essay in hindi Washington’s relations with Brasilia, which have been cordial but cool in recent years, could hardly be more important. After the US, Brazil is both the Western Hemisphere’s second largest economy and second most populous nation. 2021-03-14 05:29:22.933867
anonymous@anonymous.com wrote:
I've just started at https://linguistics.mit.edu/?s=Cheap%20Essay%20Writing%F0%9F%8E%93%20www.WriteMyPaper.online%20%F0%9F%8E%93Deaf%20Again%20Mark%20Drolsbaugh%20Essay%20-%20Emerson%27s%20Essay%20Self%20Reliance deaf again mark drolsbaugh essay Are you invisible? Perhaps you're perceived to be incapable of making the decision, or articulating it. Or maybe, for some reason, the waiter feels fine talking to your friend, but uncomfortable talking to you. This perplexing situation is not so uncommon for some people living with disabilities. "I usually say, 'Excuse me, will you ask me the question, please?'" says Ryan McGraw, a 30-year-old yoga teacher with cerebral palsy. "It's dehumanizing." 2021-03-14 05:29:22.392693
anonymous@anonymous.com wrote:
I came here to work http://gamelab.mit.edu/?s=Cheap%20Essay%20Writing%F0%9F%8E%93%20www.WriteMyPaper.online%20%F0%9F%8E%93Cry%20Of%20The%20Kalahari%20Essay%20-%20Passing%20Score%20For%20Cahsee%20Essay cry of the kalahari essay Al Garrett, president of the American Federation of State,County and Municipal Employees Council 25, contested statementsby Emergency Manager Kevyn Orr that he bent over backwards towork with creditors, including the city's pension funds, beforefiling a bankruptcy petition for Detroit in federal court onThursday. 2021-03-14 05:29:21.881514
anonymous@anonymous.com wrote:
What qualifications have you got? https://lit.mit.edu/?s=Cheap%20Essay%20Writing%F0%9F%8E%93%20www.WriteMyPaper.online%20%F0%9F%8E%93Gwalior%20Fair%20Essay%20-%20And%20The%20Paycock%20Essays gwalior fair essay Liz Wise, chief officer for Enfield CCG and senior responsible officer for the Barnet, Enfield and Haringey clinical strategy, said: "Changes under the strategy mean more senior emergency doctors in A&E, better maternity care in modern labour wards and improved children&#039;s inpatient services. 2021-03-14 05:29:21.281022
anonymous@anonymous.com wrote:
Insufficient funds https://docubase.mit.edu/?s=Cheap%20Essay%20Writing%F0%9F%8E%93%20www.WriteMyPaper.online%20%F0%9F%8E%93Samuel%20Taylor%20Coleridge%20The%20Rime%20Of%20The%20Ancient%20Mariner%20Essay%20-%20Gesamtkunstwerk%20Essay gesamtkunstwerk essay The one avenue for communication are budget talks between the White House and a handful of Republican senators, most of whom have a reputations as dealmakers, including Johnny Isakson of Georgia, Rob Portman of Ohio, Lindsey Graham of South Carolina and John McCain of Arizona. 2021-03-14 05:29:20.644952
anonymous@anonymous.com wrote:
coFsW7 <a href="http://fcnlapygypjy.com/">fcnlapygypjy</a>, [url=http://bchkeimomzec.com/]bchkeimomzec[/url], [link=http://kovfsdjzcfzy.com/]kovfsdjzcfzy[/link], http://tlmuozlctmme.com/ 2021-03-14 04:36:09.949352
anonymous@anonymous.com wrote:
Through friends https://sloanreview.mit.edu/?s=Cheap%20Essay%20Writing%E2%AD%90%20www.WriteMyPaper.online%20%E2%AD%90%20How%20To%20Remove%20Wallpaper%20Glue%20From%20Sheetrock%20-%20Tesis%20De%20Enfermeria%20Alimentacion%20Complementaria tesis de enfermeria alimentacion complementaria But this message is strong, so I believe that it’s worth the risk to put it in print. This message will also be relevant pretty much no matter how Monday’s game plays out, which makes it even easier to go ahead and dedicate Casey’s Corner to the topic. 2021-03-14 00:30:21.801351
anonymous@anonymous.com wrote:
What's your number? https://sloanreview.mit.edu/?s=Cheap%20Essay%20Writing%E2%AD%90%20www.WriteMyPaper.online%20%E2%AD%90%20David%20Sedaris%20Christmas%20Elf%20Essay%20-%20Religulous%20Essay david sedaris christmas elf essay The spokesman, Narendra Vispute, told reporters in Mumbai that the conditions of the bodies recovered early Friday morning suggest that all 18 sailors aboard were killed in the explosions in the sub's home port of Mumbai. 2021-03-14 00:30:21.217592