/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

sitr.us
| | typescript-eslint.io

Disallow using confusing built-in primitive class wrappers.
4.3 parsecs

Travel
| |
| | blog.michal.pawlik.dev

TL;DR Today I learned how to mimic Scala-like value class in Typescript Doing day to day scala I often use value classes to model the data like: final case class UserId(value: String) extends AnyVal final case class City(value: String) extends AnyVal This is especially useful when you want to add some meaning to primitive types. It also makes the compiler help you to avoid passing irrelevant data to downstream methods.
4.2 parsecs

Travel
| |
| | andreasimonecosta.dev

Let's try to clarify, once and for all, the true essence of type parameters.
5.9 parsecs

Travel
| |
| | nelari.us

A small look at some useful template techniques, in the context of trying to bind functions to a virtual machine. I wrote this post mostly for myself so that these techniques would be listed all in one place.
27.3 parsecs

Travel
|