We just released a new article about our new first-class dynamic import support that will ship with ReScript v11.
Code-splitting without ever mentioning any file paths. It's kinda cool! Check it out here👇
https://t.co/G7BjukPDDw
Sorting git branches by "last activity" is much more helpful for me than by name. Here is an alias I use to list branches by activity:
git config --global alias.recent 'branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)"'
@ryyppy In general, I'm mostly agreed with the core team decisions, but this one make me very, very sad. Curried's functions by default was one of my preferred feature when I started rescript several years ago
Know JavaScript but not sure how to get started writing ReasonML / BuckleScript bindings? Here's a quickstart cookbook that translates common JavaScript code patterns into BuckleScript bindings: https://t.co/VWKO71RBSm
Wrote a post about creating constrainable @reasonml variants. Middle ground between regular variants & polymorphic variants. Among other things, helps break up big pattern matches across multiple files while keeping comprehensiveness checks.
https://t.co/MpNCeDgiHq
Anyone else review their own pull requests on GitHub before asking a colleague for a review? I find seeing my code in a different context makes me spot things I missed when in my editor.
Dropping back into a @reasonml /reasonreact project that I haven't touched in 2.5 months is sooo much nicer than dropping into a javascript/reactjs project I haven't touched in 2.5 months. Types make all the difference (and being able to *trust* those types...looking at you flow)
JavaScript array destructuring implicitly invokes the iteration protocol, which comes at a cost.
Now that this pattern is becoming more common (React Hooks, anyone?), @v8js is optimizing it to minimize the overhead.
@bmeurer explains: https://t.co/Rc7P7BMP6E
Just read the complete docs on React Hooks from beginning to end. If you use React you really should do too!!!
The docs explained all open questions that came up during discussions in the past 2 weeks e.g useLayoutEffect, getDerivedStateFromProps, perf👏
https://t.co/JpN6oJiPcr