Health Topic Library

PHP, JS, CSS, Python, and Machine Learning Technology

Browse trusted health articles by topic. Use the filters and A-Z index to quickly find related medical content.

526 articlesUpdated medical education library

A-Z article index

H

Latest articles

RX
Health Topic Library

Promise object

Promise object is used for handling asynchronous computations which has some important guarantees that are difficult to handle with the callback method (the more old-school method...

Read article
RX
Health Topic Library

LocalStorage and SessionStorage 

localStorage and sessionStorage both extend Storage. There is no difference between them except for the intended “non-persistence” of sessionStorage. That is, the data stored in localStorage persists until explicitly...

Read article
RX
Health Topic Library

Cookie-Based Authentication

Cookie-based authentication has been the default, tried-and-true method for handling user authentication for a long time. Cookie-based authentication is stateful. This means that an authentication record or...

Read article
RX
Health Topic Library

Pipe-in-node

The pipe() function reads data from a readable stream as it becomes available, and writes it to a destination writable stream. It does all “reasonable” things...

Read article
RX
Health Topic Library

Conceptual Workflow

If you’ll recall, Express works with a request-response cycle in which callback functions are tied to specific routes and have access to request and response objects,...

Read article
RX
Health Topic Library

What is a session?

The very basic steps of express-session and cookie-based session management The first time a browser makes a request to our server, express session generates a unique...

Read article
RX
Health Topic Library

Package.json file

Explanation so, basically it removes all the create and start server code from your app.js and let you focus only on the application logic part. Note: If you...

Read article
RX
Health Topic Library

Node-debugging

Since version 6.3, Node.js provides a built-in DevTools-based debugger which mostly deprecates Node Inspector, see e.g. this blog post to get started. The built-in debugger is...

Read article
RX
Health Topic Library

JSON Web Token(JWT)

A JSON Web Token(JWT), defines an explicit, compact, and self-containing secured protocol for transmitting restricted informations. This is often used to send information that can be...

Read article
RX
Health Topic Library

What’s a stub? Name a use case.

Ans: First, a classic use of callback methods. Second, using Promises. Finally, in a more sophisticated way, we can use reactive extensions (RxJS) to define pipelines the...

Read article
RX
Health Topic Library

Why use ‘cors’ package, what does it do

A> https://medium.com/@alexishevia/using-cors-in-express-cac7e29b005b Cross-origin resource sharing (CORS) allows AJAX requests to skip the Same-origin policy and access resources from remote hosts. https://www.infoworld.com/article/3173363/application-development/how-to-enable-cors-on-your-web-api.html Security restrictions on your browser’s security...

Read article
RX
Health Topic Library

Cookie parser parses

The cookie parser parses cookies and puts the cookie information on req object in the middleware. It will also decrypt signed cookies provided you know the...

Read article