Creating LiveCode applications that play well with git

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

openworld
Posts: 63
Joined: Sat Sep 11, 2010 3:56 am
Location: Virginia, USA
Contact:

Re: Creating LiveCode applications that play well with git

Post by openworld » Mon Mar 27, 2017 2:55 am

GitWorkflow-DynamicGraph.png
Trevor,

Have been working in recent days on a parallel project –- look forward to retrying the Levure install based on your suggestions. I'd love to see LiveCode projects integrate by default with Github in the future!

Could Levure include a workflow dashboard at some stage that offers a top view of activity on short-term and long-term branches?

Here's an example –

http://learngitbranching.js.org/?demo (screenshot attached)

In recent Forum threads on D3.js, Digital Pomegranate has shared a stack on how LiveCode calls to D3 can dynamically create visuals on cards.

Perhaps this would be a way for a Levure dashboard to give contributors in a LiveCode Github project to see the status of branches?

For LiveCoders who are new to Github, it also would be wonderful if links to resources like the one below were in the Levure stack.

https://www.youtube.com/watch?v=wNIIx9PMSEc

Look forward to any feedback, and to making the jump to Levure soon!

Best,

Mark
Last edited by openworld on Mon Mar 27, 2017 3:08 am, edited 5 times in total.

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 576
Joined: Fri Jun 27, 2008 9:00 pm

Re: Creating LiveCode applications that play well with git

Post by Mikey » Mon Mar 27, 2017 3:00 am

Why wouldn't you use a tool that already does this, like GitKraken or Atlassin?

openworld
Posts: 63
Joined: Sat Sep 11, 2010 3:56 am
Location: Virginia, USA
Contact:

Re: Creating LiveCode applications that play well with git

Post by openworld » Mon Mar 27, 2017 3:15 am

Mikey,

Can these tools also be called by LiveCode scripts, and send back an interactive diagram?

In a D3 thread on the Facebook LiveCode User group, Todd mentioned plans to share a sample stack by Digital Pomegranate with this capability. Gurgen, can you post a link in this thread once it is ready?

Best,

Mark

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 576
Joined: Fri Jun 27, 2008 9:00 pm

Re: Creating LiveCode applications that play well with git

Post by Mikey » Mon Mar 27, 2017 3:24 am

Hmmmm, I don't know, but what is the advantage of doing that? Maybe I misunderstand what you're hoping to do.

openworld
Posts: 63
Joined: Sat Sep 11, 2010 3:56 am
Location: Virginia, USA
Contact:

Re: Creating LiveCode applications that play well with git

Post by openworld » Mon Mar 27, 2017 3:41 am

Mikey,

I'd love to see a single stack from which one could manage the interactions with Github. It could be a Levure 2.0 stack. Or it could be part of the "Workbench" tool I mentioned in another thread that an open source project manager could fill in with goodies useful to a distributed team of contributors.

In either case, a D3 (or other) visualization showing the current status of commits on the master branch and short-life branches could be a useful for all to see the project status.

In the future, I hope something like Gource could be part of the dashboard card too, displaying who was working on what –

https://www.youtube.com/watch?v=ckiE_sgX-eU

Best,

Mark

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 853
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Mon Mar 27, 2017 3:51 am

@openword - While the tools you are looking for are very useful I don't think they are a good fit for integrating into Levure. Levure is an application framework. The framework itself won't have any tools for visualizing the work you are doing. You could certainly build a plugin for the IDE that displays any data you find useful in your project management.
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 576
Joined: Fri Jun 27, 2008 9:00 pm

Re: Creating LiveCode applications that play well with git

Post by Mikey » Mon Mar 27, 2017 2:50 pm

While we're back on this topic, this is really cool. I think I've found my new way of building stuff in LC. I was very skeptical, but I think I prefer this to the traditional way of building apps in LC.

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 845
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

Re: Creating LiveCode applications that play well with git

Post by dave.kilroy » Mon Mar 27, 2017 5:06 pm

