Subj : Re: Learning JS with Synchronet
To   : Tracker1
From : Massacre
Date : Fri Nov 13 2020 03:39 am

 Re: Re: Learning JS with Synchronet
 By: Tracker1 to Massacre on Fri Nov 06 2020 01:01 pm

> On 11/5/2020 1:30 PM, Massacre wrote:
> > I am looking to write some stuff for SAynchronet and have a
> > background in C, BASIC, Python, etc.  Is there a barebones
> > "skeleton" code somewhere in Js that I could tinker with that
> > has basic fundamentals to test/learn with?
>
> Would keep the Synchronet JavaScript Object Model reference bookmarked.
>
> http://www.synchro.net/docs/jsobjs.html
>
> Most of that is pretty easy to understand... would look in the various
> JS files in exec/load etc.... anything you edit, just put in an
> sbbs/mods/ directory, which will load in practice ahead of the exec paths.
>
> For general JavaScript, would take a look at Eloquent JavaScript.
>
> https://eloquentjavascript.net/
>
> I wouldn't consider the modules section much, as Synchronet doesn't
> follow either CommonJS or ESM modules, it predates them both.  The
> Asynchronous programming part also doesn't apply to Synchronet.
>
> Synchronet uses, iirc, SpiderMonkey 1.8.5 engine, which should be all of
> ES5 (2009), with a couple bits from ES6/ES2015 that were in development
> (very little)... so you may come across unsupported methods or syntax in
> practice looking at other JS code.
>
> --
> Michael J. Ryan
> tracker1 +o Roughneck BBS
>
Thank you!  I will take a look and dig in.

---
� Synchronet � SiliconUnderground - Rochester, NY - siliconu.com