← All slides 1 / 30
Best Practices
Versioning, Changelogs, and more...
2020-10-01

Branching Strategies
Git Flow, GithHub Flow and GitLab Flow

GitFlow

GitHubFlow

GitLabFlow
So, what should you choose?
It depends... Do you need:
- Long running release branches? - Git Flow
- Environment branches? - GitLab Flow
- Only a single main branch? - GitHub Flow
Versioning
- SemVer: Semantic Versioning
- CalVer: Calendar Versioning
- Weird Versioning
Why Version?
- Maintain History
- Easier to revert/monitor/announce features
- Better plan your roadmap

SemVer
How to do it?
- Git tags
- Package Managers: npm,pip,gradle,etc.
- For monorepos: lerna, rush, etc.
- Something custom?
Mini Quiz
Quiz
Link: https://forms.gle/MXMpHWjL12Kz6k616
Let's see the quiz
Let's see how all of you did
Changelogs
How to keep a changelog
Keep a Changelog Format
Last Version Changelog
Code step 1 of 3: Last Version Changelog## [0.20.0] - 2020-09-11
### Added
- Allowed special characters in goal value (!164) - MMP-498
### Changed
- User status can be changed to INACTIVE - MMP-535
- Stats refactor (!162) - MMP-541
- Don't init services unless required (!181) - MMP-564
Sprinkle in some scripts and CI/CD
Merge
Code step 1 of 2: Merge## [Unreleased]
> NOTE: ⬇⬇ Add below this ⬇⬇
### Changed
- Replaced IP2location with MaxMind for geo services (!167) - MMP-536
> NOTE: ⬆⬆ And above this ⬆⬆

Some Other Best Practices
Automate the boring parts (shameless plug)
Intro to CI/CD
Document Everything
- Architecture and Flow Diagrams
- List of Active Services/Environments
- How To Deploy Each One of Them?
- How to Debug in Production?
- Using the Logging, Monitoring, and Alerts infrastructure
-
Minutes of Meetings </li>
And then turn those into KTs or Blog Posts
Any Questions?
Links
Made With
Mdx-Deck: https://github.com/jxnblk/mdx-deck/
Code Surfer: https://github.com/pomber/code-surfer
References
GitLab Flow: https://docs.gitlab.com/ee/topics/gitlab_flow.html
Keep a changelog: https://keepachangelog.com/en/1.0.0/
Links
🖼 Presentation
https://rohit.page/slides/best-practices/
Social
- @rohit_gohri
- rohit-gohri
The End
🥳
Use the buttons or ←/→ keys to navigate.