-
Notifications
You must be signed in to change notification settings - Fork 1
Git Best Practice
Commit message contains
subject line: tell briefly what changes have been done
body message: optional part to give more explanation about the commit
Write a subject line in an imperative form (bentuk aktif dalam bahasa Indonesia)
Commit messages have to complete this sentence:
"If applied, this commit will _____"
or
"Jika ditambahkan, commit ini akan _____"
Examples
-
If applied, this commit will
Add login page layout -
If applied, this commit will
Remove deprecated methods -
If applied, this commit will
Fix a bug where app will crash when user login for the second time -
If applied, this commit will
Fix a bug on the login page -
If applied, this commit will
Release version 1.0.0 -
Jika ditambahkan, commit ini akan
Memperbaiki bug pada halaman dashboard -
Jika ditambahkan, commit ini akan
Menambahkan grafik pada halaman dashboard
Update chat mechanism
- resend pending image
- add upload progress percentage
- cache 24 hours of data
Fix bug out of memory pada logger
Pada versi sebelumnya log dibuat dengan meng-append ke dalam object String.
Hal tersebut bisa mengakibatkan OOM karena melebihi kapasitas penyimpanan String.
Untuk menghindari hal tersebut, setiap log disimpan secara terpisah ke dalam database
lalu akan digabungkan di dalam satu file di akhir proses.
Your code should tell the story better
Do
Pada versi sebelumnya log dibuat dengan meng-append ke dalam object String.
Hal tersebut bisa mengakibatkan OOM karena melebihi kapasitas penyimpanan String.
Untuk menghindari hal tersebut, setiap log disimpan secara terpisah ke dalam database
lalu akan digabungkan di dalam satu file di akhir proses.
Don't
Penulisan log dilakukan dengan mengiterasi setiap item di dalam database.
Setiap item akan ditulis ke dalam file di dalam folder temporary.
Jika sebelumnya sudah ada file dengan nama yang sama, tulis ulang file tersebut.
Setelah semua proses sudah beres, semua item dihapus dari database.
git gak dipake buat chattingan mas parkun
_ ~ some devops engineer to some front end developer, circa 2019_
Partially refers to this link
Atomic and granular commits make it easier for developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
The task is a part of a feature which is standalone and can be tested
Task fitur login
layout code
validasi input
handle API
Vision
Values
Forte
Organizational Structure
Proofhub
Web Design System
PHP Coding Convention