Programming for the web

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/65

encourage image

There's no tags or description

Looks like no tags are added yet.

66 Terms

1
New cards
PWA(Progressive web app)
A web app that app- like capabilities. Key features include: installation prompt, full screen mode, push notifications,
2
New cards
Application of web programming in e-commerce
online stores allows users to browse, add and purchase items.
3
New cards
Application of web programming in social media platforms
Allows users to connect and interact with content and others in real time
4
New cards
Application of web programming for real estate
for listing properties, searching for homes and connecting buyers, sellers and agents in the real estate market
5
New cards
Define service worker and describe their importance
A background process that reacts to events to provide app functionality. Their reactions can be used to provide app-like functionality. AN example is intercepting fetch requests by providing cached assets to speed up load times
6
New cards
PWA vs traditional apps
PWA: offers app-like features but are built with web tech but allow for cross platform compatibility Native app: uses other languages to heavily optimise performance
7
New cards
What is the service worker life cycle
Service workers need to be registered, so it can be installed. This can be used to trigger events. Service workers are reinstalled if there are changes.
8
New cards
Define web request
request made by a client, such as a web browser, to a server in order to retrieve a web page or other resource
9
New cards
Define data packets and explain their role in data transfer

Definition: a small unit of data sent over a network, A piece of info requested. They enable efficient, reliable communication by allowing networks to manage congestion and error correction.

10
New cards
Define IP address and explain its importance

Definition: the unique identifying number assigned to every device connected to the internet.

Importance: Allowed different devices to be differentiated on the internet when making web requests to ensure requests are properly satsified

11
New cards

What is the function and default port of DNS

Translates human readable addresses into IPS, allowing humans to easily visit sites and computers to go to them. Default port: 53.

12
New cards
What is the function and default port of HTTP
Main data communication used to transfer information to browse the web. Default port: 80.
13
New cards
What is the function and default port of HTTPS
A new standard that adds SSL/TLS to secure data through encryption. Default port: 443.
14
New cards
What is the function and default port of TCP/IP
A suite of communication protocols that enable network communication between devices on the internet, providing end-to-end data transmission. This is the basis of every protocol. Default port: N/A (transport/network layer suite).
15
New cards
What is the function and default port of FTP
Used for transferring files between a client and a server on a computer network. Default ports: 20 (data transfer) and 21 (control).
16
New cards
What is the function and default port of SFTP
A secure file management protocol. Default port: 22.
17
New cards
What is the function and default port of SSL
An older protocol that secures link exchanges between servers and browsers. Default port: Deprecated / typically superseded by TLS on port 443.
18
New cards
What is the function and default port of TLS
A cryptographic protocol that provides end-to-end security of data sent between applications over the internet. Default port: Used alongside applications like HTTPS (port 443).
19
New cards
What is the function and default port of SMTP
Used for sending email messages between servers. It defines how email messages should be relayed between servers over the internet. Default port: 25.
20
New cards
What is the function and default port of IMAP
A protocol for receiving email that allows users to access their emails from different devices. Default port: 143.
21
New cards
What is the function and default port of POP3
A protocol specifically for receiving/retrieving emails. Default port: 110.
22
New cards
What is the function and default port of HTTP
Main data communication used to transfer information to browse the web. Default port: 80.
23
New cards
What is the function and default port of HTTPS
A new standard that adds SSL/TLS to secure data through encryption. Default port: 443.
24
New cards
What is the function and default port of TCP/IP
A suite of communication protocols that enable network communication between devices on the internet, providing end-to-end data transmission. This is the basis of every protocol. Default port: N/A (transport/network layer suite).
25
New cards
What is the function and default port of FTP
Used for transferring files between a client and a server on a computer network. Default ports: 20 (data transfer) and 21 (control).
26
New cards
What is the function and default port of SFTP
A secure file management protocol. Default port: 22.
27
New cards
What is the function and default port of SSL
An older protocol that secures link exchanges between servers and browsers. Default port: Deprecated / typically superseded by TLS on port 443.
28
New cards
What is the function and default port of TLS
A cryptographic protocol that provides end-to-end security of data sent between applications over the internet. Default port: Used alongside applications like HTTPS (port 443).
29
New cards
What is the function and default port of SMTP
Used for sending email messages between servers. It defines how email messages should be relayed between servers over the internet. Default port: 25.
30
New cards
What is the function and default port of IMAP
A protocol for receiving email that allows users to access their emails from different devices. Default port: 143.
31
New cards
What is the function and default port of POP3
A protocol specifically for receiving/retrieving emails. Default port: 110.
32
New cards

PWA pros and cons

pros:

  1. Lower Development Cost: You only need to write one codebase using standard web technologies, which is significantly cheaper than building separate native apps for iOS and Android.

  2. Cross-Platform Compatibility: They run on any device with a modern browser, ensuring your solution works on all operating systems without extra development effort.

  3. Automatic Updates: Users always access the latest version instantly via the server, eliminating the delays, costs, and friction associated with app store approvals.

Cons:

  1. Limited Device Access: They have restricted access to advanced hardware features like Bluetooth, NFC, or high-performance cameras, which can limit functionality for complex solutions.

  2. Reduced Performance: They generally run slower and are less responsive than native apps, making them unsuitable for computationally intensive tasks or high-end gaming.

  3. Cache invalidation: caches must be updated and managed properly


33
New cards
Define Secure Sockets Layer (SSL) certificates and explain how they provide security.

Define: digital certificates that authenticate the identity of a website and encrypt data transmitted between the web server and the user's browser

