-
Javascript for dummies like me
From
Sys64738@VERT/TXNET1 to
All on Sun Dec 5 18:45:15 2021
I'm not new to programming. However, my skill set is rather dated (think "pre-internet").ããCan anyone recommend any Javascript tutorials that are non-HTML and/or non-CSS driven? More to the point, Javascript tutorials that are drive for text output such as with BBS (not the web version)?ããEverything I come across on the net seems to all be tailored for an HTML end result.ããAny advice will be greatly appreciated.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Digital Man@VERT to
Sys64738 on Sun Dec 5 18:53:30 2021
Re: Javascript for dummies like meã By: Sys64738 to All on Sun Dec 05 2021 06:45 pmãã > I'm not new to programming. However, my skill set is rather dated (thinkã > "pre-internet").ã >ã > Can anyone recommend any Javascript tutorials that are non-HTML and/orã > non-CSS driven? More to the point, Javascript tutorials that are drive forã > text output such as with BBS (not the web version)?ã >ã > Everything I come across on the net seems to all be tailored for an HTML endã > result.ã >ã > Any advice will be greatly appreciated.ããYou're interested in "core JavaScript",
https://developer.mozilla.org/en-US/docs/Web/JavaScript/ReferenceããAnd anything that is "text output such as with the BBS" is going to be defined in the Synchronet object model:ã
https://synchro.net/docs/jsobjs.htmlããYou may find some base JavaScript tutorials that use console.log() to output text and you could just replace those calls with print() when using Synchronet.ã-- ã digital man (rob)ããSynchronet/BBS Terminology Definition #69:ãSEXYZ = Synchronet External X/Y/ZMODEM file transfer protocol driverãNorco, CA WX: 58.6øF, 72.0% humidity, 1 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
echicken@VERT/ECBBS to
Sys64738 on Mon Dec 6 04:47:53 2021
Re: Javascript for dummies like meã By: Sys64738 to All on Sun Dec 05 2021 18:45:15ãã Sy> Can anyone recommend any Javascript tutorials that are non-HTML and/orã Sy> non-CSS driven? More to the point, Javascript tutorials that are drive forã Sy> text output such as with BBS (not the web version)? ããThe MDN site that DM mentioned is a great reference, but bear in mind that not everything you see there will work in Synchronet. Our JS engine is a bit out of date, and some new features have been added to the language in the meantime.ããMDN is not what I would call a tutorial, although you will find some sample scripts in many of the articles.ãã Sy> Everything I come across on the net seems to all be tailored for an HTMLã Sy> end result. ããMost JS tutorial content you find will focus on scripts running in a web browser, under node.js, or as part of a particular framework running on one or both of the above. It may be difficult for you to tell what's "core" JS and what's particular to the environment the tutorial is about.ããWe have the "core" JS stuff from about 10 years ago, and some custom things on top of that:ãã
https://synchro.net/docs/jsobjs.htmlããI could go on, but the best thing you can do is dive in, refer to the heaps of JS that are included with Synchronet for examples, and ask questions when you get stuck. Find me on IRC if you want to chat; I have an unfortunate amount of knowledge on this subject.ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Mon Dec 6 07:54:31 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Sun Dec 05 2021 18:53:30ãã > You're interested in "core JavaScript",ã >
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Referenceã >ã > And anything that is "text output such as with the BBS" is going to beã > defined in the Synchronet object model:ã >
https://synchro.net/docs/jsobjs.htmlã >ã > You may find some base JavaScript tutorials that use console.log() to outputã > text and you could just replace those calls with print() when usingã > Synchronet. --ããAwesome. I'll check those out. Thanks, Rob.ã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
echicken on Mon Dec 6 08:02:23 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Mon Dec 06 2021 04:47:53ãã > MDN is not what I would call a tutorial, although you will find some sampleã > scripts in many of the articles.ããIn this instance, I think I'd probably learn faster with sample scripts instead of full-on beginner tutorials. When I see the commands and their functions in the sample scripts, I'll be able to relate that to my past "dated" knowledge. Sure, it won't be spot-on accurate, but at least it will give me a starting point and I can troubleshoot from there.ãã > Most JS tutorial content you find will focus on scripts running in a webã > browser, under node.js, or as part of a particular framework running on oneã > or both of the above. It may be difficult for you to tell what's "core" JSã > and what's particular to the environment the tutorial is about.ããThat's understandable since Javascript was original purpose was intended to be used in conjunction with HTML.ãã > We have the "core" JS stuff from about 10 years ago, and some custom thingsã > on top of that:ã >ã >
https://synchro.net/docs/jsobjs.htmlããI'll check that out as well.ãã > I could go on, but the best thing you can do is dive in, refer to the heapsã > of JS that are included with Synchronet for examples, and ask questions whenã > you get stuck. Find me on IRC if you want to chat; I have an unfortunateã > amount of knowledge on this subject.ããWill do. Thanks for the info!ã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
echicken@VERT/ECBBS to
Sys64738 on Mon Dec 6 15:41:31 2021
Re: Javascript for dummies like meã By: Sys64738 to echicken on Mon Dec 06 2021 08:02:23ãã Sy> "dated" knowledge. Sure, it won't be spot-on accurate, but at least itã Sy> will give me a starting point and I can troubleshoot from there. ããThe inaccuracy here is going to be stuff like:ãã const num = n => Promise.resolve(n);ãã function addNums([a, b]) {ã return a + b;ã }ãã async function three() {ã let a = await num(1);ã let b = await num(2);ã let c = addNums([a, b]);ã console.log(c);ã }ãã three();ãããAdmittedly this is a stupid example, but it would work in eg. a modern browser but not in our environment. We don't have Promises, we don't have 'async', 'await', 'let', array destructure, or 'console.log', and if memory serves even our 'const' behaves a bit differently than today's.ãã Sy> That's understandable since Javascript was original purpose was intendedã Sy> to be used in conjunction with HTML. ããThough to be clear, JS is just a language and there's nothing inherently web-browserey about it. You'll see mention out there that JS is "event driven" and "asynchronous by nature" and this isn't strictly true. All of it comes down to the implementation. Just be mindful that most of what's written about JS is written with browsers or node.js in mind, by people who never needed to look beyond that space.ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Sys64738@VERT/TXNET1 to
echicken on Mon Dec 6 18:05:26 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Mon Dec 06 2021 15:41:31ãã > Though to be clear, JS is just a language and there's nothing inherentlyã > web-browserey about it. You'll see mention out there that JS is "eventã > driven" and "asynchronous by nature" and this isn't strictly true.ããTHAT has become glaringly apparent to me from everything I found while searching.ãã > Just be mindful that most of what's written about JS is written with > browsers or node.js in mind, by people who never needed to look beyondã > that space.ããI think you understand exactly what I'm getting at. It's the JavaScript info that is HTML/CSS-centric that I'm trying to weed my way through.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Digital Man@VERT to
Sys64738 on Mon Dec 6 17:08:05 2021
Re: Javascript for dummies like meã By: Sys64738 to echicken on Mon Dec 06 2021 06:05 pmãã > I think you understand exactly what I'm getting at. It's the JavaScript infoã > that is HTML/CSS-centric that I'm trying to weed my way through.ãã... or Node.JS, which is often *not* HTML/CSS-centric.ã-- ã digital man (rob)ããSynchronet "Real Fact" #121:ãSynchronet v2.20a for DOS was released on Aug 31, 1995 (5 months after v2.11a)ãNorco, CA WX: 58.7øF, 81.0% humidity, 0 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Mon Dec 6 20:54:39 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Mon Dec 06 2021 17:08:05ãã > > I think you understand exactly what I'm getting at. It's the JavaScriptã > > info that is HTML/CSS-centric that I'm trying to weed my way through.ã >ã > ... or Node.JS, which is often *not* HTML/CSS-centric.ããExactly.ããIs there a particular script editor that you guys recommend for writing Javascipt that works best for this purpose? I've been using Visual Code Studio, but it doesn't seem to recognize "console.print" or "prompt" for some reason.ããSorry for all the newbie questions.ã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
echicken@VERT/ECBBS to
Sys64738 on Tue Dec 7 04:10:20 2021
Re: Javascript for dummies like meã By: Sys64738 to echicken on Mon Dec 06 2021 18:05:26ãã Sy> I think you understand exactly what I'm getting at. It's the JavaScriptã Sy> info that is HTML/CSS-centric that I'm trying to weed my way through. ããHate to say it, but you just have to power through it. You'll eventually get a feel for what information is portable and what is tied to a certain domain.ããIt was like this 10+ years ago when I started learning JS. It's only gotten "worse" since then, considering how the language has proliferated.ããSomehow I managed to learn JS for Synchronet first. It was two or three years before I started using it elsewhere (browsers, node.js).ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
echicken@VERT/ECBBS to
Sys64738 on Tue Dec 7 04:16:48 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Mon Dec 06 2021 20:54:39ãã Sy> Is there a particular script editor that you guys recommend for writingã Sy> Javascipt that works best for this purpose? I've been using Visual Codeã Sy> Studio, but it doesn't seem to recognize "console.print" or "prompt" forã Sy> some reason. ããI use Visual Studio Code, and I just accept that its language features aren't always going to be accurate. I refer to jsobjs.html when I need to know what parameters a function requires, or what it will return, rather than trust the hints that come up in VS Code.ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Digital Man@VERT to
Sys64738 on Mon Dec 6 21:02:33 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Mon Dec 06 2021 08:54 pmãã > > > I think you understand exactly what I'm getting at. It's theã > > > JavaScript info that is HTML/CSS-centric that I'm trying to weed myã > > > way through.ã >ã > > ... or Node.JS, which is often *not* HTML/CSS-centric.ã >ã > Exactly.ã >ã > Is there a particular script editor that you guys recommend for writingã > Javascipt that works best for this purpose? I've been using Visual Codeã > Studio, but it doesn't seem to recognize "console.print" or "prompt" forã > some reason.ãã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.ãã > Sorry for all the newbie questions.ããNo problem.ã-- ã digital man (rob)ããSynchronet/BBS Terminology Definition #27:ãDTE = Data Terminal EquipmentãNorco, CA WX: 53.1øF, 94.0% humidity, 0 mph S wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nelgin@VERT/EOTLBBS to
All on Mon Dec 6 23:53:51 2021
On Tue, 7 Dec 2021 04:10:20 -0500ã"echicken" <echicken@VERT/ECBBS> wrote:ãã> Re: Javascript for dummies like meã> By: Sys64738 to echicken on Mon Dec 06 2021 18:05:26ã> ã> Sy> I think you understand exactly what I'm getting at. It's theã> Sy> JavaScript info that is HTML/CSS-centric that I'm trying to weedã> Sy> my way through. ã> ã> Hate to say it, but you just have to power through it. You'llã> eventually get a feel for what information is portable and what isã> tied to a certain domain.ãããPretty much what I did. Just take some existing code, there are plentyãof examples in /sbbs/exec from small utilities to full blown apps.ãYou'll definitely want to refer to the jsobjs file. This is the linkãbetween js and synchronet. ããMaybe look at one of the menus. It's pretty easy and uses a fewãfeatures like getting the users time and security levels, presentingãmenus and files and the like. ããDM also has a few videos on programming that are worth a look.ããThe bottom line is, figure something you want to do and carve away atãit. You can even do a basic outline in English then figure theãjavascript to replace it.ããlikeããget users ageãif they're older than 21 set the 1M flag (for mature content)ãif they're older then 50 then set the 2O flags for Old Fart.ãAlso, if it's their birthday then announce it by displayingãan ansi birthday cardãããThen plug that in somewhere in the login sequence.ã-- ãEnd Of The Line BBS - Plano, TXãtelnet endofthelinebbs.com 23ã---ã þ Synchronet þ End Of The Line BBS - endofthelinebbs.comã
-
From
Sys64738@VERT/TXNET1 to
echicken on Tue Dec 7 08:51:03 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Tue Dec 07 2021 04:16:48ãã > I use Visual Studio Code, and I just accept that its language featuresã > aren't always going to be accurate. I refer to jsobjs.html when I need toã > know what parameters a function requires, or what it will return, ratherã > than trust the hints that come up in VS Code.ããOh wow. This looks like my kind of adventure!ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Tue Dec 7 09:03:20 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Mon Dec 06 2021 21:02:33ãã > 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?ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Nightfox@VERT/DIGDIST to
Sys64738 on Tue Dec 7 09:15:56 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Mon Dec 06 2021 08:54 pmãã Sy> Javascipt that works best for this purpose? I've been using Visual Codeã Sy> StudioããDo you mean Visual Studio Code?ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Digital Man@VERT to
Sys64738 on Tue Dec 7 12:56:02 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Tue Dec 07 2021 09:03 amãã > Re: Javascript for dummies like meã > By: Digital Man to Sys64738 on Mon Dec 06 2021 21:02:33ã >ã > > 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.ããYeah, that would be my last choice, mainly due to no syntax highlighting.ãã > 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 think the tools are far better and more "paved" than they were in the '80s and '90s.ã-- ã digital man (rob)ããBreaking Bad quote #4:ãTagging trees is a lot better than chasing monsters. - HankãNorco, CA WX: 59.6øF, 80.0% humidity, 3 mph NW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Sys64738@VERT/TXNET1 to
Nightfox on Wed Dec 8 23:33:26 2021
Re: Javascript for dummies like meã By: Nightfox to Sys64738 on Tue Dec 07 2021 09:15:56ãã > Sy> Javascipt that works best for this purpose? I've been using Visual Codeã > Sy> Studioã >ã > Do you mean Visual Studio Code?ããYes.ã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Wed Dec 8 23:37:59 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Tue Dec 07 2021 12:56:02ãã > > 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 think the tools are far better and more "paved" than they were in the '80sã > and '90s.ãã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.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
echicken@VERT/ECBBS to
Sys64738 on Thu Dec 9 14:16:38 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Wed Dec 08 2021 23:37:59ãã Sy> No doubt, the tools are far better. However, there doesn't seem to be asã Sy> much consistency in the syntax of the programming languages that I'veããTrue, but there's a diversity of languages because lots of people had their own ideas about how things should work, from syntax down to nuts and bolts.ãã Sy> observed. Such as with "console.print" as an example. I'm notã Sy> understanding why that command wouldn't be universal and a common commandã Sy> within JavaScript. ããFor whatever reason, JS has a fairly weak standard library and a lot of stuff is left to the implementor. Depending on where your JS is running, the notion of a 'console' to send output to might have a very different meaning.ããMDN says that 'console' appeared in browsers around the era of IE8, Firefox 4, Chrome 1, Safari 3. It probably wasn't widespread until at least 10 years ago. Its purpose is mostly to output debug info to a browser's dev tools console. Even then, it's just a convention and not part of the standard.ããMeanwhile Synchronet already had an object by that time which (presumably) DM chose to call 'console'. It has a different purpose entirely, even if it seems superficially similar to the 'console' in browsers or node.js.ããSo, it's an unfortunate coincidence, and just one of those places where the line between standard/core JS and specific implementations gets a bit fuzzy.ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Nightfox@VERT/DIGDIST to
Sys64738 on Thu Dec 9 09:03:32 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Wed Dec 08 2021 11:37 pmãã Sy> No doubt, the tools are far better. However, there doesn't seem to be asã Sy> much consistency in the syntax of the programming languages that I'veã Sy> observed. Such as with "console.print" as an example. I'm notã Sy> understanding why that command wouldn't be universal and a common commandã Sy> within JavaScript. ããIn that case, it's mainly that Synchronet has defined its own custom JavaScript interface. It's possible to embed JavaScript into C/C++ projects (and projects using other languages) and define your own custom JavaScript API for your scripting needs. Doing so actually allows you a lot of flexibility.ãã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 that the user is logged into when using telnet, RLogin, SSH, etc., whereas the web console object in JS is for the web browser's debugging console. I don't think it would really make sense for Synchronet to share the same console object as a web browser.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Digital Man@VERT to
Sys64738 on Thu Dec 9 11:57:08 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Wed Dec 08 2021 11:37 pmãã > Re: Javascript for dummies like meã > By: Digital Man to Sys64738 on Tue Dec 07 2021 12:56:02ã >ã > > > 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 think the tools are far better and more "paved" than they were in theã > > '80s and '90s.ã >ã > 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.ããBecause JavaScript was designed without a "console" in mind. Core JavaScript makes no assumptions about the I/O capabilities (screen, file, or otherwise) of the environment in which the script is running.ã-- ã digital man (rob)ããRush quote #53:ãHe picks up scraps of conversation, radio and radiation .. Digital ManãNorco, CA WX: 53.7øF, 93.0% humidity, 4 mph NNW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Sys64738@VERT/TXNET1 to
echicken on Fri Dec 10 08:31:19 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Thu Dec 09 2021 14:16:38ãã > For whatever reason, JS has a fairly weak standard library and a lot ofã > stuff is left to the implementor. Depending on where your JS is running, theã > notion of a 'console' to send output to might have a very different meaning.ã >ã > MDN says that 'console' appeared in browsers around the era of IE8, Firefoxã > 4, Chrome 1, Safari 3. It probably wasn't widespread until at least 10 yearsã > ago. Its purpose is mostly to output debug info to a browser's dev toolsã > console. Even then, it's just a convention and not part of the standard.ã >ã > Meanwhile Synchronet already had an object by that time which (presumably)ã > DM chose to call 'console'. It has a different purpose entirely, even if itã > seems superficially similar to the 'console' in browsers or node.js.ããThis language sounds like a make it up as you go free for all. Sorta like building the bicycle while you ride it. What could go wrong? lolã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
Nightfox on Fri Dec 10 08:35:07 2021
Re: Javascript for dummies like meã By: Nightfox to Sys64738 on Thu Dec 09 2021 09:03:32ãã > 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.ã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
MRO@VERT/BBSESINF to
Sys64738 on Fri Dec 10 08:52:07 2021
Re: Javascript for dummies like meã By: Sys64738 to echicken on Fri Dec 10 2021 08:31 amãã >ã > This language sounds like a make it up as you go free for all. Sorta likeã > building the bicycle while you ride it. What could go wrong? lolãããisnt that how computing has always been? that's how engineers do things, isn't it?ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
-
From
echicken@VERT/ECBBS to
Sys64738 on Fri Dec 10 15:08:16 2021
Re: Javascript for dummies like meã By: Sys64738 to echicken on Fri Dec 10 2021 08:31:19ãã Sy> This language sounds like a make it up as you go free for all. Sorta likeã Sy> building the bicycle while you ride it. What could go wrong? lol ããNot that it's such a great language - it has strengths and weaknesses - butãthis is more a problem of understanding how the language and the implementation relate to each other.ããJS is typically used as a scripting environment embedded in some other application. The 'parent' application might be written in C or Java for example. The parent application might be a BBS, a print accounting system, an authentication provider, the firmware on a radio, a web browser, or a development platform like node.js. (These are places where I've used JS.)ããSometimes the parent application uses JS sparingly, eg. some event happens, and a script is executed to do a few custom things. Sometimes the entire point of the parent application is to run your JS and let it access system resources (files, network, etc.) It all depends.ããYou absolutely want to make certain things up as you go along, if you're embedding a JS engine in your product. There are things you'll want scripts to be able to do which have no rightful place in the language's core. This can be done well and it can be done poorly, but it's not inherently wrong.ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
echicken@VERT/ECBBS to
Sys64738 on Fri Dec 10 15:15:51 2021
Re: Javascript for dummies like meã By: Sys64738 to Nightfox on Fri Dec 10 2021 08:35:07ãã Sy> However, the concept of people making up their own commands seems like aã Sy> taking a long walk on a short pier. ããIf you've written software, you've probably written a function, and in so doing you've made up a command. Your program can call that function whenever it needs to.ããIn many ways, this is the same thing. It's just that the function (or object, method, property, etc.) is defined at a lower level. Sort of at a layer between the parent application and the child script.ããIt's not that implementors are altering JS itself. It's that they're giving scripts an interface to resources outside of the JS core so that they can do something with them. Which is the entire point of embedding a scripting engine into your software.ããI hope that clarifies it a bit.ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Fri Dec 10 08:36:33 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Thu Dec 09 2021 11:57:08ãã > Because JavaScript was designed without a "console" in mind. Core JavaScriptã > makes no assumptions about the I/O capabilities (screen, file, or otherwise)ã > of the environment in which the script is running.ããI see. So, with Core Javascript is there a standard/universal "print" type option?ã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
MRO on Fri Dec 10 09:44:05 2021
Re: Javascript for dummies like meã By: MRO to Sys64738 on Fri Dec 10 2021 08:52:07ãã > > This language sounds like a make it up as you go free for all. Sortaã > > like building the bicycle while you ride it. What could go wrong? lolã >ã >ã > isnt that how computing has always been? that's how engineers do things,ã > isn't it?ããDon't get me started on engineers. There's a special place in Hades reserved for those people. jkã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
echicken on Fri Dec 10 09:47:29 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Fri Dec 10 2021 15:08:16ãã > JS is typically used as a scripting environment embedded in some otherã > application. The 'parent' application might be written in C or Java forã > example. The parent application might be a BBS, a print accounting system,ã > an authentication provider, the firmware on a radio, a web browser, or aã > development platform like node.js. (These are places where I've used JS.)ããThat makes more sense to me than anything else I have read. Thank-you for that. I guess I was thinking of it more in terms of a stand alone language instead of a scripting enviro. In that case, the parent app contains the terminology used by the script to an extent.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
echicken on Fri Dec 10 09:51:50 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Fri Dec 10 2021 15:15:51ãã > If you've written software, you've probably written a function, and in soã > doing you've made up a command. Your program can call that function wheneverã > it needs to.ããPardon my dated terms, but I relate "function" in this context to be a "routine" or "subroutine".ãã > In many ways, this is the same thing. It's just that the function (orã > object, method, property, etc.) is defined at a lower level. Sort of at aã > layer between the parent application and the child script.ã >ã > It's not that implementors are altering JS itself. It's that they're givingã > scripts an interface to resources outside of the JS core so that they can doã > something with them. Which is the entire point of embedding a scriptingã > engine into your software.ã >ã > I hope that clarifies it a bit.ããIt certainly does. I appreciate you taking the time to explain it to me. Suddenly, the world starts to make a little more sense.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
echicken@VERT/ECBBS to
Sys64738 on Fri Dec 10 17:20:41 2021
Re: Javascript for dummies like meã By: Sys64738 to echicken on Fri Dec 10 2021 09:51:50ãã Sy> Pardon my dated terms, but I relate "function" in this context to be aã Sy> "routine" or "subroutine". ããI haven't used those terms since I was a teenager learning BASIC in high school, but it's all close enough for this discussion.ãã Sy> It certainly does. I appreciate you taking the time to explain it to me.ã Sy> Suddenly, the world starts to make a little more sense. ããGlad to hear it. Takes a while for concepts to 'click' sometimes, but once they do, it's a lot easier to proceed with your project. (I usually just dive headfirst into stuff I know nothing about, and come away with slightly, incrementally more understanding each time.)ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Nightfox@VERT/DIGDIST to
Sys64738 on Fri Dec 10 09:20:33 2021
Re: Javascript for dummies like meã By: Sys64738 to Nightfox on Fri Dec 10 2021 08:35 amãã >> 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 ãã Sy> I understand what you're saying. Thanks for explaining.ãã Sy> However, the concept of people making up their own commands seems like aã Sy> taking a long walk on a short pier. ããHow so?ãThe ability to create your own functions, your own classes, your own API, etc.ãis the foundation of being able to build software. You need to be able toãcreate your own functions, classes, etc. in order to build softwareãeffectively.ããAlso, in this case, do you really need to have any consistency between the Synchronet console object and the web console object? What benefit would that serve?ããAlso I rarely see them referred to as "commands".ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Nightfox@VERT/DIGDIST to
MRO on Fri Dec 10 09:24:39 2021
Re: Javascript for dummies like meã By: MRO to Sys64738 on Fri Dec 10 2021 08:52 amãã >> This language sounds like a make it up as you go free for all. Sortaã >> like building the bicycle while you ride it. What could go wrong? lolãã MR> isnt that how computing has always been? that's how engineers do things,ã MR> isn't it?ããIt's good to think about at least a bit of the design before building it. I doubt computers such as the IBM PC, Mac, etc. were just thrown together haphazardly.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Digital Man@VERT to
echicken on Fri Dec 10 09:53:52 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Fri Dec 10 2021 03:15 pmãã > It's not that implementors are altering JS itself. It's that they're givingã > scripts an interface to resources outside of the JS core so that they can doã > something with them. Which is the entire point of embedding a scriptingã > engine into your software.ããThe same can be said of other scripting languages (Perl, Python, Lua, etc.).ã-- ã digital man (rob)ããSynchronet/BBS Terminology Definition #85:ãUART = Universal Asynchronous Receiver/TransmitterãNorco, CA WX: 53.6øF, 84.0% humidity, 1 mph S wind, 0.03 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Sys64738 on Fri Dec 10 09:56:53 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Fri Dec 10 2021 08:36 amãã > Re: Javascript for dummies like meã > By: Digital Man to Sys64738 on Thu Dec 09 2021 11:57:08ã >ã > > Because JavaScript was designed without a "console" in mind. Coreã > > JavaScript makes no assumptions about the I/O capabilities (screen, file,ã > > or otherwise) of the environment in which the script is running.ã >ã > I see. So, with Core Javascript is there a standard/universal "print" typeã > option?ããNo, because like I said, Core JavaScript makes no assumptions about the I/O capabilities of the environmnet.ã-- ã digital man (rob)ããSynchronet "Real Fact" #104:ãThe official Synchronet YouTube channel went live on May 6, 2019ãNorco, CA WX: 53.6øF, 84.0% humidity, 1 mph S wind, 0.03 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Digital Man@VERT to
Sys64738 on Fri Dec 10 10:08:53 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Fri Dec 10 2021 09:56 amãã > Re: Javascript for dummies like meã > By: Sys64738 to Digital Man on Fri Dec 10 2021 08:36 amã >ã > > Re: Javascript for dummies like meã > > By: Digital Man to Sys64738 on Thu Dec 09 2021 11:57:08ã > >ã > > > Because JavaScript was designed without a "console" in mind. Coreã > > > JavaScript makes no assumptions about the I/O capabilities (screen,ã > > > file, or otherwise) of the environment in which the script is running.ã >ã > > I see. So, with Core Javascript is there a standard/universal "print"ã > > type option?ã >ã > No, because like I said, Core JavaScript makes no assumptions about the I/Oã > capabilities of the environmnet.ããAnd btw, this attribute is not unique to JavaScript. You've heard of the C and C++ programming languages, I'm sure. C and C++, the languages themselves, don't define a standard/universal "print" type function either.ããThere *are* "Standard Runtime Libraries" for the C and C++ which add that functionality (e.g. puts, printf), but they're not part of the core language definition. I've worked professionally on C projects where there was no "print" type functionality at all (we did not use a "standard runtime library", nor was there a console to print to in the execution environment).ã-- ã digital man (rob)ããThis Is Spinal Tap quote #8:ãDerek Smalls: Making a big thing out of it would have been a good idea.ãNorco, CA WX: 53.8øF, 81.0% humidity, 2 mph S wind, 0.03 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
MRO@VERT/BBSESINF to
Nightfox on Fri Dec 10 15:40:10 2021
Re: Javascript for dummies like meã By: Nightfox to MRO on Fri Dec 10 2021 09:24 amãã > MR> isnt that how computing has always been? that's how engineers doã > MR> things, isn't it?ã >ã > It's good to think about at least a bit of the design before building it. Iã > doubt computers such as the IBM PC, Mac, etc. were just thrown togetherã > haphazardly.ã >ããHAHAHAããguess you haven't seen any.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
-
From
Nelgin@VERT/EOTLBBS to
All on Fri Dec 10 16:12:02 2021
On Fri, 10 Dec 2021 08:35:07 -0600ã"Sys64738" <sys64738@VERT/TXNET1> wrote:ããã> However, the concept of people making up their own commands seemsã> like a taking a long walk on a short pier. SYS64738ããMaybe you should quit while you're ahead...ã-- ãEnd Of The Line BBS - Plano, TXãtelnet endofthelinebbs.com 23ã---ã þ Synchronet þ End Of The Line BBS - endofthelinebbs.comã
-
From
Sys64738@VERT/TXNET1 to
echicken on Fri Dec 10 22:35:56 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Fri Dec 10 2021 17:20:41ãã > Sy> Pardon my dated terms, but I relate "function" in this context to be aã > Sy> "routine" or "subroutine".ã >ã > I haven't used those terms since I was a teenager learning BASIC in highã > school, but it's all close enough for this discussion.ããYep, I'm old. Not to the point where I scram at kids to get off my lawn or anything. However, I do cringe every time I hear "programming" termed as "coding". blech!ãã > they do, it's a lot easier to proceed with your project. (I usually justã > dive headfirst into stuff I know nothing about, and come away with slightly,ã > incrementally more understanding each time.)ããWell, that's I'm doing here. The only problem is I wasn't facing the pool before I did my triple somersalt swan dive...lolã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
echicken@VERT/ECBBS to
Sys64738 on Sat Dec 11 05:28:03 2021
Re: Javascript for dummies like meã By: Sys64738 to echicken on Fri Dec 10 2021 22:35:56ãã Sy> Yep, I'm old. Not to the point where I scram at kids to get off my lawn orããI'm 40 now and trying to keep up with a 2 year old kid. I feel old enough.ãã Sy> anything. However, I do cringe every time I hear "programming" termed asã Sy> "coding". blech! ããYeah, there's no 'programming' any more, old timer. There are developers and coders and coders who develop and developers who code and probably a bunch of other things I'm not hip enough to know about.ããExposure therapy is the only thing that really works. Slang comes and goes; you can ignore it or resist it up to a certain point, but language will drift. I am often quite annoyed by stuff like this (eg. referring to the # symbol itself as 'hashtag'), but I eventually get used to it. I just unclench my cringe muscles and move on as many times as it takes until that happens.ã ã--- ãechicken ãelectronic chicken bbs - bbs.electronicchicken.comã---ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
-
From
Digital Man@VERT to
echicken on Fri Dec 10 21:33:33 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Sat Dec 11 2021 05:28 amãã > Exposure therapy is the only thing that really works. Slang comes and goes;ã > you can ignore it or resist it up to a certain point, but language willã > drift. I am often quite annoyed by stuff like this (eg. referring to the #ã > symbol itself as 'hashtag'), but I eventually get used to it. I justã > unclench my cringe muscles and move on as many times as it takes until thatã > happens.ããI like the way you talk... mm hmm.ã-- ã digital man (rob)ããThis Is Spinal Tap quote #27:ãAs long as there's, y'know, sex and drugs, I can do without the rock and roll.ãNorco, CA WX: 48.1øF, 80.0% humidity, 0 mph S wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Sys64738@VERT/TXNET1 to
Nightfox on Fri Dec 10 22:38:49 2021
Re: Javascript for dummies like meã By: Nightfox to Sys64738 on Fri Dec 10 2021 09:20:33ãã > Sy> However, the concept of people making up their own commands seems likeã > Sy> a taking a long walk on a short pier.ã >ã > How so?ã > The ability to create your own functions, your own classes, your own API,ã > etc. is the foundation of being able to build software. You need to be ableã > to create your own functions, classes, etc. in order to build softwareã > effectively.ããNever mind me. I was looking at it from the wrong perspective. Echicken set me straight.ãã > Also I rarely see them referred to as "commands".ããWhat? Is this pick on the old programmer day? lolãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Fri Dec 10 22:40:00 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Fri Dec 10 2021 09:56:53ãã > > I see. So, with Core Javascript is there a standard/universal "print"ã > > type option?ã >ã > No, because like I said, Core JavaScript makes no assumptions about the I/Oã > capabilities of the environmnet.ããOk. I guess that will make sense as I weed through things.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Fri Dec 10 22:44:31 2021
Re: Javascript for dummies like meã By: Digital Man to Sys64738 on Fri Dec 10 2021 10:08:53ãã > And btw, this attribute is not unique to JavaScript. You've heard of the Cã > and C++ programming languages, I'm sure. C and C++, the languagesã > themselves, don't define a standard/universal "print" type function either.ã >ã > There *are* "Standard Runtime Libraries" for the C and C++ which add thatã > functionality (e.g. puts, printf), but they're not part of the core languageã > definition. I've worked professionally on C projects where there was noã > "print" type functionality at all (we did not use a "standard runtimeã > library", nor was there a console to print to in the execution environment).ããThat is odd to me. Even the Eniac and Edvac had the ability to display a readout even if it was on punchcards or some other medieval median.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Digital Man@VERT to
Sys64738 on Fri Dec 10 22:11:29 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Fri Dec 10 2021 10:44 pmãã > Re: Javascript for dummies like meã > By: Digital Man to Sys64738 on Fri Dec 10 2021 10:08:53ã >ã > > And btw, this attribute is not unique to JavaScript. You've heard of theã > > C and C++ programming languages, I'm sure. C and C++, the languagesã > > themselves, don't define a standard/universal "print" type functionã > > either.ã >ã > > There *are* "Standard Runtime Libraries" for the C and C++ which add thatã > > functionality (e.g. puts, printf), but they're not part of the coreã > > language definition. I've worked professionally on C projects where thereã > > was no "print" type functionality at all (we did not use a "standardã > > runtime library", nor was there a console to print to in the executionã > > environment).ã >ã > That is odd to me. Even the Eniac and Edvac had the ability to display aã > readout even if it was on punchcards or some other medieval median.ããSure, but the inventors of the language (C) believed in maximum modularity and tried to make the language itself (the built-in "keywords" and symbols) as small as possible. This design has served the world well as C and its derivitives have been to put to great use in environments unlike the one it was first created for (a PDP-7).ãã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.ã-- ã digital man (rob)ããSling Blade quote #20:ãDoyle: Hey is this the kind of retard that drools and rubs shit in his hair?ãNorco, CA WX: 49.4øF, 60.0% humidity, 1 mph S wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Nightfox@VERT/DIGDIST to
Sys64738 on Fri Dec 10 23:55:30 2021
Re: Javascript for dummies like meã By: Sys64738 to Nightfox on Fri Dec 10 2021 10:38 pmãã 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.ãã >> 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.ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Nightfox@VERT/DIGDIST to
echicken on Fri Dec 10 23:59:00 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Sat Dec 11 2021 05:28 amãã Sy>> anything. However, I do cringe every time I hear "programming"ã Sy>> termed as "coding". blech! ãã ec> Yeah, there's no 'programming' any more, old timer. There are developersã ec> and coders and coders who develop and developers who code and probably aã ec> bunch of other things I'm not hip enough to know about. ããI almost feel like "programming" sounds okay, but the term "computer programmer" seems like something that's not really used anymore. "Software developer" and "software engineer" has largely replaced "computer programmer".ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Nightfox@VERT/DIGDIST to
echicken on Sat Dec 11 00:00:24 2021
Re: Javascript for dummies like meã By: echicken to Sys64738 on Sat Dec 11 2021 05:28 amãã ec> will drift. I am often quite annoyed by stuff like this (eg. referring toã ec> the # symbol itself as 'hashtag'), but I eventually get used to it. I justããI as well. I also feel annoyed when I see posts where the only text people post with it are #hashtags rather than an actual sentence saying something..ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
Nightfox@VERT/DIGDIST to
Sys64738 on Sat Dec 11 00:02:52 2021
Re: Javascript for dummies like meã By: Sys64738 to Digital Man on Fri Dec 10 2021 10:44 pmãã >> And btw, this attribute is not unique to JavaScript. You've heard ofã >> the C and C++ programming languages, I'm sure. C and C++, theã >> languages themselves, don't define a standard/universal "print" typeã >> function either. ãã >> There *are* "Standard Runtime Libraries" for the C and C++ which addã >> that functionality (e.g. puts, printf), but they're not part of theã >> core language definition. I've worked professionally on C projectsã >> where there was no "print" type functionality at all (we did not use aã >> "standard runtime ã >> library", nor was there a console to print to in the execution environment)ãã Sy> That is odd to me. Even the Eniac and Edvac had the ability to display aã Sy> readout even if it was on punchcards or some other medieval median. ããI think the reasoning is that it's possible to write a program for something that doesn't have a console (such as firmware for a device), where there isn't anything to write onto. The only way to get a message out in that kind of situation would be to send something over a data connection (serial or otherwise).ããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
-
From
MRO@VERT/BBSESINF to
Nightfox on Sat Dec 11 13:15:10 2021
Re: Javascript for dummies like meã By: Nightfox to echicken on Sat Dec 11 2021 12:00 amãã > Re: Javascript for dummies like meã > By: echicken to Sys64738 on Sat Dec 11 2021 05:28 amã >ã > ec> will drift. I am often quite annoyed by stuff like this (eg. referringã > ec> to the # symbol itself as 'hashtag'), but I eventually get used to it.ã > ec> I justã >ã > I as well. I also feel annoyed when I see posts where the only text peopleã > post with it are #hashtags rather than an actual sentence saying something..ã >ããi feel annooyed when they don't call it octothorpe.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
-
From
Sys64738@VERT/TXNET1 to
Digital Man on Mon Dec 13 17:36:03 2021
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.ãã SYS64738ãã---ã þ Synchronet þ TEXNetã
-
From
Sys64738@VERT/TXNET1 to
Nightfox on Mon Dec 13 17:40:28 2021
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ã
-
From
Digital Man@VERT to
Sys64738 on Mon Dec 13 17:02:16 2021
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ã
-
From
Tracker1@VERT/TRN to
Sys64738 on Mon Dec 13 18:20:53 2021
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
-
From
Tracker1@VERT/TRN to
Sys64738 on Mon Dec 13 18:23:47 2021
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
-
From
Tracker1@VERT/TRN to
Sys64738 on Mon Dec 13 18:28:22 2021
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
-
From
The Lizard Master@VERT/NITEEYES to
Tracker1 on Tue Dec 14 08:45:44 2021
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...ã
-
From
MRO@VERT/BBSESINF to
The Lizard Master on Tue Dec 14 09:06:38 2021
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 :::ã
-
From
Nightfox@VERT/DIGDIST to
Sys64738 on Wed Dec 15 09:07:40 2021
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ã