Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

perfect guest: One who makes his host feel at home.


dovenet / Synchronet Javascript / Javascript for dummies like me

SubjectAuthor
* Javascript for dummies like meSys64738
+* Javascript for dummies like meDigital Man
|`- Javascript for dummies like meSys64738
`* Javascript for dummies like meechicken
 `* Javascript for dummies like meSys64738
  `* Javascript for dummies like meechicken
   `* Javascript for dummies like meSys64738
    +* Javascript for dummies like meDigital Man
    |`* Javascript for dummies like meSys64738
    | +* Javascript for dummies like meechicken
    | |`- Javascript for dummies like meSys64738
    | +* Javascript for dummies like meDigital Man
    | |`* Javascript for dummies like meSys64738
    | | +* Javascript for dummies like meDigital Man
    | | |`* Javascript for dummies like meSys64738
    | | | +* Javascript for dummies like meechicken
    | | | |`* Javascript for dummies like meSys64738
    | | | | +* Javascript for dummies like meMRO
    | | | | |+- Javascript for dummies like meSys64738
    | | | | |`* Javascript for dummies like meNightfox
    | | | | | `- Javascript for dummies like meMRO
    | | | | `* Javascript for dummies like meechicken
    | | | |  `- Javascript for dummies like meSys64738
    | | | +* Javascript for dummies like meNightfox
    | | | |`* Javascript for dummies like meSys64738
    | | | | +* Javascript for dummies like meechicken
    | | | | |+* Javascript for dummies like meSys64738
    | | | | ||`* Javascript for dummies like meechicken
    | | | | || `* Javascript for dummies like meSys64738
    | | | | ||  `* Javascript for dummies like meechicken
    | | | | ||   +- Javascript for dummies like meDigital Man
    | | | | ||   +- Javascript for dummies like meNightfox
    | | | | ||   `* Javascript for dummies like meNightfox
    | | | | ||    `- Javascript for dummies like meMRO
    | | | | |`- Javascript for dummies like meDigital Man
    | | | | +* Javascript for dummies like meNightfox
    | | | | |`* Javascript for dummies like meSys64738
    | | | | | `* Javascript for dummies like meNightfox
    | | | | |  `* Javascript for dummies like meSys64738
    | | | | |   `- Javascript for dummies like meNightfox
    | | | | `- Re: Javascript for dummies like meTracker1
    | | | +* Javascript for dummies like meDigital Man
    | | | |`* Javascript for dummies like meSys64738
    | | | | `* Javascript for dummies like meDigital Man
    | | | |  +* Javascript for dummies like meDigital Man
    | | | |  |`* Javascript for dummies like meSys64738
    | | | |  | +* Javascript for dummies like meDigital Man
    | | | |  | |`* Javascript for dummies like meSys64738
    | | | |  | | `- Javascript for dummies like meDigital Man
    | | | |  | `- Javascript for dummies like meNightfox
    | | | |  `- Javascript for dummies like meSys64738
    | | | `- Re: Javascript for dummies like meTracker1
    | | `* Re: Javascript for dummies like meTracker1
    | |  `* Re: Javascript for dummies like meThe Lizard Master
    | |   `- Re: Javascript for dummies like meMRO
    | `* Javascript for dummies like meNightfox
    |  `- Javascript for dummies like meSys64738
    `- Javascript for dummies like meechicken

Pages:123
Javascript for dummies like me

<61B7D9EC.86.dove-syncjs@txnet1.synchro.net>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=685&group=DOVE-Net.Synchronet_Javascript#685

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: sys64738@VERT/TXNET1 (Sys64738)
To: Nightfox
Subject: Javascript for dummies like me
Message-ID: <61B7D9EC.86.dove-syncjs@txnet1.synchro.net>
Date: Mon, 13 Dec 2021 10:40:28 -0600
X-Comment-To: Nightfox
Path: rocksolidbbs.com!not-for-mail
Organization: TX Net 1
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61B45972.3509.dove_sync_js@digitaldistortionbbs.com>
References: <61B45972.3509.dove_sync_js@digitaldistortionbbs.com>
X-FTN-PID: Synchronet 3.18b-Win32 Sep 20 2020 MSC 1927
X-FTN-CHRS: CP437 2
WhenImported: 20211213163954-0800 41e0
WhenExported: 20211213165750-0800 41e0
ExportedFrom: VERT sync-js 3585
WhenImported: 20211213174028-0600 4168
WhenExported: 20211213183947-0600 4168
ExportedFrom: TXNET1 dove-syncjs 86
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Sys64738 - Mon, 13 Dec 2021 16:40 UTC

