Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Reading Someone's Program

by Voronich (Hermit)
on May 18, 2011 at 12:52 UTC ( [id://905473]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Reading Someone's Program
in thread Reading Someone's Program

"managed to get it to compile again" o.O? I'm going to assume you mean "have added thorough tests for the changed code and confirmed they all pass".
Me

Replies are listed 'Best First'.
Re^4: Reading Someone's Program
by Tux (Canon) on May 18, 2011 at 14:46 UTC

    No, that would be the commit following :)

    I really don't like having the (small) fix in the same commit as the commit that adds a number of tests to verify the fix. Note that the OP is dealing with a project that does not have tests (yet).

    In a project where you do test-driven development, I would completely agree with you.


    Enjoy, Have FUN! H.Merijn

      heh. My comment was more about the "compiling is unit testing" philosophy. Plus I've become a bit of a TDD crack monkey.

      Though it reminds me of something that's come up for me a few times. I've lately been finding myself wanting to have a local subordinate source control repository (more like a sub-branch.) That way intermediate nonfunctional code versions would be checked in at save time, but not committed to the real branch.

      I'm not at all convinced it's not a wrongheaded thought. But I'm frequently finding myself wanting to roll back micro-changes that weren't solid enough to check in to the primary SCM system.

      Me
        That pretty much is how Distributed Version Control works, you have your own repository to check things into, and when it's ready for wider exposure you push your changeset to the upstream change set.
        For sure. I've become a fan of git and several people at my last $dayjob have continued using it for that purpose even after some other SCM was introduced by $boss.

        I think it works great as a fancy personal "undo" and log for minute-by-minute changes. You can manipulate deltas using it, and find more uses as a general purpose tool than just a repository.

        It's trivial to start filing stuff in it: just git init in that directory.

        Oh, Perl itself has moved to git.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://905473]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-29 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found