2. who is this guy?
●
●
●
●
●
Full time Father
Part time Lead Developer @Bizgym
Heinekken Caffeine Fans
Enterpreneur wanna-be
https://github.com/toopay
3. Apa yang akan kita bahas?
1. Mengenali tanda-tanda Project/Aplikasi
Monolitik
2. Penggunaan Git Subtree Dalam Project
Berskala Besar
6. Masalah buat loe?
● However, in case of providing a lot of
functionality such an approach may lead to
unclear or sleazy code as there is no clear
separation to other areas of the software.
7. Masalah buat loe?
● It is hard to manipulate or change existing
code, also extensions may be hard to
realize. So, developers are well advised to
implement more flexible code when a certain
dimension of functionality is reached.
13. Git Submodule To The Rescue
Submodules allow foreign repositories to be
embedded within a dedicated subdirectory of
the source tree, always pointed at a particular
commit.
16. Kenapa Git Submodule bisa menjadi
Ide yang buruk?
● Submodule sejatinya adalah clone baru dari
repository
● Artinya kita harus memastikan sub-module
selalu update
● Perubahan pada submodule tidak dapat
mengikuti git workflow (push tidak dapat
dilakukan secara langsung)
19. Apa itu Git Subtree
The idea of the subtree merge is that you have
two projects, and one of the projects maps to a
subdirectory of the other one and vice versa.
21. GIT Subtree In 5 lines
● Name the other project "Bproject", and fetch.
● Prepare for the later step to record the result as a
merge.
● Read "master" branch of Bproject to the subdirectory
"dir-B".
● Record the merge result.
● Maintain the result with subsequent merges using
"subtree"
22.
23. Subtree Strategy Benefits
● Share code without hurt your current workflow
● All revisions history are intact
● Provide clean, two-way communication
between shared code/repo
24. Who uses this strategy?
●
●
●
●
Symfony2
Zend Framework2
Laravel4
… and many more
● And probably you, in the near future!