1. X
  2. Sebastian
Log inSign up
Sebastian
14.3K posts
Sebastian profile banner
user avatar

Sebastian

@sebmck
Joined April 2011
428
Following
39.7K
Followers
RepliesRepliesMediaMedia
  • Pinned
    user avatar
    Sebastian
    @sebmck
    Jun 14, 2024
  • user avatar
    Sebastian
    @sebmck
    Jun 6, 2024
    .js, .jsx, .cjs, .mjs, .ts, .tsx, .d.ts how many extensions does one language need
  • user avatar
    Sebastian
    @sebmck
    May 28, 2024
    Explicit Resource Management Proposal is so good but DisposableStack is so limited. There's no way to remove disposables from the stack so any long-lived DisposableStack will keep them around forever until disposed.
    GitHub - tc39/proposal-explicit-resource-management: ECMAScript Explicit Resource Management
    From github.com
  • user avatar
    Sebastian
    @sebmck
    May 27, 2024
    Protip: In VSCode set `editor.minimap.renderCharacters` to `false`. Before and after. So much nicer. No idea why it isn't the default.
  • user avatar
    Sebastian
    @sebmck
    May 25, 2024
    I wish there was an easy way to define Symbol.toStringTag like native types do. To replicate the native behaviour in TypeScript you have to do this. Even if you use a utility, you still need the TypeScript suppression which is very annoying. Is there a better way?
    class Foo {
  // @ts-expect-error: It's defined on the prototype
  public [Symbol.toStringTag]: string;
}

Object.defineProperty(Foo.prototype, Symbol.toStringTag, {
  value: 'Foo',
  writable: false,
  enumerable: false,
  configurable: true,
});

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·US TIDA·Ads Info·© 2026 X Corp.