Skip to content

Commit 350b30b

Browse files
authored
Merge pull request #15 from kettanaito/eng-language
Adds "English language" section
2 parents eb900bb + 820d0af commit 350b30b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
# Naming cheatsheet
88

9+
- [English language](#english-language)
910
- [Naming convention](#naming-convention)
1011
- [S-I-D](#s-i-d)
1112
- [Avoid contractions](#avoid-contractions)
@@ -24,6 +25,22 @@ Naming things is hard. This sheet attempts to make it easier.
2425

2526
Although these suggestions can be applied to any programming language, I will use JavaScript to illustrate them in practice.
2627

28+
## English language
29+
30+
Use English language when naming your variables and functions.
31+
32+
```js
33+
/* Bad */
34+
const primerNombre = 'Gustavo'
35+
const amigos = ['Kate', 'John']
36+
37+
/* Good */
38+
const firstName = 'Gustavo'
39+
const friends = ['Kate', 'John']
40+
```
41+
42+
> Like it or not, English is the dominant language in programming: the syntax of all programming languages is written in English, as well as countless documentations and educational materials. By writing your code in English you dramatically increase its cohesiveness.
43+
2744
## Naming convention
2845

2946
Pick **one** naming convention and follow it. It may be `camelCase`, or `snake_case`, or anyhow else, it does not matter. What matters is for it to remain consistent.

0 commit comments

Comments
 (0)