Re: Javascript for dummies like me
By: Nightfox to Sys64738 on Fri Dec 10 2021 23:55:30

> Sy> Never mind me. I was looking at it from the wrong perspective. Echicken
> Sy> set me straight.
>
> I think he explained it fairly well.

Made a believer out of me! :)

> >> Also I rarely see them referred to as "commands".
>
> Sy> What? Is this pick on the old programmer day? lol
>
> I didn't mean it like that, and sorry it came across that way.

No sweat, dude. I sorta get a kick out of how seeing how things have changed. After being so active "back in the day" and taking a nearly 3 decade hiatus, I find that it's sort of like time travelling to see how things have progressed/degraded including the dialect.

By the way, another thing that didn't exist in my day was the concept of a "good" or "white hat" hacker. lol

SYS64738

---
■ Synchronet ■ TEXNet

Javascript for dummies like me

<61B7ED18.3586.sync-js@vert.synchro.net>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=686&group=DOVE-Net.Synchronet_Javascript#686

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: digital.man@VERT (Digital Man)
To: Sys64738
Subject: Javascript for dummies like me
Message-ID: <61B7ED18.3586.sync-js@vert.synchro.net>
Date: Mon, 13 Dec 2021 10:02:16 -0800
X-Comment-To: Sys64738
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61B7D8E3.85.dove-syncjs@txnet1.synchro.net>
References: <61B7D8E3.85.dove-syncjs@txnet1.synchro.net>
X-FTN-PID: Synchronet 3.19a-Win32 master/b15bd564e Dec 5 2021 MSC 1928
X-FTN-CHRS: CP437 2
WhenImported: 20211213170216-0800 41e0
WhenExported: 20211213225755-0800 41e0
ExportedFrom: VERT sync-js 3586
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Digital Man - Mon, 13 Dec 2021 18:02 UTC

Re: Javascript for dummies like me
By: Sys64738 to Digital Man on Mon Dec 13 2021 05:36 pm

> Re: Javascript for dummies like me
> By: Digital Man to Sys64738 on Fri Dec 10 2021 22:11:29
>
> > The software embedded in your webcam, for example, likely was written in
> > C or C++. It doesn't have "a console" or anywhere to "print", so any
> > logic to support that function would have been a waste of resources on
> > such a device. It's great that such functions are not requirements of the
> > language itself.
>
> I get that. However, at some point someone won't someone want to run a
> diagnostic on the device to see a report of what it has done and is
> currently doing? Without a record, they will only be able to see what the
> device is doing now and no historical record (no matter how short) for use
> in troubleshooting.
>
> Of course, it is possible to have a device like this, but I anticipate
> trouble on the horizon when it comes to rectifying problems the device has.

Sure, but "print" may not be the best way to report/store or retrieve that diagnostic output.
--
digital man (rob)

Sling Blade quote #7:
Karl: I don't reckon the Good Lord would send anybody like you to Hades.
Norco, CA WX: 53.0°F, 77.0% humidity, 0 mph NW wind, 0.00 inches rain/24hrs
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net

Re: Javascript for dummies like me

