100% Zufriedenheitsgarantie Sofort verfügbar nach Zahlung Sowohl online als auch als PDF Du bist an nichts gebunden 4.2 TrustPilot
logo-home
Notizen

Lecture Note Chapter 8 - Business Logic and JavaScript

Bewertung
-
Verkauft
-
seiten
5
Hochgeladen auf
20-03-2021
geschrieben in
2020/2021

An intuitive brief note of the lecture content and the slides. I got 1.3 in the exam with this note and hope you will find it helpful for your review before the exam.









Ups! Dein Dokument kann gerade nicht geladen werden. Versuch es erneut oder kontaktiere den Support.

Dokument Information

Hochgeladen auf
20. märz 2021
Anzahl der Seiten
5
geschrieben in
2020/2021
Typ
Notizen
Professor(en)
Christian becker
Enthält
Lecture 8 - business logic and javascript

Themen

Inhaltsvorschau

Ch1. The Internet
Ch2. The Internet protocol stack
Ch3. Web Servers
Ch4. HTML
Ch5. Apache and PHP
Ch6. Databases
Ch7. Databases and PHP
Ch8. Business Logic and JavaScript
Ch9. Security
Ch8. Business Logic and JavaScript
I. PHP business logic
1. Get available cars:
Need a logic to avoid this overlapping:
(1) The rentals start before the requested end date
(2) The rentals end after the requested start date
➔ Logic: rental.startDate < request.endDate && rental.endDate > request.startDate
2. Data flow
(1) Browser: GET searchresults.php?startDate=2019-05-20&endDate=2019-05-22
HTTP/1.1
(2) Web server (PHP interpreter): send SELECT query to DB
(3) DB: Return car table + rental table.
(4) The searchresults.php proceed data and return the list of available cars to the browser
(client).
3. Get available cars (function)
(1) Get all rentals from DB
(2) Find overlapping rentals with our request
(3) Store overlapping rentals in a list of as rented cars
(4) Get all cars (ID) from DB
(5) Available cars = All cars – rented cars
II. Improving our architecture
Improve by dividing web server into 2 main blocks:
➢ Front end: only focuses on creating HTML.
➢ REST API Server:
- focus on dealing with data.
➔ Advantage: Separation of concern.
The browser can directly communicate with REST API server:
e.g. while you are typing, the browser may send it to the server, asking for recommendations.
➔ To do this, we need data exchange formats (XML, JSON).
1. Data exchange format
2,99 €
Vollständigen Zugriff auf das Dokument erhalten:

100% Zufriedenheitsgarantie
Sofort verfügbar nach Zahlung
Sowohl online als auch als PDF
Du bist an nichts gebunden

Lerne den Verkäufer kennen
Seller avatar
sonphan

Ebenfalls erhältlich im paket-deal

Thumbnail
Paket-Deal
Lecture Note - IS 553 - Computational Thinking
-
7 2021
€ 20,93 Mehr infos

Lerne den Verkäufer kennen

Seller avatar
sonphan Universität Mannheim
Profil betrachten
Folgen Sie müssen sich einloggen, um Studenten oder Kursen zu folgen.
Verkauft
1
Mitglied seit
4 Jahren
Anzahl der Follower
1
Dokumente
0
Zuletzt verkauft
4 Jahren vor

0,0

0 rezensionen

5
0
4
0
3
0
2
0
1
0

Kürzlich von dir angesehen.

Warum sich Studierende für Stuvia entscheiden

on Mitstudent*innen erstellt, durch Bewertungen verifiziert

Geschrieben von Student*innen, die bestanden haben und bewertet von anderen, die diese Studiendokumente verwendet haben.

Nicht zufrieden? Wähle ein anderes Dokument

Kein Problem! Du kannst direkt ein anderes Dokument wählen, das besser zu dem passt, was du suchst.

Bezahle wie du möchtest, fange sofort an zu lernen

Kein Abonnement, keine Verpflichtungen. Bezahle wie gewohnt per Kreditkarte oder Sofort und lade dein PDF-Dokument sofort herunter.

Student with book image

“Gekauft, heruntergeladen und bestanden. So einfach kann es sein.”

Alisha Student

Häufig gestellte Fragen