forked from leighmcculloch/keywords
-
Notifications
You must be signed in to change notification settings - Fork 22
/
README.md.tmpl
51 lines (32 loc) · 1.92 KB
/
README.md.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Keywords
A list and count of keywords in programming languages. Based on work originally
compiled by [@leighmcculloch](https://github.com/leighmcculloch) and contributors.
_2022 update (WIP):_ I took the latest versions of several popularity lists and am ensuring the top 10 in all three lists were on this list. There have been some pretty significant changes in the past couple of years, including the addition of some _soft_ or _contextual_ keywords in Python 3 and Java, increasing their keyword counts significantly.
In addition to the above, I migrated CI to GitHub Actions and am working to ensure multiple language versions with different keyword sets are represented.
![Languages by keyword](chart.png)
## Why does it matter?
The number of keywords in a programming language _can_ be an indication to it's simplicity/complexity, and that can impact the simplicity/complexity of the solutions that developers produce using it. Complex solutions can be more expensive to maintain and difficult to hire for. However, this is dependent on many factors and keyword count is only one; language idioms also play a massive part.
## License
Source code in this repository is licensed under the MIT License.
Compiled data in this repository is licensed under the Creative Commons Attribution 4.0 International Public License.
`SPDX-License-Identifier: MIT AND CC-BY-4.0`
## Contribute
Don't see a language here? Please open a pull request adding it!
## Keyword List
{{ $alpha := alphabetize . -}}
{{ range $alpha -}}
* [{{ .Name }} ({{.Version}}) ({{ len .Keywords}} keywords)](#{{slug (printf "%s (%s) (%d) keywords" .Name .Version (len .Keywords))}})
{{ end }}
{{ range $alpha -}}
### {{ .Name }} ({{.Version}}) ({{ len .Keywords}} keywords)
{{$chunks := chunk .Keywords 4 -}}
| | | | |
|---|---|---|---|
{{ range $chunks -}}
| {{ range . }} {{ . }} |{{end }}
{{ end }}
#### Sources:
{{ range .Sources -}}
[{{.}}]({{.}})
{{ end -}}
{{ end }}