Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SHARING] Two programmers editing file at the same time - Asking for suggestions

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SHARING] Two programmers editing file at the same time - Asking for suggestions
 Login/Join
 
Member
posted
Please correct me if I am wrong because I am really fuzzy about this scenario.
If two programmers are making edits to the same file at the same time, they can save over each others work.
For example:
Jane opens foo.fex and starts modifications.
John opens foo.fex after Jane and starts modifications.
Neither Jane nor John know each other are working on foo.fex at the same time.
Jane finishes her changes and saves her file.
John finishes after her and saves his file.
John's file does not contain Jane's edits because he opened foo.fex before Jane saved her file.
Foo.fex only reflects John's changes because he was the last to save and Jane's are lost.

If this is true, what could be put in place to prevent this from happening? All suggestions or corrections are welcome.

This message has been edited. Last edited by: Kerry,


Developer Studio 7.7.02
Windows XP Pro SP3 and Windows 7 64bit
all output
 
Posts: 20 | Registered: January 27, 2010Report This Post
Guru
posted Hide Post
He/She that saves last, wins.


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Report This Post
Member
posted Hide Post
I was afraid my scenario was true. Are there any ways to prevent this from happening?

EDIT:
Is this post pointing me to the solution to my question, using version control?
http://forums.informationbuild...1057331/m/2787066526

This message has been edited. Last edited by: Euclid,


Developer Studio 7.7.02
Windows XP Pro SP3 and Windows 7 64bit
all output
 
Posts: 20 | Registered: January 27, 2010Report This Post
Expert
posted Hide Post
If v3ersion control is used, then when it comes time to merge, the fun starts.

I would avoid this at any cost, the merge could be diabolical.

Frowner


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Well... In "normal" situations two people editting a file under version control is not often a problem, as long as they're not editting the same physical file. To that end, each person has their own "working copy" of a project in a location that's exclusively theirs to edit in. That works beautifully.

With WebFOCUS, things are a little complicated.
Firstly, the files tend to be at a single location, where everybody is doing their edits through Developer Studio. You can install a development environment for each person and that works, but that means you have to install WebFOCUS and every hotfix on each PC involved. It adds a lot of hassle.

Secondly, with WebFOCUS each file is really a procedure. If you change one part of that procedure, it tends to affect what comes after what you edited. If two people edit the same procedure like that, a merge of the changes by both can have interesting results.

Normally with version controlled projects, code is divided into many procedures that each do one specific thing. For that reason, developers tend to be active in different procedures and not influence each others results much. Conflicts are rare.

Back to WebFOCUS, where each procedure is a file. People tend to write monolithic procedures, because it's inefficient to call hundreds of files for a single report and it's hard to keep track of all those separate files too.
Therefore, WebFOCUS procedures tend to perform a lot of related actions in one procedure (monolithic) instead of separate specific tasks each in a procedure of its own. A change in such a procedure by one developer is likely to affect the results of a change by another developer in the same procedure.

So, how effective version control can be for you depends on how you work.

In our case, different developers usually work on different reports. They're all on the same WF server. It's not ideal, but version control has saved our butts a couple of times already, so we still consider it an improvement over not having version control. It sure beats having to restore things from nightly backups Wink


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Gold member
posted Hide Post
Here's an idea we've kicked around, but haven't had much success implementing do to lack of enforcement (we haven't assigned anyone or group to be the enforcer). All development should happen in the test environment in your own work space making copies of whatever code you need to modify. When you are ready to promote your code to production a group or person would review the code, ensure there are no conflicts with other modifications and then promote the changes to production.

However, with more complicated fexes (especially html pages that are linked to fexes) moving the code around is a huge hassle.

That is probably more overhead than most people need or could stand.


Kevin Patterson
Appalachian State University
WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 57 | Registered: February 29, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SHARING] Two programmers editing file at the same time - Asking for suggestions

Copyright © 1996-2020 Information Builders