Pro Wireless Controller for Switch, STOGA PC Controller Compatible with Nintendo Switch Pro Game Controller for Windows PC

Pro Wireless Controller for Switch, STOGA PC Controller Compatible with Nintendo Switch Pro Game Controller for Windows PC

4.8 out of 5 stars137Red&Blue$29.99$29.99More Buying Choices
$22.11 (2 used & new offers)

What is the difference between process.nextTick() and setImmediate() ?

The difference between process.nextTick() and setImmediate() is that process.nextTick() defers the execution of action till the next pass around the event loop or it simply calls the callback function once the ongoing execution of the event loop is finished whereas setImmediate() executes a callback on the next cycle of the event loop and it gives back to the event loop for executing any I/O operations.

🔗Source: codingdefined.com

What are LTS releases of Node.js? why should you care?

LTS(Long Term Support)

An LTS(Long Term Support) version of Node.js receives all the critical bug fixes, security updates and performance improvements.

LTS versions of Node.js are supported for at least 18 months and are indicated by even version numbers (e.g. 4, 6, 8). They’re best for production since the LTS release line is focussed on stability and security, whereas the Current release line has a shorter lifespan and more frequent updates to the code. Changes to LTS versions are limited to bug fixes for stability, security updates, possible npm updates, documentation updates and certain performance improvements that can be demonstrated to not break existing applications.

🔗Source: github.com/i0natan/nodebestpractices

Mixpanel cheatsheet

Identify

mixpanel.identify('284')
mixpanel.people.set({ $email: 'hi@gmail.com' })
// Set common properties
mixpanel.register({ age: 28, gender: 'male' })

Track events

mixpanel.track('Login success')
mixpanel.track('Search', { query: 'cheese' })

References

Analytics libraries cheatsheet

Mixpanel

mixpanel.identify('284');
mixpanel.people.set({ $email: 'hi@gmail.com' });
mixpanel.register({ age: 28, gender: 'male' }); /* set common properties */

Google Analytics’s analytics.js

ga('create', 'UA-XXXX-Y', 'auto');
ga('create', 'UA-XXXX-Y', { userId: 'USER_ID' });
ga('send', 'pageview');
ga('send', 'pageview', { 'dimension15': 'My custom dimension' });