Found 8 bookmarks
Newest
OSA JavaScript recipes
OSA JavaScript recipes
For a while, you've been able to script Mac OS using JavaScript using JavaScript for Open Scripting Architecture (JSOSA). This is a huge improvement on AppleScript. Why? JavaScript isn't a great language, but it broadly follows the conventions that programming languages of the C/ALGOL family have followed for decades. AppleScript is a horrendous mess that should never have come into being.
·gist.github.com·
OSA JavaScript recipes
Starboard
Starboard
Site that sort of provides active JavaScript notebooks, with a view to doing most/all of the work on the client side. I was sort of hoping there'd be a self-host option or something and I'm not seeing that. On the other hand it could be a good tool for tinkering with and prototyping code.
·starboard.gg·
Starboard
The Pitfalls of Boolean Trap
The Pitfalls of Boolean Trap

Good little article about the pitfalls of using boolean values as parameters for a function. Not the first time I've seen this sort of thing (I'm sure I read a similar article years before, and a similar thing in a coding book even earlier).

Still good advice.

At least it's a little better in languages with keyword arguments.

·ariya.io·
The Pitfalls of Boolean Trap