📰 Dev.to · Maryan Mats
Articles from Dev.to · Maryan Mats · 8 articles · Updated every 3 hours · View all reads
All
⚡ AI Lessons (10244)
ArXiv cs.AIDev.to · FORUM WEBDev.to AIForbes InnovationOpenAI NewsHugging Face Blog

Dev.to · Maryan Mats
6d ago
Why I Stopped Using Enums in TypeScript (I Use `as const` Instead)
TypeScript enums compile into surprising JavaScript — IIFEs, reverse mappings, and tree-shaking problems. Here's why I switched to as const objects and union ty

Dev.to · Maryan Mats
6d ago
Stop Writing try/catch — Your TypeScript Errors Deserve Types
Your function signatures only show the happy path. TypeScript is blind to errors — by design. Here's why the man who designed TypeScript rejected typed exceptio

Dev.to · Maryan Mats
6d ago
Stop Using Booleans Everywhere — Use Union Types Instead
Three booleans create 8 possible states — most of them impossible. Here's how Boolean Blindness causes real bugs in every language, and why union types eliminat

Dev.to · Maryan Mats
6d ago
Render Props Are Not Dead — React Hooks Didn't Replace What Actually Matters
Hooks replaced render props for logic sharing — but not for rendering control, inversion of control, or component architecture. Here's why I still use render pr

Dev.to · Maryan Mats
6d ago
You Don't Need Zustand: useSyncExternalStore Is All You Need
Build a type-safe React store in 30 lines using useSyncExternalStore — the hidden hook behind Zustand, Redux, and Jotai.

Dev.to · Maryan Mats
6d ago
Why I Stopped Building My JavaScript Framework After 1,500 Lines of Spec
I spent months designing a web framework with a 1,500-line specification, elegant compiler transforms, and a genuine shot at improving frontend development. The

Dev.to · Maryan Mats
6d ago
I Built a Reactive Compiler for JavaScript — Here's Where It Broke
When should a reactive variable behave like an object and when like a value? This question led me through compiler theory, TypeScript hacks, hydration nightmare

Dev.to · Maryan Mats
6d ago
I Designed a Web Framework That Replaces React Hooks With Two Imports
I spent months designing a web framework that combines signals, compilation, and islands into two imports. Here's the vision, the technical rabbit hole, and wha
DeepCamp AI