Adds spanish translation for 6-async/01-callbacks #14
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. |
caballerof
Apr 16, 2019
Collaborator
pero no hay manera de rastrear
pero no hay manera de rastrear
caballerof
Apr 16, 2019
Collaborator
pero no hay manera de saber
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. |
caballerof
Apr 16, 2019
Collaborator
el código de abajo podría
el código que continua podría
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 |
caballerof
Apr 16, 2019
Collaborator
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.
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. |
caballerof
Apr 16, 2019
Collaborator
asíncrona debe provee un argumento
asíncrona debe proveer un argumento
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 |
caballerof
Apr 16, 2019
Collaborator
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)
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." |
caballerof
Apr 16, 2019
Collaborator
Se podría agregar los términos en ingles para mejore referencia.
"callback hell"
"pyramid of doom.
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. |
caballerof
Apr 16, 2019
Collaborator
manera de codear
manera de programar
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í: |
caballerof
Apr 16, 2019
Collaborator
Una parte sigue en ingles.
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í. |
caballerof
Apr 16, 2019
Collaborator
Además, las funcies llamadas
Además, las funciones llamadas
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
EzequielCaste
pushed a commit
that referenced
this pull request
Aug 31, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Contributes issue #9
it is the term used by the community.