Repository navigation
Contribute
Knight Hat edited this page Nov 4, 2023
·
2 revisions
TL;DR: Be kind to each other
-
Do
- Be respectful: Treat all individuals with respect, regardless of their background, identity, or opinions.
- Be inclusive: Welcome and include diverse perspectives, experiences, and ideas.
- Be understanding: Seek to understand differing viewpoints and engage in constructive discussions.
- Be mindful: Be mindful of the impact our words and actions have on others in the community.
-
Don't
- Harassment: Any form of harassment, discrimination, or offensive behavior is unacceptable and will not be tolerated.
- Trolling: Deliberate and disruptive actions or comments with the intent to provoke or offend others.
- Hateful speech: Use of derogatory or offensive language, slurs, or personal attacks.
- Spam: Posting irrelevant or unsolicited content, including excessive self-promotion.
Some of the code formats are included in the source code and can be loaded if you are using IntelliJ IDEA
- Use spaces for indent (FOUR spaces). Tab indent will be rejected at PR.
- Follow as close as possible to the existing code style and conventions.
- Check out files in idea/ folder for details
- Be sure to write clear and concise code and documentation.
- Do NOT build a pyramid (at most THREE nested statements are allowed).
- Use easy to understand naming schemes
- Capitalize first character of a word (except for the very first) if name contains multiple words
- Abbreviation: err stands for "error", do not name it e
- A function/method should only do ONE job.
- A class is an idea of all functions/methods inside it.
- If you're adding new features or make significant changes, consider adding relevant tests.
- If you're fixing a bug, please provide steps to reproduce the issue if applicable.
- Keep the history as linear as possible.
- Avoid combining multiple classes to one commit.
- A commit is only about one change inside the class. Except when it affects multiple classes. (A concise commit message is required in this scenario)