skip to content
vvhybe

case 112023

handyscript

Everyday JavaScript helpers: arrays with sort algorithms, matrices, math, strings, JSON.

filed
my own, with @tchisama and @ilorez
closed2023
role
javascript engineer, main author
period
2023
status
closed: shipped

the brief

sheet 2 of 5

The helpers I kept rewriting: chunk an array, shuffle it, a random integer, a sort I could pick.

Put them on the built-ins, test each module with Jest, ship to npm and both CDNs from CI.

the identity

sheet 3 of 5
handyscript's mark: HS in black, in the corner of a yellow square
the markMine: HS in a yellow square, set the way JavaScript's own logo sets JS.

It adds methods to JavaScript's own built-ins, so it wears JavaScript's colours: the yellow and the black, with doodles chalked over the cover by hand.

the colours

  • JavaScript yellow#F0DB4F
  • ink#000000
  • chalk#FFFFFF

its signature

  • HS in the corner of a yellow square
  • doodles in white chalk over the cover

the build

sheet 4 of 5

from handy.js to handyscript

It started in May 2023 as @handy.js/handy, "a javascript library for dummies". A month later it was renamed and rebuilt as its own organization, with docs, CI and semantic releases.

sorting, by hand

Ten sort algorithms, from bubble to radix and shell, each implemented and tested, and binarySearch takes the one to sort with.

the family

handyutility gathers the helpers that didn't fit, and DHOM binds data to HTML through attributes. Cactusia imported handyscript; leorodney ran on its predecessor.

made with javascript, jest, nuxt (docs)

the verdict

sheet 5 of 5
  1. 2023Versions 1.0 to 1.9, written with @tchisama and @ilorez, and used in my own client work.
  2. Jun 2023Written up on Medium: “Handy Script — New Javascript Context Programming”.
handyscript: its cover
case 11, handyscript
print 1 / 1