How Not to Introduce ReasonReact to Your Project

Well, actually the reality is not as harsh as the clickbaitey title would make you think. Nothing particularly wrong came out of my introduction of ReasonReact and, by extension, ReasonML to the static build of this very site. The claim that you can introduce Reason & ReasonReact to an existing application one component at a time is entirely true.

Pipes are Fast but We Are Faster

Oy vey. It’s bad enough that the ReasonML standard library, Belt’s preference for fast pipes is polarizing the community (regular pipes are way more customary in Caml, and of course ReasonML attracts a lot of Caml enthusiasts), now I learn it’s not even the same fast pipe!

Tail-optimized functions in ReasonML

For that mechanism to work, you have to be sure you don’t do anything with the result of the recursive call other than return it as is. That way, you don’t have to return at all. The function instance that is called last evaluates the final result and returns it straight to the original callee.

Types vs clever code

“If it’s hard to typecheck, it’s probably hard to understand.” — Jared Forsyth

TIL: Why ReasonML Has No Nullary Functions

“If you don’t provide all of a function’s parameters, you get a new function from the remaining parameters to the result. As a consequence, if you could actually provide no parameters at all, then func() would be the same as func and neither would actually call func.”

Sorting Lists, Testing Units

Here’s your brain on drugs.

Chops v.0.0.0 Is Out

Well, no, my little watchful static build engine called Chops is not even actually out. It’s not published, it’s not documented, it’s not even a proper NPM module. I use it via npm link and that gives npm (or Yarn) a fit of recursion.

Look Ma, No Comments!

Ok, since this blog is experimental anyway, I’ve decided to experient some more and go without comments, at least for now. The first reason, to be honest, is I’ve played with Muut (don’t get me started on things like Disqus), aaand it’s somewhat hard. Much as I’m intrigued by Riot from the same authors, overriding a whole lot of Muut’s css rules is boring (and none of those!importants are particularly easy on these poor eyes).

Hello world

Hi y’all. If you read this, that means I’ve started my little developer’s blog that doubles as a project because none of those static site builders are any good I need to build something to learn JS and Node. And reading code is harder` than writing.