Module 2 Exercise 2: Recreate Your Assignment Workflow

(Knpau) #21

Assignment with task 1 and task 2 as milestones.

(Luigi Menale) #22

(Benjamin Soltoff) #23

General workflow is to create a working branch for writing the answers. Once that is complete, merge it back into the master branch. In the real world, they would not merge directly but instead push all branches to origin and open a pull request to merge solution into master. At that point I’d evaluate the PR

(James ODonnell) #24

I am not entirely convinced that I have carefully thought through the potential for creating new branches for assignments. I have used git a fair amount coding in a team, I have tried to use it in the past for teaching and I felt like it was not really well suited classroom applications because it had been designed for collaborative development. I am starting to think this might have been more about my preconceptions because of what I originally learned to do with git. I do think that the two modes of operation are very different. In dev environment the efforts of several people are focused on creating a single “final” version, or at least a release. In an instructional environment we give a set of instructions, maybe with some starter or sample code: and each individual is supposed to create a unique solution.

I have an idea about having each of my students create their own “cheatsheet” or library of code samples. The would be responsible for updating it as we cover various features of the language we are studying. I am not at all convinced that I have leveraged the idea of using branches to the best advantage.


(Péter Kalicz) #26

What a nice tool!

(Oscar Oliveira) #27

(Klobitz) #28

I think I did this right. How do I move something if it ends up in the wrong spot?

(Daniel Goldsmith) #29

Branch for each of the different assignment tasks,
Merge back into final report

(Rishabh Bansal) #30

Hi @mozzadrella! This is my Module 2 Exercise 2.3 Submission! :slight_smile:

(Miren Berasategi) #31

We haven’t actually done this yet, but this is how I imagine students working on a simple website, adding content first, then creating layout elements, and styling it all in the end.

(Derek Land) #32

No real workflow here yet. Playing around to understand the basics and get a feeling of what it can contribute to classroom activities in a non-programmers department.

(Vanessa) #33

This is so cool!

You can delete the branch, or, as you get more comfortable, cherry pick the commits you want to move:

There are more advanced workflows for this, including reset hard and rebase. There’s documentation on those commands if you’d like to find out more:

(Vanessa) #34

Hi @nasseef, does this belong in Module 2 Exercise 3: Wikipedia Switcheroo?

(Vanessa) #35

@MrODonnell the :sparkle: of branches is that, 99% of the time, we’re on a branch, so we’re almost always using them.

I’ve seen teachers use different branches for different class periods (@gcschmit) , or for pieces of an individual project that build upon each other (I believe it was @ericboivin).

I like using that second :bulb: for your code sample project.

(Vanessa) #36

@OmalPerera here’s a diagram of a real-world workflow…might you want to include a development branch in addition to features?


(JuanMa) #37

(Evan Misshula) #38

Here is my assignment flow

(Elias Nogueira) #39

(Vanessa) #40

Hi @EvanMisshula when do your students merge back to master?