Replace LiveCode Script with JavaScript, forever

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Replace LiveCode Script with JavaScript, forever

Post by richmond62 » Tue Aug 11, 2020 8:44 pm

Has he found a compiler that will let you mix all those languages in source files, and produce a single executable?
Now there's the first really sensible question I seen for a long, long time.

I'll ask him.

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Re: Replace LiveCode Script with JavaScript, forever

Post by Bernard » Sat Oct 24, 2020 12:14 pm

Whilst looking for something else in the forum I stumbled across this thread, and had to comment.
richmond62 wrote:
Thu Jan 02, 2020 9:46 am
The LCS forums are littered with people struggling through problems that simply don't exist in good languages.
That's not true at all.

The LCS forums are full of messages asking for help because LiveCode, unlike a lot of other languages,
can be learnt largely by oneself (no textbooks, no nothing), but a little help does tend to accelerate things.
Elsewhere I have been in discussions with someone who has spent the past two years learning (full-time) to be a web developer. After all that time he still stumbles over basic problems in Javascript and CSS (I see him report on the HOURS he has spent trying to find out where he's going wrong). In 20 years I've never seen someone use LC for 6 months and struggle over the basics.

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Replace LiveCode Script with JavaScript, forever

Post by mrcoollion » Sun Oct 25, 2020 11:25 am

I explicitly choose LC because of ease of learning and the ability to write complex applications for Windows, Mac, Android and Linux, and even Raspberry PI as well as the cost-friendly nature of the licenses.
And even though the language basics of LC are easy to learn there is no development language that makes you a star programmer overnight. Even with LC you need to learn what is possible and how which takes time and perseverance in any language.

My 10 cents.

Regards,

Paul

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

Re: Replace LiveCode Script with JavaScript, forever

Post by FourthWorld » Sun Oct 25, 2020 4:41 pm

mrcoollion wrote:
Sun Oct 25, 2020 11:25 am
Even with LC you need to learn what is possible and how which takes time and perseverance in any language.
I have a friend who wants to learn to become good at playing basketball.

He's read a couple books on it, but he doesn't practice.

He's certain there should be a book that will explain how to do it well, that if it's written well enough he could read it and then step out onto the court and play like a pro, no practice needed.

And so he blames the documentation.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Re: Replace LiveCode Script with JavaScript, forever

Post by Bernard » Mon Oct 26, 2020 11:11 am

Bernard wrote:
Sat Oct 24, 2020 12:14 pm
Elsewhere I have been in discussions with someone who has spent the past two years learning (full-time) to be a web developer. After all that time he still stumbles over basic problems in Javascript and CSS (I see him report on the HOURS he has spent trying to find out where he's going wrong). In 20 years I've never seen someone use LC for 6 months and struggle over the basics.
Let me add to this. The man I'm talking about has written a training course on how to learn Javascript. But after two years he still hasn't learned how to use a debugger. Why? My guess is that there is already so much complexity with differentBrowsers + html + js + css + node packages + someFramework that it was just too much cognitive load to learn something else. With LC so much of the complexity is hidden that the incredibly important skill of debugging is right there in the IDE - it's literally one of the words at the top of the Script Editor. I had to Google just to find out if Safari had any debugger and if so how to enable it. For those who don't understand the benefits of a debugger, they wouldn't look for it.

Imagine dealing with the layers of complexity in differentBrowsers + html + js + css + node packages + someFramework and not having learned how to use a debugger to help manage this complexity. When one has reached the limits of what LC can do then it's time to take on the complexity of using open socket, open process, shell, load URL, Do As x in language Y, or building externals. But web development (even just client side) is complexity from the off. And yet this complexity is almost all that's being offered to novices.

In the UK we have companies springing up charging novices a year of full-time university tuition for a 6 month part-time course in web development. Or to put that another way - these novices are paying for 15 years of a LC indy license for a part-time course. If Javascript is so easy, why would people pay that much money to learn it?

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Replace LiveCode Script with JavaScript, forever

Post by sphere » Tue Nov 10, 2020 2:00 pm

Bernard wrote:
Mon Oct 26, 2020 11:11 am
In the UK we have companies springing up charging novices a year of full-time university tuition for a 6 month part-time course in web development. Or to put that another way - these novices are paying for 15 years of a LC indy license for a part-time course. If Javascript is so easy, why would people pay that much money to learn it?
Because there are a lot of jobs for it. Compare that to the number of jobs where they ask LC.

PaulDaMacMan
Posts: 683
Joined: Wed Apr 24, 2013 4:53 pm
Contact:

Re: Replace LiveCode Script with JavaScript, forever

Post by PaulDaMacMan » Fri Nov 13, 2020 3:38 pm

richmond62 wrote:
Tue Aug 11, 2020 5:23 pm
the host-OS-provided options returned with the alternateLanguages function
-
Well, yeah:
-
Screen Shot 2020-08-11 at 7.17.11 pm.png
-
Seems like there should be at least one more on that list. JavaScript for Automation (JXA) is supposed to be a full fledged OSA scripting language on macOS since 10.10 Yosemite. Also I would think any 3rd party OSA installed should show up, if there still were any others (I beleive Frontier UserTalk is long dead).
My GitHub Repos: https://github.com/PaulMcClernan/
Related YouTube Videos: PlayList

juliadavid
Posts: 1
Joined: Sat Dec 05, 2020 7:41 am

Re: Replace LiveCode Script with JavaScript, forever

Post by juliadavid » Sat Dec 05, 2020 8:05 am

I want to learn ReactJS JavaScript front-end framework. Which platform is good to learn this? React also have a tutorial section on its official website. So is it okay to learn from there or if you suggest any good practical platform? Please guide me about this!

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

Re: Replace LiveCode Script with JavaScript, forever

Post by FourthWorld » Sat Dec 05, 2020 9:45 am

juliadavid wrote:
Sat Dec 05, 2020 8:05 am
I want to learn ReactJS JavaScript front-end framework. Which platform is good to learn this? React also have a tutorial section on its official website. So is it okay to learn from there or if you suggest any good practical platform? Please guide me about this!
What are you building with LiveCode?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

xAction
Posts: 86
Joined: Sun Oct 03, 2021 4:14 am

Re: Replace LiveCode Script with JavaScript, forever

Post by xAction » Mon Oct 25, 2021 7:43 am

It's not entirely a bad proposal. I see all manner of things "just work" in a web browser with Javascript.
I can compile and run over 30 programming languages online through javascript.
I build something with HTML5 from Livecode, it's megabytes of files and it doesn't do anything.
Scratch? Google Code Blocks? Javascript.
A shame there was no vision for this during the open source period.

I loathe looking at Javascript though. Bleh. Livecode should be the easy mode beauty layer for all ugly languages.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Replace LiveCode Script with JavaScript, forever

Post by richmond62 » Mon Oct 25, 2021 8:18 am

A shame there was no vision
But the eyes are normally at the head of the organism (well, unless you are an oyster: clammed shut).

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Re: Replace LiveCode Script with JavaScript, forever

Post by Bernard » Mon Oct 25, 2021 10:41 am

xAction wrote:
Mon Oct 25, 2021 7:43 am
It's not entirely a bad proposal. I see all manner of things "just work" in a web browser with Javascript.
Really? I just happened to have been on my bank's website at the moment I was reading this. They're one of the biggest banks in the world. I told them two years ago their banking application doesn't work on Safari on OSX. Two years later and it still doesn't work. And I'm on a different version of OSX with a different version of Safari, so that's multiple versions where it doesn't work.

Obviously that huge international bank made the decision that Safari/OSX isn't worth the engineering effort.

Meanwhile a team of a dozen people in Scotland are expected to write something that would work on half a dozen Windows browsers, 3 different OSX browsers, and probably as many Linux browsers, plus probably browsers on iPhone and on Android - but an international bank with all their financial and computing resources can't do a fraction of that. Oh yeah, and LC would be expected to run as a normal app on OSX, Windows, Linux. And LC transpiled into Javascript would be expected to work as well as LC works when compiled to C++.

A small team in Scotland should be able to do vastly more than a major international bank. I used to work for a medium sized firm of accountants of whom no-one has ever heard, and our team of programmers had more programmers than work for LC Ltd (and they only worked on internal applications being deployed to two platforms). So imagine how many programmers work for a major international bank. I can't believe how unrealistic people are.

Hopefully the next version of LC will become more feasible when running within a browser.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Replace LiveCode Script with JavaScript, forever

Post by richmond62 » Mon Oct 25, 2021 10:45 am

Hopefully the next version of LC will become more feasible
I deliberately left off the end of your sentence. 8)

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Re: Replace LiveCode Script with JavaScript, forever

Post by Bernard » Mon Oct 25, 2021 10:57 am

If LC doesn't work for you, there are dozens of free alternatives for you to use. Perhaps try Pascal or Elixir or Tcl.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Replace LiveCode Script with JavaScript, forever

Post by richmond62 » Mon Oct 25, 2021 11:14 am

LC works perfectly for me: I have been using it for 20 odd years.

I use it constantly for making ESL standalones for content delivery and reinforcement in my language school,
and it now looks as if I may have a contract to set up a similar sort of operation in another city inwith Bulgaria
with a very strong team of teachers.

I have been using LC for a "daft hobby" sort of thing for digitising dead Indic languages for the last 12 years.

I have been using it to teach computer programming to children in the Summer holidays for the last 8-9 years.

My only gripe, and it is an important gripe, is that, with the lack of availability of a SUPPORTED version of
the Open Source version or some sort of crippled free version, parents are now asking what value classes in
LiveCode can have. The FACT that LiveCode is a superb tool for getting children into programming on a relatively
benign learning curve has no effect on parents who only know so much as to ask, "How do your school computers
work without Windows?"

And, re 'Feasibility': until all those bugs that have been hanging around for yonks are sorted out, and we don't have to
live in a sort of "La La Land" of innumerable work-arounds, there seems no point whatsoever in pushing "ever onwards, ever
upwards" to what will be (unless those bugs are sorted out) a shambolic house built on sand.

Post Reply