Skip to content

Instantly share code, notes, and snippets.

View mmiglioranza22's full-sized avatar
🥷
Focusing

Manuel Agustín Miglioranza mmiglioranza22

🥷
Focusing
View GitHub Profile
@domenic
domenic / promises.md
Last active June 24, 2024 03:11
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.
@nolanlawson
nolanlawson / protips.js
Last active February 4, 2024 18:06
Promise protips - stuff I wish I had known when I started with Promises
// Promise.all is good for executing many promises at once
Promise.all([
promise1,
promise2
]);
// Promise.resolve is good for wrapping synchronous code
Promise.resolve().then(function () {
if (somethingIsNotRight()) {
throw new Error("I will be rejected asynchronously!");

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@atralice
atralice / Picantes.md
Last active December 13, 2021 01:36
Links Picantes JS
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active July 22, 2024 09:05
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for...i or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem

" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
{
"suggest.noselect": false,
"coc.preferences.formatOnSaveFiletypes": [
"javascript",
"typescript",
"typescriptreact",
"json",
"javascriptreact",
"typescript.tsx",
"graphql"
@henry-labs
henry-labs / good_practices.md
Last active November 10, 2023 14:50
Good Practices for Henrys! o: Cómo codear feliz y ser un mejor programador

Coding Best Practices (WIP!)

General

  • Aprender bien git, es una herramienta poderosísima que van a usar 100 veces por día. No hace falta entender la funcionalidad avanzada, pero sí entender claramente los conceptos básicos y los comandos que usan a diario. En caso de duda ("se rompió algo y quieren recuperar X versión"), consultar a alguien con más experiencia.

  • Las herramientas de gestión de proyectos en especial las que se adaptan a metodologías ágiles (Trello, Jira, Ora, y muchísimos etc.) son casi vitales para hacer el seguimiento de las tareas a realizar y hechas, tener en claro los alcances de (y discutir mucho) cada card/task/tarea, y organizar al equipo. Bien usada, no se debería empezar ninguna tarea sin pasar por ahí para que esté todo el equipo alineado. El uso que se le da depende mucho del proyecto específico, así que encararlo temprano y hablarlo bien con el líder de proyecto.

@mmiglioranza22
mmiglioranza22 / good_practices.md
Created July 29, 2021 16:44 — forked from henry-labs/good_practices.md
Good Practices for Henrys! o: Cómo codear feliz y ser un mejor programador

Coding Best Practices (WIP!)

General

  • Aprender bien git, es una herramienta poderosísima que van a usar 100 veces por día. No hace falta entender la funcionalidad avanzada, pero sí entender claramente los conceptos básicos y los comandos que usan a diario. En caso de duda ("se rompió algo y quieren recuperar X versión"), consultar a alguien con más experiencia.

  • Las herramientas de gestión de proyectos en especial las que se adaptan a metodologías ágiles (Trello, Jira, Ora, y muchísimos etc.) son casi vitales para hacer el seguimiento de las tareas a realizar y hechas, tener en claro los alcances de (y discutir mucho) cada card/task/tarea, y organizar al equipo. Bien usada, no se debería empezar ninguna tarea sin pasar por ahí para que esté todo el equipo alineado. El uso que se le da depende mucho del proyecto específico, así que encararlo temprano y hablarlo bien con el líder de proyecto.