Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Dec 11, 2017 9:22 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Export project code?
PostPosted: Mon May 20, 2013 2:49 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Barry, VCP format is a textual representation. Version control requires text, so it can make sense of differences. There are a few non-textual files that are created, but the code itself (the part that a version control system cares about) is pure text.

The order of methods in a printout could be an issue. That is an area where your codehelper program would be beneficial.


Top
 Profile  
Reply with quote  
 Post subject: Re: Export project code?
PostPosted: Tue May 21, 2013 7:58 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
To give a fuller answer to your question:
barrytraver wrote:
What does "version control" have to do with "textual representation"? When I save a Project in VCP format, I don't get "text." I get a bunch of files that Windows doesn't even know to open, much less to show me meaningful text.

Those files are straight text (most of them, anyway). Whether the OS recognizes the extension or not is irrelevant. They are text. You can right click them and "open with notepad" and read them.

Quote:
As I understand it, I need some additional program (e.g., Subversion or Git or SmartGit?) to get meaningful textual information when I save something in VCP format.

Version control doesn't modify the files in any way, whether to "produce meaningful text" or in any other fashion. It saves them and tracks all the changes between one version of a file and the next. This requires the code to be plain text. When you save in VCP format, the IDE explodes the project into many smaller files so that the version control can be more efficient. A small change will likely affect just one of those files, so the version control system only has to store the one changed file, not the entire project.

Version control is a storage and comparison system that stores every version of the project and can show you the exact changes that occurred to the code between 2 versions. It also lets you make a note of why each change was made. The VC system can also reproduce any version of the project on demand. If you want to go back to last Tuesday's version, no problem.

As an implementation detail, version control saves only the changes, not the entire files, so the required storage is much smaller than if you just kept a copy of each version, say by changing the name from ch109 to ch110.

Hope that makes it a bit clearer.
Tim


Top
 Profile  
Reply with quote  
 Post subject: Re: Export project code?
PostPosted: Wed May 22, 2013 3:34 pm 
Offline
User avatar

Joined: Wed Jul 07, 2010 2:55 pm
Posts: 720
Location: University Of Calgary, Faculty Of Medicine
Just as an FYI.
I did see a project that took an RB project and outputted UML.
I thought that was quite useful, though i never tried it myself.
Generate UML Class Model from REALbasic Project

_________________
If at first you don't succeed... Try REALBasic and if that doesn't work try Xojo.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group