Some best practice Questions

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

Tate83
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 30
Joined: Fri Mar 01, 2013 1:11 am

Some best practice Questions

Post by Tate83 » Thu May 23, 2013 12:48 pm

Hi all,

I am working on my first project, a tool on Linux and Windows with around 10 cards and a sqlite db. Probably I will integrate MySQL or other DBs later on as well, but that shouldn't be a problem with André's DBLib anyway.

I do have some other questions which I am sure some of you have already encountered and can advise me on some best practice.

1. How do you skin your app and make it resizable on desktops? Do I use the same as with mobiles where basically every field and button size is based on a screen resolution factor? Or is there a better/quicker way?
2. How do you make it multilingual? I will start off with english but might want to implement further languages later on. Do you usually store your translations in a DB table and always use DB functions to get the proper titles of the fields/buttons? Doesn't this impact performance on weaker computers?
3. Do you usually create an installer to copy DB templates, .exe files and stuff to the right paths? Or do you just deliver the .exe? How about uninstall?
4. How would I go ahead to implement some licensing? Sure I would buy the commercial edition of LC and the plugins I use, but what else would you do? How do you check licensing and how often? How do you decide on pricing?

Looking forward to your input :-)

Thanks,
Pascal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Some best practice Questions

Post by Mark » Fri May 24, 2013 9:43 am

Hi Pascal,

Usually, controls resize dynamically in desktop applications. It means that for every arbitrary window size, you'll want to have your controls sized properly. This means that you can't set up a routine for predetermined resolution, as you'd do on mobile devices. Usually, I determine which fields need to be resizable and which can be static and I write a script that resizes or repositions the controls relative to the card size in the resizeStack handler.

An easy way to "skin" your app is to use graphic controls with effects and use these behind transparent controls. In most of my projects, I don't skin anything and I just use the native controls because those match the operating system best. (I know, this doesn't apply to mobile operating systems).

For my Windows projects, I use Installer Maker. Installer Maker also includes an uninstaller. On OSX, I usually deliver the application package and I programme my standalone in such a way that I can keep all my files inside the application package. Sometimes, I use Installer Maker also for OSX. If you buy the commercial version of Installer Maker, then you can use it as plugin, otherwise you need to use the standalone version.

For licensing, I have a very simple library. Important is to make sure to update your software regularly and to disable very old license keys for new updates. There are many approaches to licensing, from donation ware to very strict license checking systems using an on-line database. By now, I've made them all. If you like,you could contact me and perhaps my company can set up something for you.

Also, since you're working on your first project, my book might be interesting to you.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Tate83
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 30
Joined: Fri Mar 01, 2013 1:11 am

Re: Some best practice Questions

Post by Tate83 » Fri May 24, 2013 2:43 pm

Hi Mark,

Thank you for the input!
I will look into the resizestack handler and do some nice controls.

Depending on the licensing I am going to choose I will probably get in contact to you again regarding installer and license keys.

Afaik, your book should already be on the way ;-)

Regards,
Pascal

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Some best practice Questions

Post by Mark » Fri May 24, 2013 2:53 pm

Hi Pascal,

I look forward to your e-mail.

Yup, you're right. I happen to have the database open on my screen and I can see that you'll get the book any day now.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Tate83
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 30
Joined: Fri Mar 01, 2013 1:11 am

Re: Some best practice Questions

Post by Tate83 » Fri May 24, 2013 2:58 pm

Hi Mark,

Great, I'm looking forward to get even deeper into LC :-)

Regards,
Pascal

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

Re: Some best practice Questions

Post by FourthWorld » Fri May 24, 2013 7:06 pm

Tate83 wrote:4. How would I go ahead to implement some licensing?
It's tedious work to write a good licensing scheme, but if you're inclined here are some tips I found helpful when writing my own reg system:
http://www.inner-smile.com/nocrack.phtml

But if you'd like to save some time, Jacque Gay's excellent Zygodact has become a very popular solution for adding a license registration system to LiveCode apps:
http://livecode.com/store/marketplace/zygodact-1-0-4/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Some best practice Questions

Post by Mark » Fri May 24, 2013 7:18 pm

Hi,

Right, making a licensing system is better left to the real experts with experience ;-) Pascal, I'd be happy to give you some off-list advice if you like.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Some best practice Questions

Post by Dixie » Fri May 24, 2013 7:55 pm

Where the hell are we going to find a real expert ?...:-)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Some best practice Questions

Post by Mark » Fri May 24, 2013 7:58 pm

Dunno... Dixie... maybe look here and there and take your pick :-)

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: Some best practice Questions

Post by jacque » Sat May 25, 2013 5:18 pm

On the other hand, custom off-list advice can get expensive.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Some best practice Questions

Post by Mark » Sat May 25, 2013 5:23 pm

Do you have experience with that, Jacque?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

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

Re: Some best practice Questions

Post by jacque » Sat May 25, 2013 5:30 pm

Let's not get snarky, Mark.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Some best practice Questions

Post by Mark » Sat May 25, 2013 5:33 pm

You started it, Jacque.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Some best practice Questions

Post by Klaus » Sun May 26, 2013 12:50 pm

Someone called my name? :cool:

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

Re: Some best practice Questions

Post by FourthWorld » Sun May 26, 2013 3:09 pm

Klaus wrote:Someone called my name? :cool:
Looks like it - searching livecode.com for "consultants" pulls you up in the list:
http://livecode.com/about/consultants/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply