Log inSign up
Log inSign up
@mattphillips.io 🦋
833 posts
@mattphillips.io 🦋 profile banner
@mattphillipsio

@mattphillips.io 🦋

@mattphillipsio
Software engineer | Tech entrepreneur | Founder @newbeeper | @fbjest maintainer. I love teaching and helping on all things code / startup / product. DMs open
London, England
mattphillips.io
Joined January 2012
560 Following
347 Followers
RepliesRepliesRepostsRepostsMediaMedia

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.
  • Pinned
    @mattphillipsio
    @mattphillips.io 🦋
    @mattphillipsio
    Jan 25, 2022
    Hey 👋 Twitter is the home of my content, so follow along for: 🧑‍💻 Web dev, functional programming & testing in #Typescript 🤩 Getting into / maintaining open source software 💸 Tech entrepreneurship 📢 Building in public 🧑‍🚀 Career advice Wanna chat? My DMs are always open 😊
  • @mattphillipsio
    @mattphillips.io 🦋
    @mattphillipsio
    Oct 27, 2023
    Now that @reactjs has gone full circle to server-rendered websites like the good old php days... how far away are we from the next cyclical trend of SPAs being the "correct" way to build websites for *insert reasons here* 🤷‍♂️
  • @mattphillipsio
    @mattphillips.io 🦋
    @mattphillipsio
    Aug 2, 2023
    Hey friends 👋 do I know any @reactnative experts? I’m planning on building an app for fun / to learn RN, question is where do I begin? Any advice would be greatly appreciated! Some questions below 👇
    1
  • @mattphillipsio
    @mattphillips.io 🦋
    @mattphillipsio
    Jun 25, 2023
    Just use cookies with httpOnly, secure and same-site enabled 🍪 I’ve never understood the fascination of storing tokens in localStorage, especially JWTs they can be stored in a cookie too you know 🤫
    @TkDodo
    Dominik 🔮
    @TkDodo
    Jun 25, 2023
    If you need another reason to not store tokens in localstroage, read this thread:
    Quote
    @PiotrSzlachciak
    Piotr Szlachciak
    @PiotrSzlachciak
    Jun 23, 2023
    So basically it creates an iframe, reads iframe.contentWindow.localStorage.token and sends it as a query parameter to the external site.
    1
  • @mattphillipsio
    @mattphillips.io 🦋
    @mattphillipsio
    Jun 24, 2023
    Everyone sees the missing await / error handling which are trivial to solve. I see the lack of parsing the JSON into something trustworthy via Zod/io-ts. I see so many bugs caused by devs trusting a value provided by the network. Also TS any on .json() aids this problem!
    @TkDodo
    Dominik 🔮
    @TkDodo
    Jun 23, 2023
    Everyone sees the missing await, which is so trivial to spot and fix with TypeScript. I see the missing error handling which will never show up on type level, or in your tests until your users report it...
    Quote
    @thomasfindlay94
    Thomas Findlay
    @thomasfindlay94
    Jun 23, 2023
    Async code in JS can sometimes be tricky, but often it doesn't work because of a small mistake. Can you see what's the problem with this code? 🧐 Share it below 👇
    1