On 6/4/2014 10:49 PM, Booth Martin wrote:
How does one set the preferences for Local History? RDi 9.0.1

From time to time I would like to set a current version of my work as a
restore point, should I want to start over at a previous point. I see
no easy way to do that. I suspect that means I have missed a setting or
marker of some kind.

Do I understand the use case? You're working with an application and in
a cycle of edit, compile, test and there's some point where you've got
things working but you want to refactor the code and try some
alternatives. But, you want to be able to fall back on the code as it
is now, working but with five o'clock shadow.

If this is the scenario then I don't think the vanilla RDi has a
solution for you; no setting that will checkpoint a program so you can
make n changes and then arbitrarily roll back y changes. The
traditional solution to this problem is some form of source control like
Subversion, Git or CVS. SCM has the benefit of working across editing
sessions (unlike Ctrl-Z) as well as being able to put several source
members under the same 'commitment level' (think DDS display, CLP
overrides, RPGLE exfmt and subprocedures).

There is (sort of) another way to look at the problem. You're changing
the code for a reason and it kind of doesn't matter what that reason is
- you don't want to keep that code (working or not). What you're asking
for is the confidence of a known, working (if crufty) fallback.
Wouldn't it be better if you had known, working /current/ code instead
of a fallback? I use RPGUnit in conjunction with RDi for a TDD-like
experience. This way I don't worry about going backward, I always move
forward. Something to consider. Thomas Raddatz has an RDi plugin for
RPGUnit that I use.
http://www.tools400.de/English/Freeware/RDi_Plug-Ins/rdi_plug-ins.html
I won't take the list's time with a long post about TDD, but I find that
I have increasing confidence in my code the more I have under test.
--buck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.