Tuesday, November 30, 2010

Re: What's the best way to name your triggers and trigger files?

Permlink Replies: 2 - Pages: 1 - Last Post: Nov 25, 2010 10:51 AM Last Post By: Jirong_Hu Threads: [ Previous | Next ]
Posts: 280
Registered: Sep 04, 2008 05:41:32 PM What's the best way to name your triggers and trigger files?
Posted: Nov 24, 2010 04:20:50 PM I have a dozen of triggers for all different purposes so I want to give good names for both the triggers and perl files. Hope that will be easier for people come in to maintenance it.

I have two choices:
1. Name the trigger as "tr_mkelem_postop", pointing to a script called tr_mkelem_postop.pl.
2. Name the trigger as "CHG_OWNER", pointing to a script called tr_CHG_OWNER.pl.

Which way you guys prefer?

Thanks
Jirong


Posts: 416
Registered: Mar 15, 2005 04:40:07 AM Re: What's the best way to name your triggers and trigger files?
Posted: Nov 25, 2010 05:45:42 AM   in response to: Jirong_Hu in response to: Jirong_Hu's post Jirong_Hu wrote:
> Which way you guys prefer?

No triggers: triggers are evil. Use them at most only temporarily.
Use wrappers instead: more powerful, more portable, easier to debug and to get right, easier to maintain (once, not once per vob), less surprising: the end user is aware of running a wrapper, and able to not use it in case of problem.

This is essential to grow SCM and ClearCase credibility, or rather to avoid jeopardizing it.

Do your triggers work in cygwin environment? My wrappers do.
What perl do your triggers use? My wrapper use the one maintained in my perl vob.

Marc


Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Re: What's the best way to name your triggers and trigger files?
Posted: Nov 25, 2010 10:51:35 AM   in response to: 314 in response to: 314's post Hi Marc

Thanks for your reply. Regarding the wrapper, I only find this: http://search.cpan.org/~dsb/ClearCase-Wrapper-1.16/Wrapper.pm

Can you give more details?

Thanks
Jirong

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

No comments:

Post a Comment