<61B7F176.630.dove-syncjs@roughneckbbs.com>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=687&group=DOVE-Net.Synchronet_Javascript#687

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: tracker1@VERT/TRN (Tracker1)
To: Sys64738
Subject: Re: Javascript for dummies like me
Message-ID: <61B7F176.630.dove-syncjs@roughneckbbs.com>
Date: Mon, 13 Dec 2021 11:20:53 -0700
X-Comment-To: Sys64738
Path: rocksolidbbs.com!not-for-mail
Organization: Roughneck BBS
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61AF77B8.44.dove-syncjs@txnet1.synchro.net>
References: <61AF77B8.44.dove-syncjs@txnet1.synchro.net>
X-FTN-PID: Synchronet 3.19a-Linux HEAD/15906e1 Sep 21 2021 GCC 6.3.0
X-FTN-CHRS: UTF-8 4
WhenImported: 20211213174314-0800 41e0
WhenExported: 20211213225755-0800 41e0
ExportedFrom: VERT sync-js 3587
WhenImported: 20211214012054Z 0000
WhenExported: 20211214014315Z 0000
ExportedFrom: TRN dove-syncjs 630
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101Thunderbird/91.3.1
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
 by: Tracker1 - Mon, 13 Dec 2021 18:20 UTC

On 12/7/21 08:03, Sys64738 wrote:
>> I use notepad++ on Windows and vim or geany on Linux. The editor
>> doesn't have to recognize an object/method/property for you to
>> use it.
>
> I started out just using plain notepad. Since this is all new to me,
> I thought that I might benefit from the hints/debugging features from
> an editor.
>
> However, it seems that programming has become less uniform and less
> certain since the years when I was most involved (80's-90's). The
> paved roads of years past seem to have not been maintained and people
> often find themselves cutting their own path to get to where they want
> to go.
>
> In your opinion, would that be an accurate assessment?

I would use at least Notepad++ or another more feature-rich text editor
over plain notepad...

JS is pretty feature rich and the module syntax is pretty solid. For
better or worse, a lot of the work in Synchronet predates the changes
towards ES5 and ES6/ES2015 by a few years. Including a few bits that
were done differently in the SpiderMonkey engine used vs. what became
the standard. Like for-each and getter/setter syntax, which are widely
used in Synchronet scripts.

A lot of the object model naming and mapping are close to 1:1 to the
underlying C libraries in Synchronet... so it will feel a little alien
in places, compared to modern JS tooling. Event Enigma 1/2 has some
rough edges and is on a much newer JS platform, but not nearly as
feature rich as Synchronet.
--
Michael J. Ryan - tracker1@roughneckbbs.com
---
� Synchronet � Roughneck BBS - roughneckbbs.com

Re: Javascript for dummies like me

<61B7F223.631.dove-syncjs@roughneckbbs.com>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=688&group=DOVE-Net.Synchronet_Javascript#688

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: tracker1@VERT/TRN (Tracker1)
To: Sys64738
Subject: Re: Javascript for dummies like me
Message-ID: <61B7F223.631.dove-syncjs@roughneckbbs.com>
Date: Mon, 13 Dec 2021 11:23:47 -0700
X-Comment-To: Sys64738
Path: rocksolidbbs.com!not-for-mail
Organization: Roughneck BBS
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61B19637.48.dove-syncjs@txnet1.synchro.net>
References: <61B19637.48.dove-syncjs@txnet1.synchro.net>
X-FTN-PID: Synchronet 3.19a-Linux HEAD/15906e1 Sep 21 2021 GCC 6.3.0
X-FTN-CHRS: UTF-8 4
WhenImported: 20211213174314-0800 41e0
WhenExported: 20211213225755-0800 41e0
ExportedFrom: VERT sync-js 3588
WhenImported: 20211214012347Z 0000
WhenExported: 20211214014315Z 0000
ExportedFrom: TRN dove-syncjs 631
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101Thunderbird/91.3.1
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
 by: Tracker1 - Mon, 13 Dec 2021 18:23 UTC

On 12/8/21 22:37, Sys64738 wrote:
>
> No doubt, the tools are far better. However, there doesn't seem to be
> as much consistency in the syntax of the programming languages that
> I've observed. Such as with "console.print" as an example. I'm not
> understanding why that command wouldn't be universal and a common
> command within JavaScript.

I'm not sure, but I think the start of JS in Synchronet may pre-date the
console object in the browser.

Also, what would you expect console.log to do? Should it show to the
host/server side, or to the client/user? It's not necessarily clear in
this case.
--
Michael J. Ryan - tracker1@roughneckbbs.com
---
� Synchronet � Roughneck BBS - roughneckbbs.com

