Meta tweaks

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
Richie Bendall
2021-02-17 17:39:48 +13:00
parent 14f6505d0c
commit dad1ce8fa0
98 changed files with 695 additions and 699 deletions

View File

@@ -4,12 +4,12 @@
#### Naming #### Naming
The file should be named according to the language it was written. The name shouldn't be abbreviated too far (`Javascript.js` instead of `JS.js`) and it shouldn't be abbreviated to little (`CSS.css` instead of `Cascading Style Sheets.css`). Additionally, hyphens should be used instead of spaces (`Objective-C.m` instead of `Objective C.m`). The name of the file will be displayed as-is in the readme. It should be named according to the language it was written in. The name shouldn't be abbreviated too far (use `JavaScript.js` instead of `JS.js`) and it shouldn't be abbreviated too little (use `CSS.css` instead of `Cascading Style Sheets.css`). Additionally, use spaces instead of hyphens or underscores (use `Objective C.m` instead of `Objective-C.m`).
#### Contents #### Contents
The code in the file should be the simplest or most straightforward way to print/display/show `Hello World` exactly once in the language used. Input from the user shouldn't be asked for where possible and a newline should only be printed when necessary. The code in the file should be the simplest and most straightforward way to print/display/show `Hello World` exactly once in the language used. User input should not be request and a newline should only be printed when necessary.
### Updating README ### Updating README
`update_list.py` (Python 3.6+) should be run to automatically update the language list. After adding the language file, `update_list.py` (Python 3.6+) automatically updates the language list.

0
e/erlang_escript.erl → e/Erlang EScript.erl Executable file → Normal file
View File

0
n/nodejs.js → n/Node.js.js Executable file → Normal file
View File

View File

0
p/python3.py → p/Python 3.py Executable file → Normal file
View File

1384
readme.md

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -1 +0,0 @@

View File

@@ -18,8 +18,7 @@ for directory in sorted(os.listdir('.')):
if not (directory == '.' or directory == '..' or directory[0] == '.' or os.path.isfile(directory)): if not (directory == '.' or directory == '..' or directory[0] == '.' or os.path.isfile(directory)):
for filename in sorted(os.listdir(directory), key=lambda s: s.lower()): for filename in sorted(os.listdir(directory), key=lambda s: s.lower()):
if os.path.isfile(os.path.join(directory, filename)): if os.path.isfile(os.path.join(directory, filename)):
language = os.path.splitext(filename)[0].replace( language = os.path.splitext(filename)[0]
'-', ' ').replace('_', ' ').title()
languagesText += f'* [{language}]({posixpath.join(quote(directory), quote(filename))})\n' languagesText += f'* [{language}]({posixpath.join(quote(directory), quote(filename))})\n'
languageCount += 1 languageCount += 1

View File