This post is part of the . I'm very grateful to be a part of this and I hope you will enjoy this one as much as I have enjoyed the others. Today I would like to show you how you can create from scratch using Fable. Along the way we write some code that will extend the syntax. To get started we will follow the general approach of scaffolding a new extension. Using the generator we will scaffold a new JavaScript extension. In order to add Fable we need two main pieces: a couple of npm…
fp
3 articles
Writing a VSCode extension with Fable 2.1
React hooks preview with Fable
A couple of weeks ago Facebook presented , a new way of accessing React features inside functional components. In this blogpost I would like to show that the new hooks can easily be used in combination with . Disclaimer: Hooks are an experimental proposal to React, currently available in , and the api is not final yet. Use at your own risk. A first example of a hook is . When the hook is called, we receive a variable representing the state and a function to update the state. Example: Note that accepts a default value for the…
Adventures in Elm
2016 for me personal was the year the I came in serious contact with functional languages. I started looking at F#, applied functional concepts (partial application, immutability, pure functions and so on) in JavaScript, gave RxJS a shot and fell in love with React. A logical next step was looking at Elm. I was first introduced to Elm at a a while ago by . To be honest I was a bit overwhelmed at the time and a bit skeptical afterwards. I decided to give Elm another shot and learned a lot by following . Now I feel ready…