Skip to content

Commit cd684d2

Browse files
committed
WIP: coding style
1 parent 6287461 commit cd684d2

File tree

2 files changed

+30
-35
lines changed

2 files changed

+30
-35
lines changed

1-js/03-code-quality/02-coding-style/article.md

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
# Estilo de codificacion
22

3-
Our code must be as clean and easy to read as possible.
43
Nuestro codigo debe ser lo mas limpio y facil de leer como sea posible
54

6-
That is actually the art of programming -- to take a complex task and code it in a way that is both correct and human-readable.
75
Eso es actualmente el arte de programar -- tomar una tarea compleja y codificarla de una manera que sea correcta y legible por otros.
86

97
## Sintaxis
108

11-
Here is a cheatsheet with some suggested rules (see below for more details):
12-
Aqui hay un cheatsheet con algunas reglas sugeridas(ver abajo para mas detalles)
9+
Aqui hay un cheatsheet con algunas reglas sugeridas(ver abajo para mas detalles):
1310

1411
![](code-style.svg)
1512
<!--
@@ -37,21 +34,19 @@ if (n < 0) {
3734
3835
-->
3936

40-
Now let's discuss the rules and reasons for them in detail.
41-
37+
Ahora vamos a discutir las reglas y razones de ellos en detalle.
4238
```warn header="Irony Detected"
43-
Nothing is set in stone here. These are style preferences, not religious dogmas.
39+
Nada está escrito en piedra aqui. Estos son preferencias de estilos, no dogmas religiosos.
4440
```
4541

46-
### Curly Braces
47-
48-
In most JavaScript projects curly braces are written in "Egyptian" style with the opening brace on the same line as the corresponding keyword -- not on a new line. There should also be a space before the opening bracket, like this:
42+
### Llaves
4943

44+
En la mayoria de proyectos de Javascript las llaves estan escritas en estilo "Egipcio" con la llave de apertura en la misma linea como la correspondiente palabra clave -- no en una nueva linea. Debe haber tambien un espacio despues de la llave de apertura, como esto:
5045
```js
5146
if (condition) {
52-
// do this
53-
// ...and that
54-
// ...and that
47+
// hacer esto
48+
// ...y eso
49+
// ...y eso
5550
}
5651
```
5752

1-js/03-code-quality/02-coding-style/code-style.svg

Lines changed: 22 additions & 22 deletions
Loading

0 commit comments

Comments
 (0)