Add roadmap migrator command

This commit is contained in:
Kamran Ahmed committed 2023-01-01 17:52:52 +04:00
1 parent 451c36dca4
commit 16ebf98164
2163 files changed
+35165 -28265

No files matched your search

@@ -2,8 +2,6 @@
The Event Loop is one of the most important aspects to understand about Node.js. Why is this so important? Because it explains how Node.js can be asynchronous and have non-blocking I/O, it explains the "killer feature" of Node.js, which made it this successful.
{% resources %}
{% Blog "https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#what-is-the-event-loop", "The Node.Js Event Loop" %}
{% Blog "https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif", "JavaScript Visualized: Event Loop" %}
{% Blog "https://www.youtube.com/watch?v=8aGhZQkoFbQ", "What the heck is the event loop anyway?" %}
{% endresources %}
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#what-is-the-event-loop">The Node.Js Event Loop</BadgeLink>
<BadgeLink colorScheme="yellow" badgeText="Read" href="https://dev.to/lydiahallie/javascript-visualized-event-loop-3dif">JavaScript Visualized: Event Loop</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=8aGhZQkoFbQ'>What the heck is the event loop anyway?</BadgeLink>
@@ -2,9 +2,8 @@
The setTimeout runs a function after the specified period expires. Times are declared in milliseconds.
{% resources %}
{% Blog "https://developer.mozilla.org/en-US/docs/Web/API/setTimeout", "JavaScript MDN Docs" %}
{% Blog "https://www.w3schools.com/jsref/met_win_settimeout.asp", "W3Schools – JavaScript - setTimeOut" %}
{% Blog "https://www.youtube.com/watch?v=kOcFZV3c75I", "setInterval and setTimeout: timing events" %}
{% Blog "https://www.youtube.com/watch?v=z9lJb4D3nJY", "setTimeout EXPLAINED in 5 minutes!" %}
{% endresources %}
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink badgeText='Read' colorScheme='yellow' href='https://developer.mozilla.org/en-US/docs/Web/API/setTimeout'>JavaScript MDN Docs</BadgeLink>
<BadgeLink badgeText='Read' colorScheme="yellow" href='https://www.w3schools.com/jsref/met_win_settimeout.asp'>W3Schools – JavaScript - setTimeOut</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=kOcFZV3c75I'>setInterval and setTimeout: timing events</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=z9lJb4D3nJY'>setTimeout EXPLAINED in 5 minutes!</BadgeLink>
@@ -4,7 +4,6 @@ The `setInterval()` method helps us to repeatedly execute a function after a fix
`setInterval()` is similar to setTimeout, with a difference. Instead of running the callback function once, it will run it forever, at the specific time interval you specify (in milliseconds):
{% resources %}
{% Blog "https://javascript.info/settimeout-setinterval", "Scheduling: setTimeout and setInterval" %}
{% Blog "https://www.geeksforgeeks.org/what-is-setinterval-in-javascript/", "What is the use of setInterval() method in JavaScript?" %}
{% endresources %}
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://javascript.info/settimeout-setinterval'>Scheduling: setTimeout and setInterval</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.geeksforgeeks.org/what-is-setinterval-in-javascript/'>What is the use of setInterval() method in JavaScript?</BadgeLink>
@@ -2,6 +2,5 @@
The callback hell is when we try to write asynchronous JavaScript in a way where execution happens visually from top to bottom, creating a code that has a pyramid shape with many }) at the end.
{% resources %}
{% Blog "http://callbackhell.com/", "Callback Hell" %}
{% endresources %}
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='http://callbackhell.com/'>Callback Hell</BadgeLink>
@@ -1,8 +0,0 @@
# Callbacks
A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.
{% resources %}
{% Blog "https://javascript.info/callbacks", "Callbacks in JavaScript" %}
{% Blog "https://developer.mozilla.org/en-US/docs/Glossary/Callback_function", "Callback Functions" %}
{% endresources %}
@@ -0,0 +1,7 @@
# Callbacks
A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://javascript.info/callbacks'>Callbacks in JavaScript</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Glossary/Callback_function'>Callback Functions</BadgeLink>
@@ -3,9 +3,8 @@
`async/await` is a special syntax to work with promises in a more comfortable fashion.
We use `async` keyword to declare a async function that return a Promise, and the `await` keyword makes a function wait for a Promise.
{% resources %}
{% Blog "https://javascript.info/async-await", "Async/await" %}
{% Blog "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function", "async function" %}
{% Blog "https://www.codeguage.com/courses/advanced-js/promises-chaining", "JavaScript Promises - Chaining" %}
{% Blog "https://www.freecodecamp.org/news/javascript-async-await-tutorial-learn-callbacks-promises-async-await-by-making-icecream/", "JavaScript Async/Await Tutorial – Learn Callbacks, Promises, and Async/Await in JS by Making Ice Cream" %}
{% endresources %}
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://javascript.info/async-await'>Async/await</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function'>async function</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-chaining'>JavaScript Promises - Chaining</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.freecodecamp.org/news/javascript-async-await-tutorial-learn-callbacks-promises-async-await-by-making-icecream/'>JavaScript Async/Await Tutorial – Learn Callbacks, Promises, and Async/Await in JS by Making Ice Cream</BadgeLink>
@@ -1,10 +0,0 @@
# Promises
Promises are a much better way to work with asynchronous code in JavaScript than the old and error-prone callback approach. They were introduced into JavaScript with ECMAScript 6. Using promises, we can manage extremely complex asynchronous code with rigorous error-handling setup, write code in a more or less synchronous style, and keep ourselves from running into the so-called callback hell.
{% resources %}
{% Blog "https://www.codeguage.com/courses/advanced-js/promises-introduction", "A Detailed Introduction to Promises" %}
{% Blog "https://www.codeguage.com/courses/advanced-js/promises-basics", "JavaScript Promises - Basics" %}
{% Blog "https://www.codeguage.com/courses/advanced-js/promises-chaining", "JavaScript Promises - Chaining" %}
{% Blog "https://www.codeguage.com/courses/advanced-js/promises-error-handling", "JavaScript Promises - Error Handling" %}
{% endresources %}
@@ -0,0 +1,9 @@
# Promises
Promises are a much better way to work with asynchronous code in JavaScript than the old and error-prone callback approach. They were introduced into JavaScript with ECMAScript 6. Using promises, we can manage extremely complex asynchronous code with rigorous error-handling setup, write code in a more or less synchronous style, and keep ourselves from running into the so-called callback hell.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-introduction'>A Detailed Introduction to Promises</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-basics'>JavaScript Promises - Basics</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-chaining'>JavaScript Promises - Chaining</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.codeguage.com/courses/advanced-js/promises-error-handling'>JavaScript Promises - Error Handling</BadgeLink>
@@ -10,5 +10,6 @@ Many functions provided by browsers, especially the most interesting ones, can p
So even though you may not have to implement your own asynchronous functions very often, you are very likely to need to use them correctly.
{% resources %}
{% endresources %}
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Introducing'>Introducing asynchronous JavaScript
</BadgeLink>