2016-09-08 19:35:58 -04:00
# Contributing
2020-01-18 06:09:26 -05:00
Your contributions are always welcome! Here are some guidelines.
2016-09-08 19:35:58 -04:00
2020-01-18 06:09:26 -05:00
## Good Candidates
2016-09-08 19:35:58 -04:00
2020-01-18 06:09:26 -05:00
Before contributing, make sure the new link you'd like to add is a good
candidate.
2016-09-08 19:35:58 -04:00
2020-01-18 06:09:26 -05:00
Here is a non-restrictive list of items which are good candidates for inclusion
in this awesome list.
2016-09-08 19:35:58 -04:00
2020-01-18 06:09:26 -05:00
### Falsehood Articles
2016-09-08 19:35:58 -04:00
2021-11-01 04:12:39 -04:00
Articles following the *falsehood* schema are prime candidates for inclusion in
2020-01-18 06:09:26 -05:00
this awesome list.
2021-11-01 04:12:39 -04:00
These articles starts with the hypothesis that developers have a naive and
simple view of a domain. Then proceed to list a set of candid assumptions that
might be held by programmers. Each one is intentionally false, and in their
best form are illustrated with a counter-example.
2020-01-18 06:09:26 -05:00
A list of falsehood is crafted as a progression that is designed to refine
concepts. Having read the whole list of falsehood, the reader should possess a
2021-11-01 04:12:39 -04:00
better overview of a domain while dispelling its myths, point out common
pitfalls and demonstrate its subtleties.
2020-01-18 06:09:26 -05:00
2021-11-01 04:12:39 -04:00
*falsehood* articles are, in a sense, a suite of wordy unit-tests covering
extensive edge-cases provided by real-world usage. The world is messy.
Discovering a domain to be much more complex than anticipated will lead to
frustrations. And cause flipping tables `(╯°□°)╯︵ ┻━┻` . This is the sign of a
great candidate for that list!
2020-01-18 06:09:26 -05:00
2020-01-18 06:32:07 -05:00
Articles featuring items that are applicable to one product (or a service) and
one only can't be considered as generic enough and should be avoided.
2020-01-18 06:09:26 -05:00
### Libraries
2020-01-18 06:32:07 -05:00
Programming libraries or modules are good candidates too, if they solve or
2021-11-01 04:12:39 -04:00
reduce the complexities pointed to by *falsehood* articles above.
2020-01-18 06:09:26 -05:00
2020-01-18 06:32:07 -05:00
That way we can put back tables in place. `┬─┬ ノ ( ゜-゜ノ)`
2016-09-08 19:35:58 -04:00
2020-01-18 06:09:26 -05:00
### Data Structures
Data models and structures generic enough to cover and address most of the
falsehoods are also welcome in this page.
## Pull-Request and Issue
2016-09-08 19:35:58 -04:00
2020-12-07 07:31:09 -05:00
- Search past and current issues and pull-requests for previous suggestions before making a new one, as yours may be a duplicate or a work in progress.
2016-09-08 19:35:58 -04:00
2020-01-18 06:09:26 -05:00
- Only one list item per commit.
2020-12-07 07:31:09 -05:00
- Only one commit per pull-request. Always squash commits after applying changes.
2020-01-18 06:09:26 -05:00
2016-09-08 19:35:58 -04:00
- Check your spelling and grammar.
2020-12-07 07:31:09 -05:00
- Add the reason why the linked resource is awesome. And what it adds to existing content.
## Linting
Have your pull-request pass the [official Awesome List's linter ](https://github.com/sindresorhus/awesome-lint ).
2020-12-07 07:33:20 -05:00
No extra work is required here as it is [already integrated by the way of GitHub actions ](https://github.com/kdeldycke/awesome-falsehood/tree/main/.github/workflows ).
2020-12-07 07:31:09 -05:00
To run the linter locally, do:
```shell-session
$ npm i npx
$ npx awesome-lint
```
## Formatting
Additional rules not covered by `awesome-lint` , to keep the content clean and tidy.
If one of these rule conflict with the linter, the linter's rule should takes precedence. Apply it.
### General content
2016-09-08 19:35:58 -04:00
- Remove any trailing whitespaces.
- Use spaces, no tabs, for indention.
2020-12-07 07:31:09 -05:00
- Apostrophes should be using the single ASCII mark: `'` .
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Try to quote the original content as-is to summarize the point of the linked content.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- If a straight quote doesn't cut it, feel free to paraphrase both the item's title and description. Remember, this is curation: we are increasing the value of the original content by aggregation and categorization, yes, but also by smart editorializing. As long as you respect the spirit of the original content it's OK.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
### Sections
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Sections are in alphabetical order, as all topics are independent from each others.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Section might feature one paragraph introduction and a figure (graph, drawing, photo).
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
### Item title
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Link title must be stripped out of the "*Programmers believe*" part to keep it compact.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- URL must use HTTPs protocol if available.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- No `“` and `”` curved quotation marks. This is reserved for original content quotation in descriptions.
2016-09-08 19:35:58 -04:00
2020-12-07 07:31:09 -05:00
- To quote, use either the single or double variations: `'` and `"` . Keep them properly balanced.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
### Item description
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Quotes should be properly delimited with the `“` and `”` curved quotation marks.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- You can reduce the original text by using an ellipsis in parenthesis `(…)` .
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- For quoting inside a quote, use single or double `'` and `"` ASCII marks. Keep them properly balanced.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- To serialize a list into a description, use the following format:
> This is my own description. Here is a list quoted from the original content about **“a random subject: 1. Blah blah blah; 2. Blah blah blah? 3. Blah blah blah.”** This makes sense right?
This provides visual anchor points that help readability and quick content scanning.
- You can skip some items from the original list and renumber it.
- You shouldn't have to re-order it though.
- An additional link in the description is allowed. This must be limited to some rare cases. Like pointing to a bigger concept, an acronym definition, or reference material (book, biography, …).
### CLI helpers
One-liners to fix-up some common formatting mistakes. Use with great caution and always double-check and edit the results.
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Replaces star list item markers by dashes:
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
```shell-session
$ sed -i 's/^* /- /g' ./README.md
```
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Replaces typographic quotes with ASCII ones:
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
```shell-session
$ sed -i "s/‘ /\'/g" ./readme.md
$ sed -i "s/’ /\'/g" ./readme.md
```
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
- Forces quotes to end with a dot:
2020-01-18 06:09:26 -05:00
2020-12-07 07:31:09 -05:00
```shell-session
$ sed -i 's/`$/`\./g' ./readme.md
```