You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/03-code-quality/02-coding-style/article.md
+8-13Lines changed: 8 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,12 @@
1
1
# Estilo de codificacion
2
2
3
-
Our code must be as clean and easy to read as possible.
4
3
Nuestro codigo debe ser lo mas limpio y facil de leer como sea posible
5
4
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.
7
5
Eso es actualmente el arte de programar -- tomar una tarea compleja y codificarla de una manera que sea correcta y legible por otros.
8
6
9
7
## Sintaxis
10
8
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):
13
10
14
11

15
12
<!--
@@ -37,21 +34,19 @@ if (n < 0) {
37
34
38
35
-->
39
36
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.
42
38
```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.
44
40
```
45
41
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
49
43
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:
0 commit comments