MMMihai Marinescuinfeaturingcode.com·1d ago · 37 min readEver wonder how real-time collaborative editing actually works?One walkthrough of the whole real-time layer of a collaborative document editor — the merge, the transport, the editor, and the persistence — built by hand on Y.js to actually understand it. Code refe00
MMMihai Marinescuinfeaturingcode.com·1d ago · 16 min readReact recursive componentsHow a recursive JSON editor keeps track of itself Find the app deployed here and the code here. The app is two panes. On the left, you edit a tree of key: value rows. On the right, the JSON updates as00
MMMihai Marinescuinfeaturingcode.com·2d ago · 15 min readNew react callbacks memoization patternHow to stabilise a memo component when everything else fails memo looks simple until you wrap a component in it and it re-renders anyway. So here is the question underneath this whole pattern: How do 00
MMMihai Marinescuinfeaturingcode.com·5d ago · 42 min read2FA - the gold standardAfter going through auth core of my pet project (redline) — sessions, login, Google sign-in, email verification, password reset — built on vetted primitives and explained line by line so a human could00
MMMihai Marinescuinfeaturingcode.com·5d ago · 72 min readAuth from scratchWith all this fire and forget vibe coding around, it's time for some back to basics so here is a Claude generated authentication for my pet project (redline), but written in a maintainable and secure 10