housecor.com
Courses: http://pluralsight.com YouTube: http://youtube.com/@housecor Consulting: http://reactjsconsulting.com ⚛️
👤 Joined on 31 October 2024
Followers
Following
Total Posts
@housecor.bsky.social@housecor.bsky.social → @housecor.comKC's own Cory House returns! 🏠 "Work Now, Sync Later: Is Local First the Future of Web Apps?" Our local legend tackles cutting-edge web architecture. 📅 www.kcdc.info/tickets #kcdc2025 #LocalFirst #WebDev
Show PostThe mental model for verbatimModuleSyntax:true is simple. 🔷 Design-time import import type { ... } from "mod"; // no runtime import ❌ 🔷 Runtime import import { ... } from "mod"; // runtime import preserved ✅ The `type` keyword controls if an import statement of binding will be erased.
Show PostBut the logic better be complex. Don't create these when you have a clear and simple discriminator.
Show PostI've inherited a codebase in the past where the previous team chose option 2. Fast forward 3y, 2 burnouts, lots of pain and frustration and lastly, a resignation... Don't choose option 2.
Show PostMigrating to TS is challenging to do right, as the developers need to change their mindset to using types. I've observed multiple teams committing to use TS because it's best practice, but then just spray anys all over the place which defeats the purpose of using TS in the first place.
Show Post