Log inSign up
Matt Pocock
34.8K posts
Image
user avatar
Matt Pocock
@mattpocockuk
I teach devs for a living. Author of Total TypeScript and AI Hero. Ex-@vercel. Used to be a voice coach.
Oxford, England
aihero.dev
Joined August 2011
784
Following
296.7K
Followers
  • Pinned
    user avatar
    Matt Pocock
    @mattpocockuk
    May 18
    My last AI Coding Cohort was the most successful course I've ever released. 2,500+ students worked with Claude Code for 2 weeks, building a real app with AFK agents and software fundamentals. So, we made version 2: - Use any coding agent you like - Updates for every skill -
    AI Coding for Real Engineers
    AI Coding for Real Engineers
    From aihero.dev
    149K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Aug 20, 2025
    This is actually a really solid context engineering template. Kudos, @AnthropicAI
    Image
    911K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Sep 30, 2022
    Today's the day. My Beginner's TypeScript tutorial has dropped. And it's free for everyone. 🧵
    Image
  • user avatar
    Matt Pocock
    @mattpocockuk
    Mar 6, 2025
    Lots of folks feeling FOMO about MCP. Here's the problem it solves:
    Image
    Image
    695K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Feb 15, 2023
    If you don't know generics, I promise you'll understand them by the end of this thread. I like a challenge.
    export const objKeys = <T extends object>(obj: T) => {
  return Object.keys(obj) as Array<keyof T>;
};
    728K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Sep 15, 2024
    Here's a fun trick you can do with template literals in TS!
    Image
    1M
  • user avatar
    Matt Pocock
    @mattpocockuk
    Apr 1, 2022
    🧵 The Ultimate TypeScript Thread 🧵 Here's everything I've learned from leading TS dev teams and working on XState's core team. My goal is to turn you into a TypeScript wizard. And yes, this thread is EVERGREEN - I'll add at least 3 more tips a week 🚀 Let's get started.
  • user avatar
    Matt Pocock
    @mattpocockuk
    Oct 4, 2025
    Scroll to the bottom
    user avatar
    Barrel Of Lube
    Hexclave
    @barre_of_lube
    Oct 2, 2025
    how did you debug this before ai
    Image
    221K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Feb 6, 2023
    Here's a quick thread on a super useful type helper you've probably never heard of (nope, not even advanced folks).
    Image
    543K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Aug 9, 2024
    Time to talk about one of the strangest TypeScript tricks around. It's the loose autocomplete trick. And it's ACTUALLY USEFUL for app development. Let me explain 🧵
    Image
    444K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Aug 8, 2024
    So many folks don't know about structuredClone. It's awesome, built-in, and supported in all major browsers. Let's learn 🧵
    Image
    410K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Jul 26, 2024
    Replying to @EddyVinckk
    Divorcee Dad off to see estranged children
    65K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Feb 8, 2023
    A brief thread. 'as const' has more uses than you might think.
    Code:

const useFirstName = () => {
  const [firstName, setFirstName] = useState("");

  return [firstName, setFirstName] as const;
};
    527K
  • user avatar
    Matt Pocock
    @mattpocockuk
    Sep 5, 2022
    Want to learn TypeScript for free? Here’s every piece of free content I’ve put out over the past 6 months, in order from beginner to wizard-level. Mega-🧵

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up