How to document code (such as JavaDoc?)

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

How to document code (such as JavaDoc?)

Post by charms » Wed Jun 25, 2014 6:28 pm

Hello,

Is there a recommended way to document code such as own handlers? Something similar to JavaDoc so that it is possible to browse and search for handlers?

Thanks,
Chris

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: How to document code (such as JavaDoc?)

Post by dunbarx » Thu Jun 26, 2014 1:49 am

Hi.

LC has a very powerful and useful search tool. Check out the "Find and Replace" stack in the "Edit" menu. You can search for all kinds of things, in an out of scripts.

Craig Newman

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: How to document code (such as JavaDoc?)

Post by bn » Thu Jun 26, 2014 6:15 pm

Hi Chris,

I don't know what JavaDoc is. I looked it up and it seems to be a way to output your code as pdf?

if you want an overview of all your scripts in a stack look here
http://livecodeshare.runrev.com/stack/5 ... eporter-LC

If you want to mark your scripts e.g. for DEBUG or any other comment then
https://livecode.com/store/marketplace/lcTaskList-1-3/

It lists all your scripts where you made an uppercase comment, some keywords are predefined and you can add your own. And for 10$ it is really a good deal.

Kind Regards
Bernd

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by charms » Thu Jun 26, 2014 10:24 pm

Hi Bernd,

Thanks for the links. JavaDoc is a standardized way to document functions and classes in Java. When you run JavaDoc it will create browsable HTML pages with all the functions and descriptions. Here is a link that describes it:

http://www.write-technical.com/126581/j ... c-info.htm

It's similar to the dictionary in LiveCode. Just that it also contains the description of your own handlers.

I guess I could write something myself. Should not be too complicated. Just wanted to know if LiveCode has a standard way documenting source already. But I'll give your proposals a shot.

Kind regards,
Chris

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to document code (such as JavaDoc?)

Post by FourthWorld » Thu Jun 26, 2014 10:56 pm

Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by charms » Fri Jun 27, 2014 4:02 pm

Thanks, looks good :)

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by charms » Wed Jul 02, 2014 11:15 pm

Well we have actually tested it. First of all the links on the LiveCode webpage didn't work anymore. The site had changed in the meantime. Even though it still looked like it was supported I think the last update was done in 2012. We were able to download a test version. However we didn't get it to work in the evaluation version. And this says everything that has to be said about using such plugins. Outdated, unsupported, not usable, but $49 of course :) Not a good sign in my eyes.

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by charms » Wed Jul 02, 2014 11:43 pm

Seems like this stack is outdated.
Last edited by charms on Thu Jul 03, 2014 8:19 pm, edited 2 times in total.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by jacque » Thu Jul 03, 2014 5:15 pm

charms wrote:This actually brings me to the conclusion that Livecode is basically dead. Even though the solution itself is actually very innovative..
I'm confused. A third party developer has stopped upgrading a product, so LiveCode is dead?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by charms » Thu Jul 03, 2014 8:10 pm

I think I had too much wine and a bad moment when writing my last entry. :oops: I changed it. I apologize for my writing. I'm developing a commercial product with Livecode and am a very happy customer. I think I wanted to write that the plugin is not maintained anymore and therefore dead. Hope it didn't cause any harm.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: How to document code (such as JavaDoc?)

Post by bn » Thu Jul 03, 2014 9:01 pm

Hi Chris,

why don't you write to Damien?

http://www.nativesoft.net/support/contact/

he is very meticulous programmer. There are chances that he is not aware of the problems you describe.

Kind regards

Bernd

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

Re: How to document code (such as JavaDoc?)

Post by Simon » Thu Jul 03, 2014 9:43 pm

Something changed recently on the liveCode website where all the store try out's links became https. I contacted one vendor about it but never tested them all.

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

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by charms » Thu Jul 03, 2014 10:44 pm

Ok, thanks for your inputs. Currently I'm thinking about an own small solution creating a plugin. But if this results in too much work I'll contact him.

charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by charms » Mon Sep 28, 2015 1:31 pm


FredBeck
Posts: 77
Joined: Fri Nov 01, 2013 3:07 pm
Contact:

Re: How to document code (such as JavaDoc?)

Post by FredBeck » Fri Oct 02, 2015 10:55 am

This is very cool! Thanks for sharing!
You need to use \ for file path on windows , and for some reason the stack resising is completely off. Apart from that it seems to work fine on LC 7.1 windows.

Post Reply