Section 1

Preview this deck

What tools can be used to assure consistent style? Why is it important?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

7 years ago

Date created

Mar 1, 2020

Cards (18)

Section 1

(18 cards)

What tools can be used to assure consistent style? Why is it important?

Front

When working with a team consistent style is important, so team members can modify more projects easily, without having to get used to a new style each time. ESLint Standard are tools that can help with this.

Back

How can you secure your HTTP cookies agains XSS attacks?

Front

XSS occurs when the attacker injects executable JavaScript code in to the HTML response. To mitigate these attacks, you have to set flags on the set-cookie HTTP header: HttpOnly- this attribute is used to help prevent attacks such as cross-site scripting since it does not allow the cookie if the request is being sent over HTTPS.

Back

What are promises?

Front

Promises are a concurrency primitive, first described in the 80s. Now they are part of most modern programming languages to make your life easier. Promises can help you better handle async operations.

Back

How can you avoid callback hells?

Front

modularization: break callbacks into independent functions. use a control flow library, like async use generators with promises. use async/await

Back

Where can we use Node.js?

Front

Web apps(especially real time web apps) Network apps Distributed systems General purpose apps

Back

When are background/worker processes useful? How can you handle work tasks?

Front

Worker processes are extremely useful if you'd like to do data processing in the background, like sending out emails or processing images.

Back

What does event-driven programming mean?

Front

Is a programming paradigm in which the flow of the program is determined by events like messages from other programs or threads. It is an application architecture technique divided into two sections 1) Event Selection 2)Event handling

Back

What do you mean by the term I/O?

Front

It is shorthand for input and output, and it will access anything outside of you application. It will be loaded into the machine memory to run the program, once the application is started.

Back

What's a stub? Name a use case.

Front

Stubs are functions/programs that simulate the behaviors of components/modules. Stubs provide canned answers to function calls made during test cases.

Back

What is Express.js?

Front

Web application framework for Node. Provides robust set of features for web and mobile applications.

Back

What's your favorite HTTP framework and why?

Front

Pick something but make sure you understand it.

Back

What's a test pyramid? Give an example.

Front

Describes the ratio of how many unit tests, integration tests and end to end test you should write. Example: Lots of low-level unit test for models fewer integration tests, where you check how your models interact with each other less end to end tests, where you call your actual endpoints

Back

How can you make sure your dependencies are safe?

Front

Automate the update/security audit of your dependencies.

Back

How node.js works?

Front

Works on a v8 environment, it is a virtual machine that utilizes JS as it's scripting language and achieves high output via non-blocking I/O and single threaded event loop.

Back

What is an error-first callback?

Front

Error-first callbacks are used to pass errors and data as well. You have to pass the error as the first parameter, and it has to be checked to see if something went wrong.

Back

What is the advantage of using node?

Front

provides easy way to build scalable network programs generally fast great concurrency asynchronous everything almost never blocks

Back

What are the two types of API functions in node.js?

Front

Asynchronous, non-blocking functions. Synchronous, blocking functions

Back

What is Node.js?

Front

A server side scripting whidch is used to build scalable programs. Its multiple advantages over other server side languages, the prominent being non-blocking I/O

Back