We C de T gether
Sven Peters
Happy Ambassador




              @svenpet
              http://svenpet.com
Life
   as a
Hackerreat !
      g   is
Simple Workflow!


   writing code
committing code
Simple dependencies!
                   stops just you
                    ... so what?
  writing code
 breaking code
    fixing code
Code Quality



  like code
Lonesome Cowboy
The trouble starts
       with the team
Life
 as a
Team
Coder
Multiple changes!


  writing code
 merging code
changing code
Rely on each other!
                      stops the team

 writing code
breaking code
   fixing code fast
Code Quality!


   writing code       Opinion


reviewing code
                   Opinion
         Opinion
It's not your code




                               team's code
                     It's your
ge th elp
             C
            T GETHER
             D
             E
C
                           T       GETHER
                               D
                               E

Bringing code together


Sharing code with others


Protecting your code
C
                         T       GETHER
                             D
                             E




Bringing code together
Branching
        is cool!
MERGE
HELL
everybody stops to work until merge is done

Merge Fear
Disease
      afraid that the build will fail




                 waiting until the code is done done
A branch
     for every task
Branches
     have short lives


         ~ 2 days
S r oc ks
DVC
                  Git
               Mercurial
f ind o ut!
        Will the build fail
                    if I would merge now?

         ... and stop the rest of the team!
f ind o ut!
r an ch es
pl an b
co mm it
vi rtu al
Bamboo
C
                           T       GETHER
                               D
                               E




Sharing code with others
Do you have such a team member?

   I've written that
    code. It's faster
   when I just fix it.           I can't tell you how
                                      this works.
                                It's too complicated.

This is a very sensitive
 area... You can easily
      break things
Do you have such a team member?


I want to protect
    my job!
Do you have such a team member?




            Fire
            him  !
feel better      Learn


    Discuss your code changes

Better
quality
Re que sts
us eP ull
             Discuss your code changes
                        before

            they get merged!
Re que sts
us eP ull
       create
                         what do
                        you think?
Re que sts
us eP ull
       invite

                         what do
                        you think?
Re que sts
us eP ull             ve
                appro
         ss   &
di   scu
                            what do
                           you think?
Re que sts
us eP ull
       me rge
                         what do
                        you think?
Re que sts
us eP ull
        n vo lve
       i

                        I know @Ben has
                        already written an
                        algorithm for that
Dem   Time
Share and Collaborate

on Code             is grea t!
Share and Collaborate

on Code                  be   e as yand fast

                    ould
                 sh
Simple Workflow

    Merge
             Pull
            Request


   Branch
Simple Workflow
   No Roles
    Merge
             Pull
            Request


   Branch
C
                       T       GETHER
                           D
                           E




Protecting your code
Simple Workflow
    No Roles
     Merge
              Pull
             Request


    Branch
Simple Workflow
    No Roles
     Merge
              Pull
             Request


    Branch
Simple Workflow
  Some Roles
     Merge
              Pull
             Request


    Branch
Do you want your graduates
         merge into the automatic deploy branch?
Branch Permissions
Project Permissions


 Project            Project
Wonderland         Fairytale
Security   DevSpeed
The Repo Guard
Bew are
Can I get a new Repository?

                  Please!
Can I get a new Repository?
                   I'll do in 3
                       days
Create Repository
C
T GETHER
 D
 E

Stash - We Code Together