View Full Version : Source Control and Refactoring
Uncle Bob (Robert C. Martin)
06-30-2003, 08:04 PM
"Tobin Harris" <tobin_dont_you_spam_me@breathemail.net> might (or
might not) have written this on (or about) Sat, 28 Jun 2003 06:33:08
+0100, :
Hi there,This is a bit of a silly question, but I'd be interested in comments!...In short, does anyone find that the CVS source-control system is a bit of anobstacle to renaming classes, when your filenames mirror class names? For myteam, this is a real pain becuase we like to revist our naming of classesoften, but then there's the whole drag of having to remove/re-add thecorrecsponding file to CVS!!! Ideally some CVS tool would detect ourrenaming antics and update the repository accordingly. Or are we just lazy?
No you aren't lazy. It's important to remove any impediment to
improving your design.
Get a tool like IntelliJ. It automatically changes file names in CVS
when you change class names. It's also a kick-ass IDE!
Robert C. Martin | "Uncle Bob"
Object Mentor Inc.| unclebob @ objectmentor . com
PO Box 5757 | Tel: (800) 338-6716
565 Lakeview Pkwy | Fax: (847) 573-1658 | www.objectmentor.com
Suite 135 | | www.XProgramming.com
Vernon Hills, IL, | Training and Mentoring | www.junit.org
60061 | OO, XP, Java, C++, Python |
Ilja Preuß
07-01-2003, 01:08 AM
> Get a tool like IntelliJ. It automatically changes file names in CVS when you change class names. It's also a kick-ass IDE!
Not if you are working with C# or Ruby, I guess... ;)
There are Eclipse-Plugins for those languages - don't know about their
usefullnes, though:
http://eclipse-plugins.2y.net/eclipse/plugins.jsp?category=Languages
Tobin Harris
07-04-2003, 05:08 PM
"Ilja Preuß" <preuss@disy.net> wrote in message
news:be0lnq$uer$1@stu1id2.ip.tesion.net... As far as I know, I'm stuck with: 1. DOS Copy file to new 'desired' name 2. CVS 'remove' old file (along with local version also) 3. CVS 'add' new file 4. CVS 'commit' new file Looks a lot like a batch-script, doesn't it? ;)
Yeah, pretty much. I wrote a VS.NET macro today that does the job nicely
from within the IDEs solution explorer, so I'm pretty pleased with myself!
Tobes
Regards, Ilja
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2008, Jelsoft Enterprises Ltd.