• Learning JS with Synchronet

    From Massacre@VERT/SILICONU to All on Thursday, November 05, 2020 15:30:59
    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?

    Thank you!

    ---
    þ Synchronet þ SiliconUnderground - Rochester, NY - siliconu.com
  • From Nightfox@VERT/DIGDIST to Massacre on Thursday, November 05, 2020 13:09:40
    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

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Massacre on Thursday, November 05, 2020 13:31:14
    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

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Massacre@VERT/SILICONU to Digital Man on Thursday, November 05, 2020 22:16:30
    Re: Learning JS with Synchronet
    By: Digital Man to Massacre on Thu Nov 05 2020 01:31 pm

    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

    I will take a look. Thank you!!

    ---
    þ Synchronet þ SiliconUnderground - Rochester, NY - siliconu.com
  • From Massacre@VERT/SILICONU to Nightfox on Thursday, November 05, 2020 22:16:54
    Re: Learning JS with Synchronet
    By: Nightfox to Massacre on Thu Nov 05 2020 01:09 pm

    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

    Thank you!

    ---
    þ Synchronet þ SiliconUnderground - Rochester, NY - siliconu.com
  • From Bob Roberts@VERT/HOVAL to Nightfox on Friday, November 06, 2020 09:55:39
    Re: Learning JS with Synchronet
    By: Nightfox to Massacre on Thu Nov 05 2020 01:09 pm

    Hi 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'm using 1.144 2020/07/11.

    |01bobbobbobbob|09bob|03bob|11bob|03bob|09bob|01bobbobbob |01robrobrobrob|09rob|03rob|11rob|03rob|09rob|01robrobrob
    |07

    ---
    þ Synchronet þ Halls of Valhalla <> San Francisco <> hovalbbs.com
  • From Nightfox@VERT/DIGDIST to Bob Roberts on Friday, November 06, 2020 13:23:20
    Re: DDMsgReader Feature Request
    By: Bob Roberts to Nightfox on Fri Nov 06 2020 09:55 am

    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.

    It might be doable.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Tracker1@VERT/TRN to Massacre on Friday, November 06, 2020 13:01:51
    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

    ---
    ­ Synchronet ­ Roughneck BBS - roughneckbbs.com
  • From Massacre@VERT/SILICONU to Tracker1 on Friday, November 13, 2020 03:39:44
    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