- Notifications
You must be signed in to change notification settings - Fork230
Translated Comments, Polyfills and index#108
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
22 commits Select commitHold shift + click to select a range
770ffb8
Translated "Comments" to Spanish
Niroa95a4eac2e
Translated Polyfills and index.md to Spanish
Niroa954d59710
Translated index.md
Niroa95d0256b9
Merge branch 'master' into master
joaquinelio1423018
Update article.md
joaquinelio3f24e45
Update article.md
joaquinelio600defa
Update 1-js/03-code-quality/06-polyfills/article.md
vplentinaxecf907a
Update 1-js/03-code-quality/06-polyfills/article.md
vplentinaxa8338d6
Update 1-js/03-code-quality/03-comments/article.md
vplentinax82a7ad9
Update 1-js/03-code-quality/03-comments/article.md
vplentinax4e61df3
Update 1-js/03-code-quality/03-comments/article.md
vplentinax5748803
Update 1-js/03-code-quality/03-comments/article.md
vplentinax94502aa
Update 1-js/03-code-quality/03-comments/article.md
vplentinax121ea66
Update 1-js/03-code-quality/03-comments/article.md
vplentinaxe0991ff
Update 1-js/03-code-quality/03-comments/article.md
vplentinaxb8cb7ad
Update 1-js/03-code-quality/03-comments/article.md
vplentinaxa177987
Update 1-js/03-code-quality/03-comments/article.md
vplentinax3596a2d
Update 1-js/03-code-quality/03-comments/article.md
vplentinaxb60d1da
Update 1-js/03-code-quality/03-comments/article.md
vplentinax4705c46
Update 1-js/03-code-quality/03-comments/article.md
vplentinax3b79f5b
Update 1-js/03-code-quality/03-comments/article.md
vplentinaxa4f4473
Update 1-js/03-code-quality/03-comments/article.md
vplentinaxFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
169 changes: 84 additions & 85 deletions1-js/03-code-quality/03-comments/article.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
46 changes: 22 additions & 24 deletions1-js/03-code-quality/06-polyfills/article.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,52 @@ | ||
# Polyfills | ||
El lenguajeJavaScriptevoluciona constantemente. Nuevas propuestas al lenguaje aparecen regularmente, son analizadas y, si se consideran valiosas, se agregan a la lista en <https://tc39.github.io/ecma262/>y luego avanzan hasta [specification](http://www.ecma-international.org/publications/standards/Ecma-262.htm). | ||
Equipos detrás de intérpretes (engines) de JavaScript tienen sus propias ideas sobre qué implementar primero. Pueden decidir implementar propuestas que están en borrador y posponer cosas que ya están en la especificación, porque son menos interesantes o simplemente más difíciles de hacer. | ||
Por lo tanto, es bastante común para un intérprete implementar solo la parte del estándar. | ||
Una buena página para ver el estado actual de soporte para características del lenguaje es<https://kangax.github.io/compat-table/es6/> (es grande, todavía tenemos mucho que aprender). | ||
## Babel | ||
Cuando usamos características modernas del lenguaje, puede que algunos intérpretes no soporten dicho código. Como hemos dicho, no todas las características están implementadas en todas partes. | ||
Aquí Babelviene al rescate. | ||
[Babel](https://babeljs.io)es un [transpiler](https://en.wikipedia.org/wiki/Source-to-source_compiler).Reescribe códigoJavaScriptmoderno en el estándar anterior. | ||
En realidad, hay dos partes en Babel: | ||
1.Primero, el programa transpiler, que reescribe código. El desarrollador lo ejecuta en su propio ordenador. Reescribe el código al viejo estándar. Y entonces el código es entregado al navegador para los usuarios. Proyectos modernos para construcción de sistemas como[webpack](http://webpack.github.io/)o [brunch](http://brunch.io/), proporcionan medios para ejecutar eltranspilerautomáticamente en cada cambio al código, de modo que no implique ninguna perdida de tiempo de nuestra parte. | ||
2.Segundo, el polyfill. | ||
El transpiler reescribe el código, por lo que se cubren las características de la sintaxis. Pero para funciones nuevas tenemos que escribir un script especial que las implemente. JavaScript es un lenguaje muy dinámico, puede que los scripts no solo agreguen nuevas funciones, sino también modifiquen las funciones incorporadas, para que actúen de forma correspondiente al estándar moderno. | ||
Existe el término "polyfill" para scripts que "llenan"(fill in) el vacío y agregan las implementaciones que faltan. | ||
Dospolyfillsinteresantes son: | ||
- [babel polyfill](https://babeljs.io/docs/usage/polyfill/) que soporta mucho, pero es muy grande. | ||
- [polyfill.io](http://polyfill.io)servicio que nos permite cargar/construirpolyfills bajo demanda, dependiendo de las características que necesitemos. | ||
Así que, si queremos usar características modernas del lenguaje, el transpilerypolyfillson necesarios. | ||
##Ejemplos en el tutorial | ||
````online | ||
La mayoría de ejemplos se pueden ejecutar en el sitio, así: | ||
```js run | ||
alert('Presione el botón"Play"en la esquina superior derecha para ejecutar'); | ||
``` | ||
Ejemplos que usanJSmoderno solo funcionarán si tu navegador lo soporta. | ||
```` | ||
```offline | ||
Como estás leyendo la verión offline, en PDFlos ejemplos no se pueden ejecutar. En EPUBalgunos pueden ejecutarse. | ||
``` | ||
Generalmente,Google Chromeestá actualizado con las últimas características del lenguaje, funciona bien para ejecutar demoscon tecnología puntera sin ningún transpiler, pero otros navegadores modernos también funcionan bien. |
4 changes: 2 additions & 2 deletions1-js/03-code-quality/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#Calidad del c�digo | ||
Este capitulo explica practicas en programaci�n que usaremos durante el desarrollo. |
6 changes: 3 additions & 3 deletions1-js/index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#El lenguaje JavaScript | ||
Aqu� aprendemosJavaScript,empezando desde zero y pasando a conceptos avanzados comoOOP (programaci�n orientada a objetos). | ||
Aqu� nos concentramos en el lenguaje en si mismo, con el m�nimo de notas espec�ficas del entorno. | ||
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.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.