Explanation: These certificates enable HTTPS, enabling data encryption, preventing tampering and man in the middle attacks.

34
New cards
Define encryption algorithms and explain how they provide security

Define: Converts text into cipher, making the data unreadable, without decryption.

Explanation: By turning the text into ciphers, so if the data is hacked then it is useless since it can not be read, making the information useless.

35
New cards
Define Encryption keys and explain how it provides security

Define: used to encrypt and decrypt data.

Explanation: Data is encrypted so only the people with the right keys can access the data.

36
New cards
Plain text vs Cipher text
  • Plain text: readable data in original from

  • Cipher text: data that has been encrypted, making it unreadable, without the right key


37
New cards

Define authentication and explain how it provides security

Verifies users that are accessing a service, ensuring that only the right people have access to the information

38
New cards
Define authorisation and explain how it provides security
Determines levels of access, defining actions that can be performed. Limits damage that even authenticated accounts can do to a service.
39
New cards

Define hash values and explain how they provide security

Unique values generated from a one way hashing function, meaning it is impossible to obtain the original data. Provides security by making information useless for intruders

40
New cards
Define digital signatures
Cryptographic mechanisms that authenticate data, when transmitted. The private key is sent with the document and the sender’s public key is used to verify they have the document, and that it has not been altered.
41
New cards
Define public and private keys

Public keys: used to encrypt data and are sent with information, to verify encryption and signatures. Private keys: kept with the owner to decrypt data and create signatures

42
New cards
Define big data
refers to extremely large and complex datasets that cannot be easily managed, processed or analysed using traditional data processing tools or methods.
43
New cards
Define Content Delivery Network(CDN)
distributed networks of servers that deliver web content to users based on their geographic location, improving performance and reliability
44
New cards
Define data mining and explain its importance in relation to big data and web architecture

Definition: the process of extracting and discovering patterns, often through machine learning. Importance: Allows us to analyse big data and make use of it. E.g to make decisions. It has created emphasis for scalable storage systems and ML.

45
New cards
Define metadata and explain its importance on web architecture

Definition: provides details about data, so systems can find it.

Importance: used to categorise, organise and manage vast amounts of web content, making it easier to search, discover and analyse

46
New cards
Describe the effect of streaming service management on web architecture and big data
Enable organisations to ingest, process and analyse continuous streams of data in real-time, allowing for instant insights and decision-making.
47
New cards

What is the overall effect of big data and web architecture?

more scalable, flexible, real time data processing systems.

48
New cards
What is the web accessibility initiative from W3C?
A set of standards and support materials to help you understand and implement accessibility, ensuring they are usable by people with all kinds of disabilities.
49
New cards
What are the internationalisation standards from W3C?
A set of standards that allow for a website can be adapted for users from any culture, region, or language, ensuring worldwide accessibility.
50
New cards
Importance of W3C for web security
By adhering to W3C's security standards, developers can instil trust and confidence in their PWAs and mitigating threats.
51
New cards
Importance of W3C privacy
privacy standards and guidelines that developers can follow to design PWAs that respect users' privacy rights and comply with regulatory requirements
52
New cards
Importance of W3C for machine readability
enhances interoperability and automation by making it easier to understand and process by search engines, web crawlers and other applications. Being machine readable makes the PWAs content easier to discover and access. This makes it more visible and effective on the web.
53
New cards
Define web architecture
refers to the structure of web applications. Involves: client side, backend, Database and protocols used for communication
54
New cards

Define and describe 2 examples of web architecture

Client server: divides an application into the client (the user's browser or device requesting information) and the server (which processes requests, runs business logic, and interacts with a database). Single page: A web application design where the entire app loads a single HTML page initially, and as the user interacts with the app, content is dynamically updated via JavaScript (using APIs) rather than loading entire new HTML pages from the server

Microservices: Splits the service into different functions that communicate using APIs. While harder to maintain, it provides redundancy

55
New cards
List 3 reasons to use version control systems
Collaboration, code history to perform audits or for backup, Branching lets developers create their own changes which can be merged.
56
New cards
Importance of managing load times
User retention and improve Search rankings
57
New cards
How does caching improve load times.
By loading frequently accessed resources from the device instead of the server.
58
New cards
How does Minification improve load times.
Refers to the process of removing whitespace or redundant characters from source code, making the file size smaller and easier to load.
59
New cards

How does image optimisation/compression improve laid times

By making images file size smaller and easier to load.

60
New cards
How does lazy loading improve load times
Refers to only loading resources when necessary. Improve load times since there is less to download upfront.
61
New cards
How do CDNs improve load times
Improve load times by acquiring resources from closer servers to reduce latency.
62
New cards
Describe NoSQL databases
non-relational databases that store and retrieve data in a non-tabular format offering flexible schemas
63
New cards


3 most important UI principles

Responsive design, Intuitive navigation, Consistent design

64
New cards

3 most important UX principles

Fast loading times, clear calls to action, accessibility

65
New cards

How to link CSS file to html

 <link type="text/css" href="/css/styles.css" rel="stylesheet">


66
New cards

What file is this

{
  "name": "Food Ninja",
  "short_name": "FoodNinja",
  "start_url": "/index.html",
  "display": "standalone",
  "background_color": "#FFE9D2",
  "theme_color": "#FFE1C4",
  "orientation": "portrait-primary",
"icons":    {
      "src": "/img/icons/icon-72x72.png",
      "type": "image/png",
      "sizes": "72x72"
    },
}


The manifest.json file. It tells the browser how to load the PWA to ensure it functions as intended.