Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
boyswan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
boyswan
8y ago
reasonml <3
2.
▲
by
boyswan
8y ago
I'm only guessing that's because you have prior experience with Ember and are only starting to use react now. I find code written in ReasonML is 100x more maintainable than anything written in javascript, whether it's react o
3.
▲
by
boyswan
8y ago
Similar to flow. JS interop is great, so you can literally change bit by bit and refactor from the inside out.
4.
▲
by
boyswan
8y ago
Also for your issue with deeply nested options, have a look at this https://medium.com/w3reality/working-with-option-using-maybe...
5.
▲
by
boyswan
8y ago
Since moving from javascript to reason/ocaml, i'm genuinely nervous about refactoring Js now. Helpful compiler errors are literally life changing, and being able to handle options with Some/None means no more nasty undefined
6.
▲
by
boyswan
8y ago
You forgot the best bit... variants and pattern matching!
7.
▲
by
boyswan
8y ago
I thought this and was put off at first, but have come to the conclusion that you really don't need redux (I've used it thoroughly for years). We've been converting a large JS react app to Reason, and strongly typed props sol