👊 First post for 2021!
Recently I decided to adopt fp-ts lib on a side project.
It’s a library that provides abstractions from typed functional languages that makes it easy to apply functional patterns when developing in TypeScript.
My motivation in adopting fp-ts was:
I’ve been reading the fp-ts docs…
Say hello to tsttgen
A few weeks ago I started to develop a CLI tool in Rust under the name tsttgen which stands for Typescript Test Templates Generator.
In short on tsttgen — my initial motivation was, of course, improving my Rust skills, but the idea behind the tool is to automate the boilerplate creation part in generating typescript files which contain tests format that is used when developing e2e in typescript with TestCafe.
As the time passed and I wanted to keep developing tsttgen, I thought it would be really nice to serve a static report of tsttgen run…
Let’s create a web component based on a hardware device!
** NOTE: I originally published this post to the Wokwi’s official blog.
In the following post, I will describe my personal experience in making a web component based on a hardware device, as part of contributing to “Wokwi-elements”. It’s an extremely cool open source library for “Arduino elements” made by Uri Shaked.
The creativity behind the Wokwi lib immediately caught my mind and I recognised an opportunity to play with new techniques and gain more experience with concepts I was experienced with.
If I’ll shortly try to explain what Wokwi…
Lately I’ve been refactoring a huge module in our code base.
Refactor is an expensive process to the organisation, it means that I’m spending my (expensive) time on improving something that already gives value to the field instead of creating new features that will help in selling the product.
But it also means that the next time someone will need to add a new feature to the module it will take less than it was before — and hence — one of the benefits of the process.
Disclaimer: This post won’t teach you Rust, the motivation is to get you started quickly into WASM using the amazing wasm-pack tooling on top of the intuitive Rusty ecosystem.
Not so long ago I started to get interested in Rust - How did that happen?
There’s a HYPE around WASM (Web Assembly) and it triggered a need I have with getting my hands dirty with new things.. I wanted to be a part of that party 🎉 🎊 🎈.
“ WebAssembly is a new type of code that can be…
Disclaimer: This post won’t teach you the “observer pattern”.
In this quick post I’ll share a use case I had and how I resolved it without importing an external tool.
On one of my side projects, (emulated looper), the view layer (couple of buttons) must update the logic layer whenever a state changes.
The logic layer will react accordingly.
It’s a Typescript project, and I’m not using any framework, just the DOM and I.
In such case, I don’t see any point of using an external tool — (I like working with rxjs Subjects btw, awesome lib 😎 👏 ).
Care to understand how things work under the hood? if so I assume you already reached out the following Mike Bostock’s (the creator of d3) post from 2013.
Today the returned selection structure is an object.
The selection holds:
Few weeks ago, I decided to challenge myself in learning Haskell. My motivation was to get a better grasp of functional patterns. ( such functors or monads There are a lot more here → The Patternopedia). In one-line of Haskell you can describe abstractive concepts — this is very powerful.
Haskell is different from the other languages I’m familiar with. But I eventually came up with a try to implement a functor in TS, which I called a “List Functor”. You can find the explanation on my previous post. BTW check out the following impressive project fp-ts.
A Functor is a structure which implements a map() function. It is used as a context wrapper around a certain data/structure the user aims to transform.
That structure we pass to the functor could be of any type but in this post I’ll demonstrate a functor which get’s a list of data. (functors are everywhere, you can find several functors types here).
We can think of a functor as a structure that we need in order to pass an item from a set of values A to a different set of values — let’s say B (we do so by…
Mom gave *rock&roll* to yah —FE Tech Lead@ SentinelOne | occasional consultant..