Author Topic: Easy way to store source code?  (Read 27881 times)

tuturto

  • Rogueliker
  • ***
  • Posts: 259
  • Karma: +0/-0
    • View Profile
    • pyherc
Re: Easy way to store source code?
« Reply #30 on: November 15, 2012, 06:47:46 PM »
In theory - and there are systems that do this - you can automatically remove a bug if you combine `git bisect` with unit tests. I have never met anyone who had such a sophisticated setup but my linux magazine tells me some people do that.

Damn, this is crazy or I am missing something here. If one is able to write unit tests that would detect a bug, why not to run them *before* the code is committed?

It doesn't have to be a unit test and sometimes bugs do slip through, regardless of automated testing. Also, it doesn't automatically remove the bug, but find the commit where given test fails first time. But, if you write consummate code, such a hackery is not needed :)

It still feel a lot more adventurous when I have version control to back me up. It's easier to experiment with the code and throw away stuff that I don't like and keep the stuff that I like. Sharing with friends and strangers is a breeze.
Everyone you will ever meet knows something you don't.
 - Bill Nye

siob

  • Rogueliker
  • ***
  • Posts: 64
  • Karma: +0/-0
  • blit(brain)
    • View Profile
    • gamejs
Re: Easy way to store source code?
« Reply #31 on: November 16, 2012, 02:33:21 PM »

It still feel a lot more adventurous when I have version control to back me up. It's easier to experiment with the code and throw away stuff that I don't like and keep the stuff that I like. Sharing with friends and strangers is a breeze.

good point!