Lecture 9:Back-End Flashcards
What does @ symbol do in Python?
it is called a decorator, which modifies a function.
We use Flask as
Frame work and library
To share code between files and HTML pages we use
Flask template which actually written in language called Jinja
MVS framework is an acronym of?
M: model is our application’s data, such as a SQL database or CSV file
V: view includes templates and visuals for the user interface, like the HTML and CSS.
C: controller contains our “business logic”, code that manages our application overall, given user input. In Flask, this will be our Python code
What is the difference between Session and Cookie?
1-Sessions are server-side files that include user data. It begin when the user logs in to a specific network application and ends when the user logs out. The information remain secure since it is saved in binary or encrypted form
2-cookies are a small text file that is saved on the user’s computer whenever the user first visits a website, The maximum file size for a cookie is 4KB and it is not secure since it is kept on the client-side in a text format that anybody can see
what is JSON? and its advantages?
JavaScript Object Notation
it is a way to store and transmit structured data in a simplified and text-based format like CSV but with more modern tools based on JavaScript. The powerful thing is that it is human and machine-readable.