Page 1 of 1

Online Snippets library

Posted: Wed Sep 22, 2010 11:21 am
by AndyP
Is there an online code snippets library out there for Rev erm LiveCode?

Not full tutorials, we have them and they are great but just small chunks of code that individuals have used and tested. I know there is a lot of code out there but it's fragmented so a central snippet store I think would be useful.

If not I'm willing to get one up and running.

I'm thinking of having a tree type drill down to the snippets.

Anyone will be able to post thier snippets, suggest new categories etc. The inclusion would not be automatic as to stop bad (spam, porn) content each submission would have to be approved.

Re: Online Snippets library

Posted: Wed Sep 22, 2010 11:53 am
by Johdu
Andy, That's a great idea. I made a start with somethign similar a while ago (http://www.revclever.com) but it is very difficult for one person to keep alive. This forum is a fantastic (wise, helpful and friendly) community... but a site devoted exclusivly to adding/sharing short code snippet ideas would be useful to. I'd be happy to collaborate.

John

Re: Online Snippets library

Posted: Wed Sep 22, 2010 1:24 pm
by AndyP
So as to not duplicate too much I'm continuing this thread here.

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

Re: Online Snippets library

Posted: Thu Sep 23, 2010 2:38 pm
by shadowslash
Johdu wrote:Andy, That's a great idea. I made a start with somethign similar a while ago (http://www.revclever.com) but it is very difficult for one person to keep alive. This forum is a fantastic (wise, helpful and friendly) community... but a site devoted exclusivly to adding/sharing short code snippet ideas would be useful to. I'd be happy to collaborate.

John
Hmmm since the new rev is now LiveCode what should replace the old "rev" prefix? Should it be "liveForums, liveEnterprise, etc"? or "lcForums, etc"

Re: Online Snippets library

Posted: Thu Sep 23, 2010 3:04 pm
by Klaus
The "official" new SUFFIX is "*.livecode" but "*.rev" also works :D

Re: Online Snippets library

Posted: Thu Sep 23, 2010 3:20 pm
by shadowslash
Klaus wrote:The "official" new SUFFIX is "*.livecode" but "*.rev" also works :D
Yeah but using livecodeForums or livecodeResource (My little project) is a little too long right? Image

Re: Online Snippets library

Posted: Thu Sep 23, 2010 3:36 pm
by Klaus
Oops, sorry, looks like I misunderstood your initial question.

Yep, "LiveCodeForums" or "LiveCodeResources" IS a bit long,
but hey, I am sure we will find the two or three additional seconds to also type that! 8)

Re: Online Snippets library

Posted: Thu Sep 23, 2010 3:48 pm
by shadowslash
And what about livecodeCacheGeometry, livecodeUpdateGeometry, livecodeDatabaseColumnNumbered.. Imagine those commands inside our scripts Image it would totally affect the length of the scripts! I know revCacheGeometry and the lot can still be used for background compatibility but still, what about new users that would adapt to the livecode prefix? Image I suggest they give out an official prefix for the new LiveCode. Like LC, "lc" seems good Image but I'll have to admit I'll miss the rev prefix if that will be the case... Image

Re: Online Snippets library

Posted: Thu Sep 23, 2010 4:49 pm
by Klaus
I don't think they will change the internal names for functions and handlers.

On the other side I really don't care, since I never use them,
I'm still working with the spartanic MetaCard IDE and just love it! :D