Source Control using stacks instead of cards

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
matthellstrom
Posts: 31
Joined: Mon Apr 27, 2015 3:09 pm

Source Control using stacks instead of cards

Post by matthellstrom » Thu Jun 11, 2015 9:54 pm

I'm trying to figure out how to allow multiple developers to work on the same project. I don't see any source control solutions out there, so I was thinking that I may be able to use stacks instead of cards for different parts of the same application. Then, one developer could work on one stack while another worked on another stack.

I have a main screen application (desktop) with buttons across the top and down the left side. When I click on one of the buttons it will bring up a different application: Item maintenance, order entry, accounts receivable, etc. in the same window. I guess if I created different stacks and somehow kept them all the same size, I could go from one to the next.

I don't know if I'm explaining myself very well, do you understand what I mean, and is this a viable option?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Source Control using stacks instead of cards

Post by dunbarx » Thu Jun 11, 2015 10:27 pm

Hi.

Using stacks instead of cards within a stack seems fine to me. Make sure that nobody changes the window size, not that this could not be dealt with if required, but why tempt fate? It is simple to create a single stack from the various "substacks". It is important, of course, to separate the tasks.

But wouldn't each stack developer need access to the other stacks? If I write a handler that loads a field on a remote card, it is nice to have that card available. This will no longer be the case.

Craig Newman

matthellstrom
Posts: 31
Joined: Mon Apr 27, 2015 3:09 pm

Re: Source Control using stacks instead of cards

Post by matthellstrom » Thu Jun 11, 2015 11:08 pm

I don't think I like the idea of doing it this way, I just can't see any other way that 2 people can work on the project at one time.

Most of these screens in this application are reasonably standalone, so I don't think we'll have to access another stack very often. If we do, we'll just make sure to coordinate that.

Is there any other way to do this? I haven't been able to find any source control options, because of the binary issue.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3999
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Source Control using stacks instead of cards

Post by bn » Thu Jun 11, 2015 11:35 pm

Matt,

would it be an option to put your scripts into libraries? Mark Waddingham posted to the use-list a new feature of a text-only stack. This is just a text file that has no binaries. You can use this as library. As Mark states Livecode uses this technique for quite a lot of the IDE stacks. And they do it for exactly the reason you state: to be able to use a version control system.

http://runtime-revolution.278305.n4.nab ... l#a4691400

I have not experience with this, but maybe it is an option for the time being.

Kind regards
Bernd

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3999
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: Source Control using stacks instead of cards

Post by bn » Thu Jun 11, 2015 11:49 pm

Matt,

there is also thing called lcVCS done by Monte Goulding, he translates stacks to text files

https://github.com/montegoulding/lcVCS

again, I did not use it but he also did this to use version control systems. From what I gathered it is a bit more involved than the script only stack techniques, but then he uses the whole stack.

Kind regards

Bernd

matthellstrom
Posts: 31
Joined: Mon Apr 27, 2015 3:09 pm

Re: Source Control using stacks instead of cards

Post by matthellstrom » Fri Jun 12, 2015 1:42 am

That looks hopeful, Bernd. Thanks for the info!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Source Control using stacks instead of cards

Post by Simon » Fri Jun 12, 2015 2:24 am

Hi Matt,
Here is my little journey;
http://forums.livecode.com/viewtopic.php?f=8&t=24411

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

MaxV
Posts: 1579
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Source Control using stacks instead of cards

Post by MaxV » Wed Jun 17, 2015 11:02 am

I'm developing a simple DIFF viewer for livecode files. However I can only show what changed (properties, codes, etc.), but it doesn't merge the differences.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”