Skip to content

Commit d2a7ac4

Browse files
authored
Merge branch 'master' into patch-1
2 parents 70b3f7e + 846287a commit d2a7ac4

File tree

20 files changed

+2750
-51
lines changed

20 files changed

+2750
-51
lines changed

contributors.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@
3030
* Calvin Jeng [@l0ckys](http://twitter.com/l0ckys), [github](https://github.com/lockys)
3131
* Richard Gibson [@gibson042](http://twitter.com/gibson042), [github](https://github.com/gibson042)
3232
* Fesuy [github](https://github.com/fesuydev)
33+
* Stephane Moreau [github](https://github.com/stmoreau)

readme.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Leo Beto Souza [@leobetosouza](http://twitter.com/leobetosouza), [github](https://github.com/leobetosouza)
1717
* Ryuichi Okumura [@okuryu](http://twitter.com/okuryu), [github](https://github.com/okuryu)
1818
* Pascal Precht [@PascalPrecht](http://twitter.com/PascalPrecht), [github](https://github.com/pascalprecht)
19-
* EngForDev [engfordev](http://www.opentutorials.org/course/167/1363) - Hwan Min Hong / MinTaek Kwon [@leoinsight](http://twitter.com/leoinsight) / Tw Shim [@marocchino](http://twitter.com/marocchino), [github](https://github.com/marocchino) / Nassol Kim [@nassol99](http://twitter.com/nassol99), [github](https://github.com/nassol) / Juntai Park [@rkJun](http://twitter.com/rkJun), [github](https://github.com/rkJun) / Minkyu Shim / Gangmin Won / Justin Yoo [@justinchronicle](http://twitter.com/justinchronicle) / Daeyup Lee
19+
* EngForDev [engfordev](https://opentutorials.org/course/245/1788) - Hwan Min Hong / MinTaek Kwon [@leoinsight](http://twitter.com/leoinsight) / Tw Shim [@marocchino](http://twitter.com/marocchino), [github](https://github.com/marocchino) / Nassol Kim [@nassol99](http://twitter.com/nassol99), [github](https://github.com/nassol) / Juntai Park [@rkJun](http://twitter.com/rkJun), [github](https://github.com/rkJun) / Minkyu Shim / Gangmin Won / Justin Yoo [@justinchronicle](http://twitter.com/justinchronicle) / Daeyup Lee
2020
* Marco Trulla [@marcotrulla](http://twitter.com/marcotrulla), [github](https://github.com/Ragnarokkr)
2121
* Alex Navasardyan [@alexnavasardyan](http://twitter.com/alexnavasardyan), [github](https://github.com/2k00l)
2222
* Mihai Paun [@mihaipaun](http://twitter.com/mihaipaun), [github](https://github.com/mihaipaun)
@@ -35,6 +35,7 @@
3535
* Hao-Wei Jeng [@l0ckys](http://twitter.com/l0ckys), [github](https://github.com/lockys)
3636
* Richard Gibson [@gibson042](http://twitter.com/gibson042), [github](https://github.com/gibson042)
3737
* Fesuy [github](https://github.com/fesuydev)
38+
* Stephane Moreau [github](https://github.com/stmoreau)
3839

3940

4041
## All code in any code-base should look like a single person typed it, no matter how many people contributed.
@@ -69,12 +70,13 @@
6970
* [Serbian - latin alphabet](https://github.com/rwldrn/idiomatic.js/tree/master/translations/sr_SR)
7071
* [繁體中文](https://github.com/rwaldron/idiomatic.js/tree/master/translations/zh_TW)
7172
* [Indonesian](https://github.com/rwaldron/idiomatic.js/tree/master/translations/id_ID)
73+
* [Greek](https://github.com/rwaldron/idiomatic.js/tree/master/translations/gr_GR)
7274

7375
## Important, Non-Idiomatic Stuff:
7476

7577
### Code Quality Tools, Resources & References
7678

77-
* [JavaScript Plugin](http://docs.codehaus.org/display/SONAR/JavaScript+Plugin) for [Sonar](http://www.sonarsource.org/)
79+
* [SonarQube](https://www.sonarqube.org/)
7880
* [Plato](https://github.com/es-analysis/plato)
7981
* [jsPerf](http://jsperf.com/)
8082
* [jsFiddle](http://jsfiddle.net/)
@@ -96,7 +98,7 @@
9698

9799
The following should be considered 1) incomplete, and 2) *REQUIRED READING*. I don't always agree with the style written by the authors below, but one thing is certain: They are consistent. Furthermore, these are authorities on the language.
98100

99-
* [Baseline For Front End Developers: 2015](http://rmurphey.com/blog/2015/03/23/a-baseline-for-front-end-developers-2015/)
101+
* [Baseline For Front End Developers: 2015](https://rmurphey.com/posts/a-baseline-for-front-end-developers-2015/)
100102
* [Eloquent JavaScript](http://eloquentjavascript.net/)
101103
* [JavaScript, JavaScript](http://javascriptweblog.wordpress.com/)
102104
* [Adventures in JavaScript Development](http://rmurphey.com/)
@@ -127,6 +129,7 @@ Projects _must_ include some form of unit, reference, implementation or function
127129
* [Buster.js](http://busterjs.org/)
128130
* [Sinon.js](http://sinonjs.org/)
129131
* [Tape](https://github.com/substack/tape)
132+
* [Jest](https://facebook.github.io/jest/)
130133

131134
## Table of Contents
132135

@@ -1300,7 +1303,7 @@ The following sections outline a _reasonable_ style guide for modern JavaScript
13001303
13011304
#### “Everything is Permitted: Extending Built-ins” by Andrew Dupont (JSConf2011, Portland, Oregon)
13021305
1303-
http://www.everytalk.tv/talks/441-JSConf-Everything-is-Permitted-Extending-Built-ins
1306+
https://www.youtube.com/watch?v=xL3xCO7CLNM
13041307
13051308
13061309
9. <a name="comments">Comments</a>

translations/de_DE/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
* Miloš Gavrilović [@gavrisimo](http://twitter.com/gavrisimo), [github](https://github.com/gavrisimo)
2626
* Duc Nguyen [@ducntq](https://twitter.com/ducntq), [github](https://github.com/ducntq)
2727
* James Young [@jamsyoung](http://twitter.com/jamsyoung), [github](https://github.com/jamsyoung)
28+
* Stephane Moreau [github](https://github.com/stmoreau)
2829

2930

3031
## Code sollte grundsätzlich so aussehen, als wäre er von einer einzigen Person geschrieben worden, völlig egal, wie viele letztlich daran gearbeitet haben.
@@ -51,6 +52,7 @@
5152
* [简体中文](https://github.com/rwldrn/idiomatic.js/tree/master/translations/zh_CN)
5253
* [Serbian - cyrilic alphabet](https://github.com/rwldrn/idiomatic.js/tree/master/translations/ср_СР)
5354
* [Serbian - latin aplphabet](https://github.com/rwldrn/idiomatic.js/tree/master/translations/sr_SR)
55+
* [Greek](https://github.com/rwaldron/idiomatic.js/tree/master/translations/gr_GR)
5456

5557
## Wichtiger, nicht-idiomatischer Kram:
5658

@@ -973,7 +975,7 @@ Die folgenden Bereiche zeigen einen vertretbaren Style Guide für moderne JavaSc
973975

974976
#### “Everything is Permitted: Extending Built-ins” by Andrew Dupont (JSConf2011, Portland, Oregon)
975977

976-
http://www.everytalk.tv/talks/441-JSConf-Everything-is-Permitted-Extending-Built-ins
978+
https://www.youtube.com/watch?v=xL3xCO7CLNM
977979

978980

979981
9. <a name="comments">Kommentare</a>

translations/es_ES/readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* Yotam Ofek [@yotamofek](https://twitter.com/yotamofek) [github](https://github.com/yotamofek)
3232
* Duc Nguyen [@ducntq](https://twitter.com/ducntq), [github](https://github.com/ducntq)
3333
* James Young [@jamsyoung](http://twitter.com/jamsyoung), [github](https://github.com/jamsyoung)
34+
* Stephane Moreau [github](https://github.com/stmoreau)
3435

3536

3637

@@ -64,6 +65,7 @@
6465
* [简体中文](https://github.com/rwldrn/idiomatic.js/tree/master/translations/zh_CN)
6566
* [Serbian - cyrilic alphabet](https://github.com/rwldrn/idiomatic.js/tree/master/translations/ср_СР)
6667
* [Serbian - latin aplphabet](https://github.com/rwldrn/idiomatic.js/tree/master/translations/sr_SR)
68+
* [Greek](https://github.com/rwaldron/idiomatic.js/tree/master/translations/gr_GR)
6769

6870

6971
## Cosas importantes, no relacionadas directamente con el JS idiomático:
@@ -970,7 +972,7 @@ Las siguientes secciones delinean una guía de estilos _razonable_ para un desar
970972
971973
```
972974

973-
B. Caras de `this`
975+
B. Caras de `this`
974976

975977
Mas allá de los generalmente bien conocidos casos de uso de `call` y `apply`, siempre preferir `.bind( this )` o equivalente, para crear definiciones de `BoundFunction` para invocar más tarde. Sólo recurrir a alias cuando no hay disponible una opción preferible.
976978

@@ -1278,7 +1280,7 @@ B. Caras de `this`
12781280

12791281
#### “Everything is Permitted: Extending Built-ins” by Andrew Dupont (JSConf2011, Portland, Oregon) - recomendada!
12801282

1281-
http://www.everytalk.tv/talks/441-JSConf-Everything-is-Permitted-Extending-Built-ins
1283+
[Andrew Dupont: Everything is Permitted: Extending Built-ins](https://www.youtube.com/watch?v=xL3xCO7CLNM)
12821284

12831285

12841286
9. <a name="comments">Comentarios</a>

translations/fr_FR/readme.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Principe d'écriture d'un code Javascript cohérent et idiomatique
1+
# Principes d'écriture d'un code JavaScript cohérent et idiomatique
22

33
## Il s'agit d'un document vivant, les nouvelles idées pour améliorer le code autour de nous sont toujours les bienvenues. Pour contribuer : "fork", "clone", "branch", "commit", "push", "pull request".
44

@@ -25,6 +25,7 @@
2525
* Miloš Gavrilović [@gavrisimo](http://twitter.com/gavrisimo), [github](https://github.com/gavrisimo)
2626
* Duc Nguyen [@ducntq](https://twitter.com/ducntq), [github](https://github.com/ducntq)
2727
* James Young [@jamsyoung](http://twitter.com/jamsyoung), [github](https://github.com/jamsyoung)
28+
* Stephane Moreau [github](https://github.com/stmoreau)
2829

2930

3031
## Tout code, peu importe les bases sur lesquelles il est établi, devrait ressembler au code tapé par une seule personne, peu importe le nombre de personnes ayant contribué.
@@ -50,6 +51,7 @@
5051
* [简体中文](https://github.com/rwldrn/idiomatic.js/tree/master/translations/zh_CN)
5152
* [Serbian - cyrilic alphabet](https://github.com/rwldrn/idiomatic.js/tree/master/translations/ср_СР)
5253
* [Serbian - latin aplphabet](https://github.com/rwldrn/idiomatic.js/tree/master/translations/sr_SR)
54+
* [Greek](https://github.com/rwaldron/idiomatic.js/tree/master/translations/gr_GR)
5355

5456
## Important, aspect non idiomatique :
5557

@@ -431,7 +433,7 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
431433
JavaScript est un langage typé dynamiquement - ce qui peut être votre meilleur ami comme votre pire ennemi : respectez donc les 'types', en appliquant les règles ci-dessus.
432434

433435

434-
3.B Coercion de type
436+
3.B Conversion de type
435437

436438
Considérons les implications de ce qui suit...
437439

@@ -455,7 +457,8 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
455457
// "number"
456458
...
457459

458-
// Quelque part plus loin dans votre code, vous devez mettre à jour `foo`
460+
// Quelque part plus loin dans votre code, vous devez mettre
461+
jour `foo`
459462
// avec une nouvelle valeur issue de l'élément 'input'
460463

461464
foo = document.getElementById("foo-input").value;
@@ -473,7 +476,7 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
473476

474477
// 3.B.1.2
475478

476-
// Vous pouvez vous prémunir de ce problème en utilisant la coercion de type de l'opérateur unaire + ou - :
479+
// Vous pouvez vous prémunir de ce problème en utilisant la conversion de type avec l'opérateur unaire + ou - :
477480

478481
foo = +document.getElementById("foo-input").value;
479482
^ opérateur unaire + convertissant à sa droite l'opérande en "number"
@@ -490,7 +493,7 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
490493
// `important()` sera évalué
491494
```
492495

493-
Voici quelques cas courants de coercion :
496+
Voici quelques cas courants de conversion :
494497

495498

496499
```javascript
@@ -641,7 +644,7 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
641644
// Plutôt que d'utiliser l'expression suivante :
642645
if ( foo === false ) ...
643646

644-
// ...utilisez la négation et la coercion de l'évaluation de la vérité :
647+
// ...utilisez la négation et la conversion de l'évaluation de la vérité :
645648
if ( !foo ) ...
646649

647650
// ...Soyez prudent, cela correspondra aux valeurs suivantes : 0, "", null, undefined, NaN
@@ -654,7 +657,7 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
654657
// Plutôt que d'utiliser l'expression suivante :
655658
if ( foo === null || foo === undefined ) ...
656659

657-
// ...bénéficiez de la coercion de type ==, comme suit :
660+
// ...bénéficiez de la conversion de type ==, comme suit :
658661
if ( foo == null ) ...
659662

660663
// Souvenez-vous, utiliser == vérifiera une égalité avec `null` et `null` & `undefined`
@@ -667,16 +670,16 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
667670
```javascript
668671

669672
// 4.2.1
670-
// Coercion de Type coercion et remarques
673+
// Conversion de type et remarques
671674

672675
Preferez `===` à la place de `==` (à moins que le cas de test ne requiert la perte d'évaluation de type)
673676

674-
=== n'effectue pas de coercion de type, ce qui signifie que :
677+
=== n'effectue pas de conversion de type, ce qui signifie que :
675678

676679
"1" === 1;
677680
// faux
678681

679-
== effectue la coercion de type, ce qui signifie que :
682+
== effectue la conversion de type, ce qui signifie que :
680683

681684
"1" == 1;
682685
// vrai
@@ -984,7 +987,7 @@ Les sections suivantes décrivent un guide de style _raisonable_ pour tout déve
984987

985988
#### “Everything is Permitted: Extending Built-ins” by Andrew Dupont (JSConf2011, Portland, Oregon)
986989

987-
http://www.everytalk.tv/talks/441-JSConf-Everything-is-Permitted-Extending-Built-ins
990+
https://www.youtube.com/watch?v=xL3xCO7CLNM
988991

989992

990993
9. <a name="comments">Commentaires</a>

0 commit comments

Comments
 (0)