CM wiki web
When to checkin?
The archaic bad advice is: Why is it wrong?- It confuses two things that should be decoupled: checkin (for identification purposes), and publication
- It assumes that management only concerns working code, i.e. is not available during the development itself!
- It assumes that all the SCM tools are as primitive as the only ones the author knows
- It pretends to set up a tool independent process, whereas it is heavily bound to prehistorical tools
Management is needed precisely when things change, when there are problems to solve, advice to receive, solutions to negociate with others, test cases to write and to see fail! In fact, in an agile mind frame, one should:
- write the test case
- run it to see it fail
- record the failure
- fix the code
- run the test case again and see it pass
- record the success.
Quite obviously, this implies that the non-running code is checked in! In any case, you learn of failures only afterwards, when a non expected failure happens, in a context you did not anticipate. So, the advice above is just impossible to follow! Or incredibly naive.
There exists no working code: only code that is not known to break yet.
The only code that won't ever break is shelfware. -- MarcGirod - 07 May 2009
Edit • Attach • Print version • History: r2 < r1 • Backlinks • Raw View • Raw edit • More topic actions
