Posts

Image
Functional Friday - Episode 4 Learning Rescript - Recursion, Async/Await and Pipes Welcome back to Functional Friday, the place where you can't distinguish a chicken breast from a function, since they're both curried 🥁! In the last last episode we started exploring ReScript functions, going through main differences compared to JavaScript and TypeScript. Because so, it's considered as a prerequisite before jumping in today's episode, so if you haven't read it yet I highly encourage you to do so. I consider the topics that we're going to cover today as advanced ones, even if they will probably become part of our daily tools. So don't feel discouraged if they'll sound complex at a first glance: they are. As a
Image
Functional Friday - Episode 3 Learning Rescript - Introducing functions Welcome back to Functional Friday, the place where a function didn't return because someone forgot to call her back 🥁! In the last episode we learnt how important expressions are in ReScript and how to use them at a very basic level, including how to define and use if expressions. Keeping up with this topic, in this week episode we'll see another form of expressions: functions. If you're here for the first time, I highly suggest you to read at least the second episode so you don't get lost too much (hopefully 😅). As a disclaimer, this episode will be quite technical hence more dense than previous ones; this means that you may find it harder to digest it
Image
Functional Friday - Episode 2 Learning Rescript - Expressions Welcome back to Functional Friday, the place where functions stopped calling each other, because they had constant arguments 🥁! In the last episode we had a look on how let bindings and types work in ReScript and how they compare to JavaScript/TypeScript. In this episode will focus mostly on expressions and we're going to use them to start introducing some differences between functional programming languages and imperative ones. 2.1 Expressions, uh? 🤔 Normally speaking, an expression is the action of making known someone's thoughts or feelings , whereas in programming an expression is an entity that may require further comput
Image
Functional Friday - Episode 1 Discovering Rescript - Types and Let Binding Welcome to this first episode of Functional Friday! This series is meant to be a journey of ReScript discovery and what it looks like for a JavaScript/TypeScript developer. If you're relatively new to functional programming, don't worry: I've been there. Functional programming in its purest form has its roots set in mathematics and some concepts may be hard to grasp. That's why I'll use a more pragmatic approach to it and provide comparison with imperative, unfunctional code whenever it's needed. But first, let's see how this journey started. 1.1 Me and TypeScript 💔 In the last couple of years I tried to fall in love wi
About Me - Maurizio Vacca Curious by nature, driven by passion. I'm a software developer, whatever it means. Hey, thank you! My name is Maurizio, nice to meet you. I do really appreciate you are taking the time to read through this - hopefully - brief presentation of mine. Last time I had a blog it was during early 2000s, on Microsoft Live Spaces; as bad as the platform was, I really loved writing. I always did. But I also remember the frustration when the platform got shut down; during that time I got my first job as a developer and I had too many things going on: strict deadlines, stressful working environment, an unhappy relationship so I stopped blogging… up to now. Without further digressing, let me introduce myself. I was born in Cagliari, Sardini