Subj : Menushell.js
To : Underminer
From : Digital Man
Date : Sun Aug 23 2020 11:51 pm
Re: Menushell.js
By: Underminer to Nightfox on Mon Aug 24 2020 12:03 am
> Re: Menushell.js
> By: Nightfox to MRO on Sun Aug 23 2020 05:35 pm
>
> Ni> I find JS easier than Baja.. And some things in JS actually require
> Ni> fewer lines of code than Baja - For instance, you don't need an
> Ni> "end_cmd" type of thing in JS. You can use curly braces in JS, but if
> Ni> there's just one line of code in the block, you don't need curly
> Ni> braces.. But I suppose I naturally find JavaScript easier since I was
> Ni> already a software developer.
>
> That entirely depends on what *Kind* of development you're doing as a
> developer; some of us don't use a whole lot of JS in our daily work. That
> said JS is reasonably quick to pick up for anyone who has dealt with similar
> languages, and I'm quite happy to have the available flexibility that it
> offers, but I think for someone just getting some customization started who
> isn't overly familiar that BAJA may be a little quicker to pick up. The
> possibility exists that I'm dead wrong on that though.
Baja was before JavaScript or most of the other cool modern scripting languages were even invented. There were already many better scripting languages (if it requires compilation before executing, is it still a "script"?), but I didn't know of any open source ones at the time and I really only "needed" something simple. The design was could be described as "emergent", not really designed ahead of time. The result is kind of a cross between BASIC, assembler and some C. Baja shouldn't be familiar to anyone, really, and it stopped improving or evolving around 2001 when discovered the Mozilla JavaScript-C library (SpiderMonkey) and relatively easily shoe-horned that into Synchronet.
Now, I did have some very "high level" functions in Baja, where'd you call a function and it'd go off into a major part of hard-coded BBS functions with zero-control from the Baja module. I still have all that available in the JS object model (the 'bbs' object methods), but we also have fine-grained functionality. The language is *way* better than Baja and the number of functions/methods and properties available to the script-writer blows Baja away.
So... yeah, JS > Baja. :-)
digital man
Sling Blade quote #20:
Doyle: Hey is this the kind of retard that drools and rubs shit in his hair?
Norco, CA WX: 74.7�F, 77.0% humidity, 0 mph E wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net