Time to go Git

I've been chewing on this for some time, now, but I've decided it's time to act. Well, as soon as AU is over I'll act, anyway. Which I expect means it'll morph into a New Year's resolution for 2015. ๐Ÿ™‚Git

Back when this blog was launched, the Git project was still relatively young. But it's clearly become the version control technology to use, especially when putting code out there in the open. And this blog is all about putting stuff out there in the open, after all.

Autodesk is using GitHub for our PaaS samples โ€“ which for now includes those for the Viewing & Data web-service and AutoCAD I/O โ€“ and it's being internally used for more and more activities, elsewhere.

I've used GitHub a little bit for my own viewer samples โ€“ and I really like the fact Heroku links to it, to pull down the source to build the web-site/-service โ€“ but I feel the time has come to dive in more deeply and use the technology more.

In preparation for this, I'm currently on chapter 2 of Pro Git โ€“ it's available for free as an e-book, so I just emailed the .mobi version to my Kindle โ€“ and it seems to be a great resource. I've already learned a lot from the first chapter and a half.

My plan is to take the various samples I've created for this blog over the last 8.5 years and manage them using GitHub, allowing others to contribute fixes. The vast majority of these samples are single files that will just be part of a main aggregator project (that's how I have them on my system: I have a main project that I add the various C# files into when I develop and later need to test them), but there will be some additional standalone projects, too.

This is perhaps a bigger job than you might think, for a few reasons. I started to work through the files I have in my aggregator project, but found it was taking too long: I've somewhat foolishly polluted the project with code people have sent me to test issues, over the years, so I can't just publish them all, as-is.

I've decided I'm going to take another track, to use the Typepad API to access post information, extract the HTML content โ€“ and the sections of code from them โ€“ and compare them programmatically against the files I have locally. This will at least allow me to take all the "valid files" and create a list of the ones that need manual intervention of some kind. At least that's the plan โ€“ we'll see how and when it gets completed. I think (or hope) it'll be worth the effort.

4 responses to “Time to go Git”

  1. Git is the way to go. Mercurial is also good, but I usually prefer git approach to problems. Mercurial tries to trail you into some best-scenario path, which is not always what happens. Anyway, both are pretty good

  2. Sounds like you are making a current library of code from past blogs, if I understood you. You are hitting a key topic that small example code postings do not help with. That is making helper libraries and sharing/organizing them. Anyone trying to get into .net, especially all those lisperers I think adesk would love to convert, run into how to organize things. You have to be careful about references, and how acad only loads one dll of a given name. I consider my navigation of that as much of an accomplishment as learning to code in C#. The code is actually easy, as tons of self contained, non-complicated examples are out there. Avoiding code duplication is super important so making central libraries and sharing them is critical to efficiency. Looking forward to more posts on that subject ๐Ÿ™‚

  3. Kean, to get this done before the end of the year, you just need to PUSH yourself a bit, and COMMIT to finishing it up. ๐Ÿ˜‰

    1. ๐Ÿ˜€

Leave a Reply to Bruno Saboia Cancel reply

Your email address will not be published. Required fields are marked *