Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Giving a program priority briefly
- Date: Tue, 12 Jun 2007 18:24:55 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] Giving a program priority briefly
- References: <466B5A87.7000002@dcook.org> <78d7dd350706100221u524aa0baxa6498541674863b0@mail.gmail.com> <466BD066.90302@dcook.org> <78d7dd350706101016x184c0a29tbda67c68d66191ed@mail.gmail.com> <466C7778.1050803@dcook.org> <78d7dd350706101834k2d764dcbsd3af2c924f29743b@mail.gmail.com> <466CCBED.30902@dcook.org> <78d7dd350706110108l4acf4a83p70e1f1b55eb9a73e@mail.gmail.com> <87myz6fssg.fsf@uwakimon.sk.tsukuba.ac.jp> <Pine.NEB.4.64.0706120127200.22712@homeric.cynic.net> <466DD92C.70801@dcook.org> <87ir9uexx1.fsf@uwakimon.sk.tsukuba.ac.jp> <466E1F74.8060508@dcook.org>
Darren Cook writes: > > Note that Darren and Curt are talking about entirely different levels > > or scales of work ... > Really, it sounded to me like we were saying the same thing. You really do profiling in a 5-minute off-the-cuff optimization? :-) > The point of the philosophy of distinct > refactor/new-functionality/optimize stages, at the sub-hour level, is > that it is easy to go back to a working version at any point. YMMV, but I consider that the job of my SCM.[1] I can, and regularly do, commit one-character changes. More likely, if I change a parameter in the declaration, I'd grep -R for the function, fix the call in each instance, then commit. (Perhaps interleaved with various distractions, see below.) > More realistically (at least in my work if I don't discipline myself) That's what I see as the key word: "discipline". In your case, dividing into refactor/new-functionality/optimize stages provides that discipline. Great! Don't change! Recommend to others to try it, too. It might work for them, too. But it might not, or they might have a better way (for them). For example, to deal with the kind of distractions you mention, I've added two commands to my SCM: commit-to-lildoc and commit-to-lilfix, where lildoc and lilfix are branches where I accumulate such random changes. I suspect this wouldn't work for most people, but for me it has the effect that the working branch stays focused on the intended work. Little doc fixes are now "fire-and-forget"; I just push them en masse into the mainline. The lilfix branch needs to be explicitly reviewed, of course, but the main thing is not to get the fixes pushed quickly. Rather the point is they don't get dropped on the floor, and they don't interfere with the intended work. That works for me on a scale up to about 30 minutes. Beyond 30 minutes, I need an explicit plan of work, or the only thing I ever do is add YAGNIs to the code. ;-) For the >30 minute hunks, I divide things up differently: review, plan, implement. Review corresponds to specification, and might be a code review or a mailing list review (bugs or RFEs). Then I plan (informally, usually) how to satisfy the need discovered, then write the code. I think this corresponds to a biological (maybe even philosophical) constraint, more than the suggestions about refactoring, functionality, optimization do. But I wouldn't even insist on that. Rather, the need is for discipline, not for a specific discipline. Watts Humphrey says much the same thing in _A Discipline for Software Engineering_. Of course I didn't understand it when I read it, only after I started to put it into practice. :-$(D)P(B Footnotes: [1] git. mercurial should work, too. Darcs is too slow, as are CVS and Subversion. I don't know about monotone, svk, arch, or prcs, but I suspect they're all too slow, too.
- References:
- [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Nguyen Vu Hung
- Re: [tlug] Giving a program priority briefly
- From: Stephen J. Turnbull
- Re: [tlug] Giving a program priority briefly
- From: Curt Sampson
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
- Re: [tlug] Giving a program priority briefly
- From: Stephen J. Turnbull
- Re: [tlug] Giving a program priority briefly
- From: Darren Cook
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Correct particle to use
- Next by Date: Re: [tlug] Giving a program priority briefly
- Previous by thread: Re: [tlug] Giving a program priority briefly
- Next by thread: Re: [tlug] Giving a program priority briefly
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links