Flashcards
Viktiga frågor

Cards in this deck (40)
- 1What is a client?Typically, a client is a computer application, such as a web browser, that runs on a user's local computer, smartphone, or other device, and connects to a server as necessary.
- 2What is a rest api?A RESTful API is an architectural style for an application program interface (API) that uses HTTP requests to access and use data.
In order for an API to be considered RESTful, it has to conform to these criteria (among others):
A client-server architecture made up of clients, servers, and resources, with requests managed through HTTP.
Stateless client-server communication, meaning no client information is stored between get requests and each request is separate and unconnected. - 3MVC - explainModels - represent how data is stored in the database
Controllers - the components that act as an interface between models and views. Updates the view/model based on user input and changes in the model
Views - the components that are visible to the user, such as an output or a GUI - 4MVC - draw

- 5Vad är HTTP?An application layer protocol that allows web-based applications to communicate and exchange data
- 6Benefits of Node.jsAsynchronous and Non blocking! It can handle multiple requests at one time. It uses a single thread to answer all requests, but it doesn't wait for an answer from the DB after a DB query.
- 7Express jsExpress is the most popular Node web framework, and is the underlying library for a number of other popular Node web frameworks. It provides mechanisms to:
Write handlers for requests with different HTTP verbs at different URL paths (routes).
Integrate with "view" rendering engines in order to generate responses by inserting data into templates - 8WebsocketWebSocket is a communication protocol which features bi-directional communication over a persistent TCP connection.
The WebSocket API is the next generation method of asynchronous communication from client to server
What's great about the WebSocket API that server and client can push messages to each other at any given time. WebSocket is not limited in its nature the way that AJAX (or XHR) is; AJAX technologies require a request to be made by the client, whereas WebSocket servers and clients can push each other messages. - 9What is an SPA?An SPA is a web application or web site that interacts with the user by dynamically rewriting the current page rather than loading entire new pages from a server
- 10What is axios?Axios is a promise-based js library that works both in the browser and in a node.js environment. Basically its lets you write CRUD requests to a server:
// Performing a POST request
axios.post('/save', { firstName: 'Marlon', lastName: 'Bernardes' })
.then(function(response){
console.log('saved successfully')
}); - 11What is caching?Caching complex operations
Refers to the storing of the result of an operation so that future requests can return faster - 12What is local storage?localStorage is a way to store data on the client’s computer. It allows the saving of key/value pairs in a web browser and it stores data with no expiration date. localStorage can only be accessed via JavaScript, and HTML5. However, the user has the ability to clear the browser data/cache to erase all localStorage data. Web storage can be viewed simplistically as an improvement on cookies
- 13What is a headless CMS?A headless CMS is a back-end only content management system (CMS) built from the ground up as a content repository that makes content accessible via a RESTful API for display on any device.
A headless CMS has only one focus: storing and delivering structured content.
We want to treat CMS just as another microservice. The CMS will be deployed as a back-end system and will be used by content authors to create blog posts and product marketing information.
CMS will expose REST APIs that will give access to: blog posts, product, related images and documents - 14What are some of the core concepts of agile dev?-Individual and team interactions over processes and tools
-Working software > comprehensive documentation
-Customer collaboration over contract negotiation
-Responding to change over following a plan
- proposes incremental and iterative approach to software design. - 15Roles in scrumProduct Owner
The Product Owner is the primary interface between the team and the Business Owner, and is responsible for maintaining and prioritizing the backlog of tasks to be performed.
Scrum Master
The primary goal of the Scrum Master is keep the Development team productive, coaching them to make sure they understand and follow the Scrum process and that they operate in a collaborative and professional manner.
Development Team
The Development Team is responsible for delivering the product. - 16What are important roles in a dev teamRequirement analyst
Project manager
A project manager is like a conductor of your web development team orchestra. The first thing he/she does is getting acquainted with technical specifications and the due date. Based on this information, the project plan is drawn up and divided into stages also known as sprints (set functionality for set period of time).
QA - Quality ensurance
UX/UI, Frontend, Fullstack, Backend - 17Explain a good engineering processThe process of testing starts with requirements analysis. Based on the findings the project manager draws a the project plan and divides into stages also known as sprints.
QA engineers draw up a testing plan. After the development has started, developers send each version of the product to QA engineers. - 18What is localisation?Localisation - catering the need for the specific area (language, cultural, match currency, time zones).
Example: Amending content so that it will appeal to the target audience – this may include adapting, adding or removing text, or being creative when translating idioms or wordplay - 19What is Internanationalisaition?Design and development that support Localisation. You design your website in order to be adaptable for different time zones. Good separations of concerns.
Keep code and content separate. Content should be localised - separation of concerns! - 20Common problems/challenges in Web deveploment1. Avoid Scope Creep
You’ve made a plan; you’ve broken the work down into achievable chunks, and you start the work. Everyone’s excited to build this great thing. In their excitement, the team gets new, different, perhaps even better ideas
2. Define Success
3. Create Clear Communication Channels - 21Disadvantages of monolitic:Hard to deploy. If you change one part you still have to test the entire application to make sure it doesn’t break something somewhere every time you deploy
Hard to scale:
If you only need to scale, for example the shopping experience servers, you still need to scale the whole application as it is deployed as one - in comparison to microservices where you can scale one server at the time. - 22What is an API gateway?- An architectural pattern for microservice based systems.
-You expose a single clientfacing API which then communicates with the API’s of the microservices
-It can have a known url which is exposed so the client can communicate with it - 23Pro's and Con's with microservice:Advantages:
Flexibility: each application can be built by a different team with different languages.
Scalability: they can be scaled independently.
Disadvantage:
More complexity: a lot of different applications. Separate them well! - 24When to use monolith?Have a small team.
-build the MVP version of a new product.
-did not get millions in investments to hire DevOps or spend extra time on complex architecture. - 25MPA pros/consPRO:
SEO
Great Scalability Allow adding an unlimited number of new features, product pages, information about services, and so on.
All logic happens on the server: the client’s machine really only needs to render the HTML code.
CON:
CON: Tighter coupling of frontend and backend. Since the server is the one sending the pages you typically have one bigger project where you have server side logic in your controllers and models and then the views would be created by the frontenders but they would still have to be aware of the server side language which will be used to render the pages.
New reload with every page: every page a user visits needs to be generated on the server. That means, that the user always has to wait for a new page to be sent. Modern servers and browsers are pretty good at that (e.g. they use caching to avoid unnecessary requests and roundtrips) - 26How to get good SEOUse relevevlenat keywords, early in your content
it’s important to use high-quality titles on your web pages - 27Why is SEO worse on SPA vs MPASPA: Because crawlers like the Googlebot can parse JavaScript, but they have big problems if the content is being loaded asynchronously. After the initial page loading is done, the crawler doesn’t know there is more data to arrive and so at this point SEO is missed.
on MPA here is a brand new page that already holds the finished content for every request, the user sees what the crawler sees, and therefore crawlers fetch what is on the page. - 28What is SPAThe server returns one single, pre-generated HTML page which in turn contains JavaScript code that changes the page dynamically in the browser (this approach is known as a “Single Page Application” or “SPA”). This javascript code listens to changes, clicks etc and we will then re-render parts of the DOM in the loaded page whenever we need to do something. The application is able to dynamically fetch content from the server through AJAX requests or websockets.
- 29Pros/CONS with SPAHighly reactive
Decoupled fronted
Reusable backen
CON.
SEO
Scalability
SPAs aren’t very scalable in terms of adding new features and completely new functionality. This is because with everything written as a single page, inserting new features can disrupt the code, so developers need to be careful.
Besides, too much extra code can make your single page load too slowly, since the whole code base is loaded right away. - 30Steps of frontend design (in the beginning of a project)Brainstorm
What is nice to have, what is necessary?
What actions should the users perform?
Think about UX/UI
Competition
Check out the competition, check out what they are doing
Navigation/Structure
Where to put what? Don’t have more than 7 elements visible at one time to clutter the UI.
OBS - The data should direct the development of the app. How can we design a view for someone if we don’t know what information we want to communicate to them? - 31What kind of layers can you split a frontend application into?1. UI layer
2. - 32Three tier achitecture (frontend examples):1. UI / Presentation layer
2. Logic/application/ business/middle tier: In this tier, information collected in the presentation tier is processed - sometimes against other information in the data tier.
In a react application this would be where the store is and it keeps it in sync with server.
3. Data Access Layer - The data tier, data access tier or back-end, is where the information processed by the application is stored and managed
For frontend it could be a the gateway object which encapsulates the communication with the server API - 33Presentational vs container componentsWhere presentational components don’t manage state, container components do. Where presentational components are usually children in the app component hierarchy, container components are usually the parents of presentational components.
- 34Describe three parts of Redux:Actions: Describes what you want to do. For example: increment, reduce (a counter)
Reducer: Logic that decides how your data actually changes. Recieves old state and returns new state, with the added payload
Centralized store: Holds a state object that denotes the state of the entire app - 35What are cookies?Cookies are small files which are located on a user’s computer. They are designed to hold a generous amount of data specific to a client and website, and they can accessed either by the web server or the client computer. The reason behind this is to allow the server to deliver a page tailored to a particular user, or the page itself can contain some script which knows of the data in the cookie, and therefore it is able to carry information from one visit to the website to the next.
- 36Pros of cloud computingPro:
The cloud provider handles all of the maintenance and upgrades. This means you have one less thing to worry about.
Easy adjustment of storage space
More reliable - if one server fails a load balancer will redirect user to a working one, which means you can build a high availability architecture.
Cons
Cannot access data without the internet - 37Context vs ReduxContext API: Resourceful and ideal for small applications where state changes are minimal (but all components are updated
Redux: Perfect for larger applications where there are high-frequency state updates - 38What is What is JSX?JSX stands for JavaScript XML.
JSX allows us to write HTML in React. - 39Websocket vs HTTPHTTP and WebSocket both are communication protocols used in client-server communication.
WebSocket is bidirectional protocol that is used in the same scenario of client-server communication
HTTP is unidirectional where the client sends the request and the server sends the response. - 40What happens at the end of each sprint in Scrum?At the end of each Sprint, the customer receives the result (in the Sprint Review), which is already suitable to use in their business. The Scrum Team’s processes and ways of working are then analyzed for improvement (in the Sprint Retrospective)
Information
- Description
- high Netlight Flashcards on Viktiga frågor, created by Emma Tysk on 14/01/2021.
- Created by
- Emma Tysk · Jan 2021
- Updated
- Jan 18, 2021
- Views
- 2
- Rating