Live data from Hacker News

Jsc: My New Best Friend

furbo.org

1–10 of 44 posts

Re: Jsc: My New Best Friend

#3
post #2

Sounds a lot like NodeJS.

Yeah, there isn't really any reason to use it over something like nodejs, especially since it doesn't look like the code is portable (e.g. print instead of console.log, etc.).

It's not like it's the only scripting language available either, OSX comes with ruby, python2, python3 and perl by default.

Re: Jsc: My New Best Friend

#6
post #2

Sounds a lot like NodeJS.

Yeah. This is a cool factoid, but for this kind of thing I usually just hop over to whatever browser tab is open and hit F12. If it really needs to be in the terminal, I'd reach for Node, or Deno, or JQ if it's anything to do with manipulating or interrogating JSON.

Re: Jsc: My New Best Friend

#10
post #3
post #2

Sounds a lot like NodeJS.

Yeah, there isn't really any reason to use it over something like nodejs, especially since it doesn't look like the code is portable (e.g. print instead of console.log, etc.). It's not like it's the only scripting language available either, OSX comes with ruby, python2, python3 and perl by default.

The big difference is that it comes preinstalled. If you had a whole company on MacBooks but not all of them had Node installed, and you wanted to distribute a script written in JavaScript, this could be handy

Fairly niche, but not useless

I could also imagine some sort of Electron-alternative using the builtin JS interpreter for system stuff alongside the builtin webview for the UI

Post reply on HN