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?
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?
Re: Learning JS with Synchronet
By: Massacre to All on Thu Nov 05 2020 03:30 pm
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?
Start here:
http://wiki.synchro.net/custom:javascript
--
digital man
Synchronet/BBS Terminology Definition #1:
ANSI = American National Standards Institute
Norco, CA WX: 66.0�F, 69.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs
Re: Learning JS with Synchronet
By: Massacre to All on Thu Nov 05 2020 03:30 pm
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?
I don't know of a barebones sekelton JS script, but if you're already somewhat familiar with programming, you could probably look at some of the existing JS scripts for examples and look at the Synchronet JS documentation for what objects & functions are available. That's how I started writing JS scripts for Synchronet.
Nightfox
I'm using DDMsgReader, DDMsgAreaChooser on my Synchronet, and I really like them. I had a feature request for DDMsgReader.
Would it be possible allow different text colors to be set for Quotes, Message Text, Kludge, and Orgin lines? I'd like to be able to color the quoted text differently from the message text, and also the Kludge line and orgin lines seperately as well. Sort of like how Mystic does it. I poked around in the themeconfig, but it doesn't seem to be supported currently.
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?
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
Sysop: | Ree |
---|---|
Location: | Toronto, ON |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 188:35:09 |
Calls: | 389 |
Calls today: | 3 |
Files: | 2 |
Messages: | 38,780 |