Re: Javascript for dummies like me

<61B7F336.632.dove-syncjs@roughneckbbs.com>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=689&group=DOVE-Net.Synchronet_Javascript#689

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: tracker1@VERT/TRN (Tracker1)
To: Sys64738
Subject: Re: Javascript for dummies like me
Message-ID: <61B7F336.632.dove-syncjs@roughneckbbs.com>
Date: Mon, 13 Dec 2021 11:28:22 -0700
X-Comment-To: Sys64738
Path: rocksolidbbs.com!not-for-mail
Organization: Roughneck BBS
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61B3659B.53.dove-syncjs@txnet1.synchro.net>
References: <61B3659B.53.dove-syncjs@txnet1.synchro.net>
X-FTN-PID: Synchronet 3.19a-Linux HEAD/15906e1 Sep 21 2021 GCC 6.3.0
X-FTN-CHRS: UTF-8 4
WhenImported: 20211213174314-0800 41e0
WhenExported: 20211213225755-0800 41e0
ExportedFrom: VERT sync-js 3589
WhenImported: 20211214012822Z 0000
WhenExported: 20211214014315Z 0000
ExportedFrom: TRN dove-syncjs 632
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101Thunderbird/91.3.1
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
 by: Tracker1 - Mon, 13 Dec 2021 18:28 UTC

On 12/10/21 07:35, Sys64738 wrote:
>> The console object defined in Synchronet's JS API might have fairly
>> different requirements than for other contexts. When developing JS
>> for a web browser, there is a 'console' object, but that's a totally
>> different thing. The JS console object for Synchronet is for the
>> text-based interface
>
> I understand what you're saying. Thanks for explaining.
>
> However, the concept of people making up their own commands seems like
> a taking a long walk on a short pier.

`console` isn't part of the JavaScript language... things like
`document.querySelector` aren't either. They're part of the running
environment. In the case of the prior two examples a Browser.

The BBS runtime environment(s) are different, and will have different
features defined. What would you expect document.querySelector('body')
to do with a telnet user? It's not the same...

That said... for (var i=0; i< 10; i)) { ... } ... ARE part of the
language definition.
--
Michael J. Ryan - tracker1@roughneckbbs.com
---
� Synchronet � Roughneck BBS - roughneckbbs.com

Re: Javascript for dummies like me

<61B8A008.611.dove-syncjs@bbs.lizardmaster.com>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=690&group=DOVE-Net.Synchronet_Javascript#690

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: the.lizard.master@VERT/NITEEYES (The Lizard Master)
To: Tracker1
Subject: Re: Javascript for dummies like me
Message-ID: <61B8A008.611.dove-syncjs@bbs.lizardmaster.com>
Date: Tue, 14 Dec 2021 01:45:44 -0500
X-Comment-To: Tracker1
Path: rocksolidbbs.com!not-for-mail
Organization: Nite Eyes BBS
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61B7F176.630.dove-syncjs@roughneckbbs.com>
References: <61B7F176.630.dove-syncjs@roughneckbbs.com>
X-FTN-PID: Synchronet 3.18a-Linux Aug 23 2020 GCC 7.5.0
X-FTN-CHRS: CP437 2
WhenImported: 20211214054617-0800 41e0
WhenExported: 20211214105752-0800 41e0
ExportedFrom: VERT sync-js 3590
WhenImported: 20211214084544-0500 412c
WhenExported: 20211214084621-0500 412c
ExportedFrom: NITEEYES dove-syncjs 611
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: The Lizard Master - Tue, 14 Dec 2021 06:45 UTC

Re: Re: Javascript for dummies like me
By: Tracker1 to Sys64738 on Mon Dec 13 2021 06:20 pm

> > I started out just using plain notepad. Since this is all new to me,
> > I thought that I might benefit from the hints/debugging features from
> > an editor.
> I would use at least Notepad++ or another more feature-rich text editor
> over plain notepad...

Also check out sublimetext - https://www.sublimetext.com/

I think that might be up his alley.

---TLM

---
■ Synchronet ■ Nite Eyes BBS - To make people happy about my tagline everywhere...

Re: Javascript for dummies like me

