Skip to content

Instantly share code, notes, and snippets.

View theodesp's full-sized avatar
🦄
Jumping over Rainbows...

Theofanis Despoudis theodesp

🦄
Jumping over Rainbows...
View GitHub Profile
@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active April 12, 2025 00:19
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

@mitchellh
mitchellh / json.zig
Last active April 5, 2023 21:04
Streaming JSON decoder for Zig (NOT COMPLETE!)
const std = @import("std");
const builtin = @import("builtin");
const assert = std.debug.assert;
const Allocator = std.mem.Allocator;
const ArenaAllocator = std.heap.ArenaAllocator;
const StreamingParser = std.json.StreamingParser;
const Token = std.json.Token;
const TokenTag = std.meta.FieldEnum(Token);
/// Field options are options that can be set per-field on a struct at
@borsos-ilo
borsos-ilo / product.md
Last active April 25, 2025 07:46
Ilona Borsos - my personal product handbook

Hello

Where am I?

This gist is a living, practical document describing what product management is to me and how I do it. All opinions are mine and are not meant to convey THE truth of doing product, but rather serve as a document I can review on a regular basis to remind myself of things that are important for me. Enjoy it in its current form!

Inspired by the amazing Kathy Korevec who, through her writing, showed me the importance of having a grounding personal philosophy.

Growth stages of thoughts

I am a big fan of the philosophy of digital gardens which treats texts published on the internet as editable works-in-progress, encourages publishing early, and growing your understanding of things with time. Thoughts start as imperfect ideas and are refined, reality-tested, discarded, and changed over time - why not make our publishing re