-
What is the hypothesis? In the new Git introduction, we introduce creating a branch. Previously we structured the coursework so that there was one repo per week, and so multiple branches per repo wasn't necessary (caveat: the React coursework did not follow this structure, which caused it's own problems). The Git introduction above only introduces creating a single branch and it will be necessary for trainees to create multiple branches (with matching PRs), for example one branch for Why is this important? Given the above, trainees will inevitably encounter multiple branches, so I think we should prepare them with basic branching strategies. For the trainees, the simplest strategy would be to branch off from the current branch, or in other words, create the |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
In a recent LDN10 class, the teachers (lead by @jasongwartz) did an ad-hoc workshop to cover branching, as discussed briefly in this Slack thread. They covered the strategy of checking out to This has some advantages:
But has some disadvantages:
|
Beta Was this translation helpful? Give feedback.
-
As mentioned in the top comment, the simplest strategy is probably to always branch from the existing branch, i.e. the But has some advantages:
This has some disadvantages:
|
Beta Was this translation helpful? Give feedback.
-
Another aspect to consider here is that the React module (and potentially the Node & Databases modules) extend the work from previous weeks. In this model, checking out to Because of this we will may need to teach multiple branching strategies. But at which point in the course should we introduce each strategy? |
Beta Was this translation helpful? Give feedback.
-
My thoughts from the call: https://github.com/CodeYourFuture/Portfolio is a repo that they will work on for 9-12 months, so is a good opportunity to slowly introduce more git complexity. If we create a roadmap and add one new thing per module, our roadmap will look something like INDUCTION: fork and pr |
Beta Was this translation helpful? Give feedback.
-
This was discussed in a Tech Ed Syllabus team meeting on 31st Aug. The branch-from-branch strategy isn't the most "realistic" strategy, so are we teaching trainees bad habits via this strategy? The only real benefits for React & Node to follow this strategy are that trainees don't have to On the flip-side, the "feature branch-esque" strategy (1 branch per week) is more "realistic" and is ultimately closer to the branching strategy we want trainees to follow in final projects (1 branch per change). We therefore concluded that the best next steps here would be to explore switching the React & Node modules to a feature branch strategy. The React module already needs some work to move to the 4 week model. However React/Node are not our focus at the moment (we want to complete the JS modules re-work first) and aren't urgent in the sense that we have any cohorts close to starting the module. So we'll park this for now. We also decided to add some instructions to the HTML/CSS coursework to explain how to switch to main and create a new branch. |
Beta Was this translation helpful? Give feedback.
In a recent LDN10 class, the teachers (lead by @jasongwartz) did an ad-hoc workshop to cover branching, as discussed briefly in this Slack thread.
They covered the strategy of checking out to
main
before creating a new branch, i.e. the both theweek-1
andweek-2
branches would be based on main.This has some advantages:
main
But has some disadvantages: