squint

borkdude 2025-10-25T20:59:14.086349Z

I made a mistake. I wanted to mirror the reagent and eucalypt API:

(render [hiccup] elt)
but reagami has (render elt [hiccup]) - should I make breaking change? 😱

cjohansen 2025-10-25T21:04:23.550349Z

It's a function you'll typically call one or two places in your code base. It's not important. FWIW, Replicant has el hiccup as well. I like the partial-test to help decide these things. It makes much more sense to partially apply the element than the hiccup 🀷 😊

borkdude 2025-10-25T21:04:50.223209Z

I like that replicant has el hiccup. Thanks!

borkdude 2025-10-25T21:05:18.318749Z

Also another thing: reagami. I have trouble remembering the name, this is a bad sign... Maybe I should change it

cjohansen 2025-10-25T21:14:05.182279Z

I think it works πŸ™‚

yuhan 2025-10-26T05:25:00.376899Z

was the intended pun react+origami? it doesn't quite work for me either since ori-gami is literally fold-paper in japanese (you're cutting off the 'fold' stem)

yuhan 2025-10-26T05:28:22.174879Z

I like the update-test too - (update elts 0 render h) seems more natural than having to say (update elts 0 #(render h %))

πŸ‘ 1
borkdude 2025-10-26T07:44:43.970299Z

Yeah it’s a pun on origami. What the lib does is convert hiccup to DOM and morph. So maybe the name should include those words

borkdude 2025-10-26T07:45:10.774269Z

Hiccup2dom is too boring

borkdude 2025-10-26T08:32:16.450269Z

Maybe this name works: haccup, hack the DOM with hiccup

yuhan 2025-10-26T08:39:12.448379Z

I was wondering about the 'fold' metaphor, isn't it more like 'interleaving / splicing' really - oh how about 'splint' :P

yuhan 2025-10-26T08:40:00.501519Z

might be a bit too close to squint though

borkdude 2025-10-26T09:10:39.810909Z

splint already exists as a linter (#splint)

borkdude 2025-10-26T09:11:27.318869Z

fold is also a term from functional programming, so that's why it may be funny. maybe I'll just stick with reagami although it doesn't make sense in japanese ;)

yuhan 2025-10-26T11:10:19.699149Z

heh fair enough, 'reactive paper' isn't too far off either

borkdude 2025-10-26T11:11:58.887209Z

:-)