It is currently Thu Feb 09, 2012 1:00 am

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: Every class a unit versus only packages as units
PostPosted: Tue Jun 15, 2010 9:07 am 

Joined: Wed May 07, 2008 3:50 pm
Posts: 148
Location: Horsham, W Sussex, England
We are considering changing from only packages as units to every class is a unit.
I thought I'd better find out what the repercussions might be.
Our reasoning is two-fold :-

1) Several people want to work simultaneously on different classes within the same package.
2) When a package is modified, we check-in and associate to an SPR (ie: defect/bug/issue ID). We also generate the code and need to associate the same SPR with any source files that are modified. Currently this would involve a diff process to see which generated files have been changed. The walkthrough procedure would involve looking at the changes to the package and the changes to the affected source files.

If every class is a unit, then the diff process wouldn't be required.

What do you think? What are the pitfalls of making every class a unit? (We are just migrating to subversion).


Offline
 Profile  
 
 Post subject: Re: Every class a unit versus only packages as units
PostPosted: Tue Jun 15, 2010 12:02 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
If your process has to deal with high-octan delivery cycles then you may have no choice. If you don't work in a pressured environment then I would recommend you organise your model and assign the work to avoid the need to merge.

If you are moving to SVN then experiment a lot. The default settings in SVN do not suit Rhapsody development and you will probably end up in a mess due to files not being (RO). We had pain initially but now we understand how to make it work well.

I have heard of a lot of people now moving to SVN. It's a great tool but you need to learn how it works.


Offline
 Profile  
 
 Post subject: Re: Every class a unit versus only packages as units
PostPosted: Tue Jun 15, 2010 9:51 pm 

Joined: Wed May 07, 2008 3:50 pm
Posts: 148
Location: Horsham, W Sussex, England
I have previously posted on similar threads. The reply from Eric Keller on this post is interesting...
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14464642&#14464642

He also posted here ...
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14285038&#14285038

I'm hoping that with every class a unit, and subversion configured to use "needs lock", then we shouldn't need to do much merging with diffMerge.

I do worry that a package could be checked out, but not the contained classes (.cls). A change to a property in the writable package might try to change read-only class files.

I agree we need to experiment!


Offline
 Profile  
 
 Post subject: Re: Every class a unit versus only packages as units
PostPosted: Wed Jun 16, 2010 7:55 am 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Our use of SVN and Rhapsody uses needs-lock and we stick to package level saved units. We did start using a looser approach similar to what Eric suggests but found it unworkable. Our config file contains:

### Rhapsody files
*.sbs = svn:needs-lock
*.rpy = svn:needs-lock
*.cmp = svn:needs-lock


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred