TIL: Today I Learned

TIL about better-all - extension of Promise.all() with automatic dependency optimization and full type inference.

1 Like

TIL about naming conventions for CSS named grid lines.

When you specify

grid-template-columns: [main-start] 1fr [content-start] 1fr [content-end] 1fr [main-end];

Then child elements can be aligned in a shorthand fashion — instead of specifying grid-column: content-start/content-end; you can specify grid-column: content <3

1 Like

TIL about git insteadOf trick:

git config --global url."https://github.com/".insteadOf "gh:"

It allows us to do e.g.

git clone "gh:user/projects"
# instead of
git clone "https://github.com/user/projects"
1 Like

This has a lot of potential as a prank on a co-worker who didn’t lock their laptop :smiley:

1 Like

TIL about Promise.withResolvers and Promise.try.

1 Like

Yet another serialization format: https://flatbuffers.dev/

A very unique one on top of that. Schema is compiled and baked into application as a code. Still it provides some flexibility to evolve schema without breaking existing applications(deprecating fields/identifiers instead of removing them). Can’t provide any benchmarks, but looking at structure it should be more efficient than JSON and msgpack. Extra compiler during build is a nuisance though.

2 Likes

TIL about fallow:
The static layer to find unused code, duplication, complexity hotspots, architecture drift, and feature-flag branches across your module graph. Targets specifically TypeScript and JavaScript

1 Like

TIL that the Temporal API is now enabled by default in Node.js 26 :fireworks:

1 Like

TIL that starting from npm 12 it will not run postinstall automatically:

1 Like