blurrypiano / littleVulkanEngine

Code repo for video tutorial series teaching Vulkan and computer graphics
MIT License
829 stars 147 forks source link

Split chapters with branches - Question #13

Closed NoxFly closed 2 years ago

NoxFly commented 2 years ago

Hello,

Why don't you use branches to split the different chapters of your tutorials, so we would have tuto-01 branch, etc... ? It would be also easier on your side to maintain and modify the code from all different versions, without having to stock all the versions, cause we'll only want to use one, even if we change. So we could easily do :

# active branch : tuto-01
$ make && ./a.out
$ git checkout tuto-02 # change tuto version
$ make && ./a.out

So we're on the same solution, but we don't stock all the version in the same directory, and we can run really easily and fastly all the version as we want.

therpgmaster commented 2 years ago

Why don't you use branches to split the different chapters of your tutorials, so we would have tuto-01 branch, etc... ?

I definitely support this idea, but maybe the restructuring would be too messy

blurrypiano commented 2 years ago

ya it might have been a better strategy resulting in a less cluttered directory structure. Once we start getting into the higher tutorial numbers, things might get even more messy, and could make fixing past mistakes much easier.

I'll need to think on it more to decide if the time it takes to switch the project and update all the links in videos to it would be worth it.

blurrypiano commented 2 years ago

OK this is mostly completed now and will be how things are done going forward.