-
Notifications
You must be signed in to change notification settings - Fork 231
Adds spanish translation for 6-async/01-callbacks #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Translates article.md - Translates task.md - We consider to use 'callback' instead of a translation because it is the term used by the community.
|
||
Now let's say we need not just a circle, but to show a message inside it. The message should appear *after* the animation is complete (the circle is fully grown), otherwise it would look ugly. | ||
El la solución de esta tarea, la función `showCircle(cx, cy, radius)` dibuja el círulo, pero no hay manera de rastrea cuando está listo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pero no hay manera de rastrear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pero no hay manera de saber
6-async/01-callbacks/article.md
Outdated
|
||
The call initiates the script loading, then the execution continues. While the script is loading, the code below may finish executing, and if the loading takes time, other scripts may run meanwhile too. | ||
La llamada inicia la carga del script, luego la ejecución continua. Mientras el script está cargando, el código de abajo podría terminar su ejecución, y si la carga toma tiempo, otros scripts también pueden correr mientras tanto. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
el código de abajo podría
el código que continua podría
6-async/01-callbacks/article.md
Outdated
|
||
```js | ||
loadScript('/my/script.js', function() { | ||
// the callback runs after the script is loaded | ||
newFunction(); // so now it works | ||
// el callbck corre después que el script ha sido cargado |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Runs se traduce en algunas partes como ejecuta y aquí como corre, creo que la mejor traducción y para mantener homogéneo el documento podría ser ejecuta.
6-async/01-callbacks/article.md
Outdated
}); | ||
*/!* | ||
``` | ||
|
||
That's called a "callback-based" style of asynchronous programming. A function that does something asynchronously should provide a `callback` argument where we put the function to run after it's complete. | ||
Eso se llama un estilo "callback-based" o "basado en callbacks" de programación asíncrona. Una función que hace algo de manera asíncrona debe provee un argumento `callback` donde pongamos la función que correrá luego que sea completada. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
asíncrona debe provee un argumento
asíncrona debe proveer un argumento
6-async/01-callbacks/article.md
Outdated
|
||
From the first look, it's a viable way of asynchronous coding. And indeed it is. For one or maybe two nested calls it looks fine. | ||
## Pirámide de la catástrofe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
creo que debería de agregarse entre paréntesis el termino en ingles ya que es muy usado por la comunidad y serviría de referencia en ingles.
(Pyramid of Doom)
6-async/01-callbacks/article.md
Outdated
|
||
That's sometimes called "callback hell" or "pyramid of doom." | ||
Esto es a lo que algunas veces llamamos "infierno de callback" o "pirámide de la catástrofe." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se podría agregar los términos en ingles para mejore referencia.
"callback hell"
"pyramid of doom.
6-async/01-callbacks/article.md
Outdated
|
||
So this way of coding isn't very good. | ||
Así que esta manera de codear no es tan buena. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
manera de codear
manera de programar
6-async/01-callbacks/article.md
Outdated
|
||
We can try to alleviate the problem by making every action a standalone function, like this: | ||
Podemos intentar aliviar el problema haciendo cada acción una función We can try to alleviate the problem by making every action a independiente, así: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Una parte sigue en ingles.
6-async/01-callbacks/article.md
Outdated
|
||
Also, the functions named `step*` are all of single use, they are created only to avoid the "pyramid of doom." No one is going to reuse them outside of the action chain. So there's a bit of a namespace cluttering here. | ||
Además, las funcies llamadas `step*` son todas de un solo uso. Sólo son creadas para evitar la "pirámide de la catástrofe". Nadie va a reusarlas fuera de la cadena de acciones. Así que hay un poco de sobrecarga de nombres aquí. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Además, las funcies llamadas
Además, las funciones llamadas
Cocinada por la reestructuración de capítulos para merge y reubicacion
1 11 async 1 article + task - No tocar ni revisar ni nada
Contributes issue #9
it is the term used by the community.