@Mikey I agree - I haven't had a chance to play with Levure yet on my dev machine and have only watched the video(s) and poked around the github repo - but it looks exactly like a 'great leap forward'

Thank you and well done Trevor!!!!!

Dave
"...this is not the code you are looking for..."

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 576
Joined: Fri Jun 27, 2008 9:00 pm

Re: Creating LiveCode applications that play well with git

Post by Mikey » Mon Mar 27, 2017 5:09 pm

Don't forget Brian - he has been writing lots of documentation and answering lots of questions, which has made the transition a lot easier to understand.

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 845
Joined: Wed Jun 24, 2009 1:17 pm
Location: Plymouth, UK
Contact:

Re: Creating LiveCode applications that play well with git

Post by dave.kilroy » Mon Mar 27, 2017 5:11 pm

Very good point @mikey - thanks also to Brian and sorry I didn't include you first time!
"...this is not the code you are looking for..."

jim1001
Posts: 140
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Thu Apr 06, 2017 4:22 pm

I'm trying to take advantage of the hard work done by Trevor & the rest in setting this up. My LiveCode projects to date have been a bit disorganised and wasteful without libraries and version control.

I've been working through Get Started on the Levure wiki & have got to the Install LiveCode Linter bit. For this it says you have to install LiveCode server. To date I haven't needed the server version. I guess that you only need the server running so the code can be checked in real time but you can carry on developing with the LiveCode IDE as before whilst this is happening - is that correct? Will the rest of Levure (apart from Linter) work without installing LiveCode server?

Thanks again to all for getting this up & running.

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 853
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Thu Apr 06, 2017 4:26 pm

Welcome to the party @jim1001.

If you are going to code in the LiveCode IDE then you don't need to worry about anything related to Sublime Text or the linter.

If you do want to use Sublime Text then LiveCode server is needed for reporting errors in your code while you code in Sublime Text. The linter will send the script you are typing in Sublime Text to the LiveCode server executable and try to parse it, reporting any errors that are reported.
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

jim1001
Posts: 140
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Thu Apr 06, 2017 5:01 pm

Thanks for the welcome & quick reply Trevor.

To be clear then, if you're creating a LiveCode app using the IDE you could still use Sublime Text to edit code (& linter to check as you type)?

From what I've seen of your screencasts, Sublime Text seems to offer more features and help to the coder than using the editor in the IDE - would you agree? Or do you think the advantages aren't that great if you don't need the server for anything else?

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 853
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: Creating LiveCode applications that play well with git

Post by trevordevore » Thu Apr 06, 2017 5:07 pm

Yes, you can use Sublime Text and the IDE at the same time. I see a significant increase in productivity when I edit the UI in the IDE and use SublimeText for editing all scripts. It took me a week or two to get used to Sublime Text but I feel very sluggish when working in the IDE editor now.
Trevor DeVore
ScreenSteps - http://www.screensteps.com

Levure Application Framework: https://github.com/trevordevore/levure
LiveCode Resources for Developers: http://livecode.bluemangolearning.com

jim1001
Posts: 140
Joined: Fri Jan 29, 2016 6:25 pm

Re: Creating LiveCode applications that play well with git

Post by jim1001 » Thu Apr 06, 2017 5:57 pm

Understood - thanks Trevor.

I'm now on the Set Up Your Project Folder part of Getting Started but got an error - see attached. The levure folder didn't get created but app & builds did. I tried running LiveCode as Administrator but got same.

Another thing I’m unsure of - on the Getting Started page it says you need the Levure framework & gave the GitHub Levure page. So I downloaded and unzipped this which gave me a levure-master folder. Did I need to do this? If so, does it matter where it goes?

Sorry for all the questions. Your help is appreciated.

Some other info which may or may not be relevant:
I’m running Windows 7 64 bit
I’m using Portable Git

ps: let me know if you'd like me to start a new thread
Attachments
levure.jpg

Post Reply

Return to “Talking LiveCode”