<61B8B2FE.3142.sync_js@bbses.info>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=691&group=DOVE-Net.Synchronet_Javascript#691

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: mro@VERT/BBSESINF (MRO)
To: The Lizard Master
Subject: Re: Javascript for dummies like me
Message-ID: <61B8B2FE.3142.sync_js@bbses.info>
Date: Tue, 14 Dec 2021 02:06:38 -0600
X-Comment-To: The Lizard Master
Path: rocksolidbbs.com!not-for-mail
Organization: bbses.info
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61B8A008.611.dove-syncjs@bbs.lizardmaster.com>
References: <61B8A008.611.dove-syncjs@bbs.lizardmaster.com>
X-FTN-PID: Synchronet 3.18b-Win32 Sep 20 2020 MSC 1927
X-FTN-CHRS: CP437 2
WhenImported: 20211214073612-0800 41e0
WhenExported: 20211214105752-0800 41e0
ExportedFrom: VERT sync-js 3591
WhenImported: 20211214090638-0600 4168
WhenExported: 20211214093610-0600 4168
ExportedFrom: BBSESINF sync_js 3142
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: MRO - Tue, 14 Dec 2021 08:06 UTC

Re: Re: Javascript for dummies like me
By: The Lizard Master to Tracker1 on Tue Dec 14 2021 08:45 am

> Re: Re: Javascript for dummies like me
> By: Tracker1 to Sys64738 on Mon Dec 13 2021 06:20 pm
>
> > > I started out just using plain notepad. Since this is all new to me,
> > > I thought that I might benefit from the hints/debugging features from
> > > an editor.
> > I would use at least Notepad++ or another more feature-rich text editor
> > over plain notepad...
>
> Also check out sublimetext - https://www.sublimetext.com/
>
> I think that might be up his alley.
>

that's kinda ugly. i'm sure it has theme support. i suggest editpad pro
---
■ Synchronet ■ ::: BBSES.info - free BBS services :::

Javascript for dummies like me

<61BA20DC.3524.dove_sync_js@digitaldistortionbbs.com>

 copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=692&group=DOVE-Net.Synchronet_Javascript#692

 copy link   Newsgroups: DOVE-Net.Synchronet_Javascript
From: nightfox@VERT/DIGDIST (Nightfox)
To: Sys64738
Subject: Javascript for dummies like me
Message-ID: <61BA20DC.3524.dove_sync_js@digitaldistortionbbs.com>
Date: Wed, 15 Dec 2021 02:07:40 -0800
X-Comment-To: Sys64738
Path: rocksolidbbs.com!not-for-mail
Organization: Digital Distortion
Newsgroups: DOVE-Net.Synchronet_Javascript
In-Reply-To: <61B7D9EC.86.dove-syncjs@txnet1.synchro.net>
References: <61B7D9EC.86.dove-syncjs@txnet1.synchro.net>
X-FTN-PID: Synchronet 3.19a-Win32 master/d0323392c Nov 18 2021 MSC 1928
X-FTN-CHRS: CP437 2
WhenImported: 20211215092112-0800 41e0
WhenExported: 20211215105752-0800 41e0
ExportedFrom: VERT sync-js 3592
WhenImported: 20211215090740-0800 41e0
WhenExported: 20211215092108-0800 41e0
ExportedFrom: DIGDIST dove_sync_js 3524
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Nightfox - Wed, 15 Dec 2021 10:07 UTC

Re: Javascript for dummies like me
By: Sys64738 to Nightfox on Mon Dec 13 2021 05:40 pm

>> I think he explained it fairly well.

Sy> Made a believer out of me! :)

:) I think it's interesting (and pretty cool) that scripting languages like JavaScript can be embedded in a program to provide a way to do things with it without recompiling the software.

Sy> By the way, another thing that didn't exist in my day was the concept of a
Sy> "good" or "white hat" hacker. lol

:) Yeah, there are people who work mainly as "ethical hackers" to try to find holes in a system or piece of software so that they can be fixed. At a previous job I had, there were one or two times when the team hired such a group to come in and find security holes in our software.

Nightfox

---
■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com

Pages:123
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor