Follow

Started with a SVG-generating script someone wrote in JS; rewrote it in JS from scratch (without nested for loops and OOP); then attempted to rewrite in JS+d3, hit some walls (not really d3s fault).

Rewrote in .

Felt relief.

Somehow building an s-expression (that is automatically transformed into xml) is so much more pleasant than calling dom methods and mutating things.

(d3 is nice too, but for this use case plain Racket was even better).

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
La Quadrature du Net - Mastodon - Media Fédéré

Mamot.fr est une serveur Mastodon francophone, géré par La Quadrature du Net.