Notes to Self

Look, whi_ne, I have written this for you.

Please, do I humbly plead you, do not ever forgot to read this before pushing changes to Github. Or like, just look at this once in a while. This is your holy bible.

File Naming Conventions

Markdown

For markdown files

Python

DOs

  • PEP 8 recommends using lowercase letters for module names

File Contents Naming Conventions

Python

Hereunder is the summary of PEP 8 naming conventions.

DOs

  • Use lowercase letters for variable and function names, and separate words with underscores (_).
  • Use uppercase letters for constant variables, and separate words with underscores (_).
  • Use CamelCase notation for naming classes.
  • Prefix private variables and functions with a single underscore (_), and use double underscores (__) for name mangling.

DON’Ts

  • Avoid using single-character variable names except for counters and iterators.
  • Avoid using names that have special meaning in Python, such as "list" or "str".

Versioning System

Look, you have made your own versioning system based off semver 2.0.0. Use it properly.

Given a version number user.dev.minor.patch, increment the:

  • user version when you make any changes to the user interface/experience.

    Hereunder are exceptions for user experience changes that invokes a user version bump:

    • Performance gains (that might improve )
  • dev version when you make incompatible API changes,

  • minor version when you add functionality in a backwards compatible manner, and
  • patch version when you make backwards compatible bug fixes.

If in doubt, please DO visit semver.org.

Version Bump Guides

  • ANY change in the user interface/experience SHALL induce a user version bump.
  • ANY change in the schema shall induce a dev version bump.
  • ANY change in the documentation SHALL NOT induce any version bump.
flowchart TD
    VB([Version Bump])
        VB --> |"prerelease identifier (pi)"| e_pr{existing `pi`}
            e_pr --> |none| bprv("bump prerelease version (pv)")
                bprv --> ba(bump `pi` to `alpha`)
                ba --> bp([bump `patch`])
            e_pr --> |alpha| bb(bump to `beta`)
                bb --> r0([reset version/s below it to `0` or `none`])
            e_pr --> |beta| br(bump to `rc`) --> r0
            e_pr --> |rc| rn(reset to `none`) --> r0
        VB --> |others| bsv(bump specified version) --> r0

Changelog

As used in the changelog, the following types of changes shall have the following implications, of which, their allowed version bumps should be everything, unless explicably stated otherwise:

  • Added for new features.
    • user
    • dev
    • minor
  • Changed for changes in existing functionality.
    • user
    • dev
  • Deprecated for soon-to-be removed features.
    • patch
  • Removed for now removed features.
    • user
    • dev
  • Fixed for any bug fixes.
  • Security in case of vulnerabilities.

Mind the human as you do with the robot. Format the changelog properly. Example format:

## 69.4.2.0 (minor bump)

Sprinkle a description here.

### Added

- I added a cool feature.

### Deprecated

- This feature will be deprecated 'cuz I can't maintain it anymore.

### Security

- Fixed stuff where the anilist token is leaked to everyone using this app.

Documentation

The documentation system is a custom solution.

If the documentation generator fails, check the traceback. It is commonly due to errors in the code and not the generator itself.

Do not blame the shitty generator you wrote. You might just have written a faulty code.