Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/politician/dotnotes
Commit the uncommitable π±
https://github.com/politician/dotnotes
Last synced: about 2 months ago
JSON representation
Commit the uncommitable π±
- Host: GitHub
- URL: https://github.com/politician/dotnotes
- Owner: politician
- Created: 2020-06-30T01:23:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:52:54.000Z (about 1 year ago)
- Last Synced: 2024-10-18T22:48:27.313Z (3 months ago)
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .notes
Finally, you can commit the uncommitable π±
## Why?
Our life as (programmers|developers|software engineers|you name it) are full of **interruptions**: We have to jump from urgent projects to even more urgent projects, our side projects had few commits spread over many years.When you come back to your code, wether it's a work project or a side project, it takes 1/2 a day to even find out where you left it and another 1/2 a day to understand where you were going with that logic of yours. If this isn't your code, double those numbers.
## Solutions
- Try to immerse yourself in the logic you or someone else had at the time
- Look at code comments (if there are any)
- Look at previous commits to understand the evolution of the code
- Use .notes## What are .notes?
They are developer notes, as close to the code as possible so they're easily accessible when you come back to a project after a few days, months, years.
You shouldn't care about styling your notes, they are meant to be a raw dump of your mind. They are here to help you, not get in your way! Although, try to write intelligible notes as much as possible, your future self will thank you for that!- Got an idea to refactor your code but don't have time to implement it? Add it to your notes
- Got a piece of code you worked on but finally didn't commit and you might need it for later? Add it to your notes
- Got a small todo list for yourself to implement your logic? Add it to your notes
- Got to jump on another project or got to leave work right now? Add to your notes what you were doing and about to do.notes evolve with your code, you can keep adding them but it is recommended to delete notes not relevant anymore so they are easier to ingest when you come back to your code.
You can use whatever format you want to store and write your notes.
It is important to understand that your notes are primarily meant for you. You are totally allowed to write stupid stuff in your notes. **No other developer should criticize/judge/comment what is inside .notes and no coding style apply to .notes.** So remember this: **What happens in .notes stays in .notes!**
That said, if someone else has to work on your code, your notes might be of great help for them too.
## How to use .notes?
- Create a `.notes` folder at the root of your repository
- Each developer who wants to write notes can either create a folder or a file (of any extension) in the `.notes` folder. It is best practice to use the username used for commit messages as the name of the file/folder.
- Commit the `.notes` folder (don't add it to .gitignore)### Example
My username on GitHub is `incorrupt`. So for a given GitHub repository, the structure would be:```
root
β README.md
ββ.notes
β incorrupt.txt
```If another developer works on the project, s?he could decide to use the folder structure for h(is|er) notes
```
root
β README.md
ββ.notes
β incorrupt.txt
ββotherdev
β todo.md
| somefile.csv
```