Building Systems Alone

How working as a solo internal engineer reshaped my architectural thinking.

Early Architecture Attempts

The pragmatic early design that predated Cotomy: PHP routing, template friction, and the first DOM-wrapper impulse.

The First DOM Wrapper and Scoped CSS

How ElementWrap emerged from jQuery migration and CSS collapse, and how scoped styling reshaped my UI architecture.

API Standardization and the Birth of Form Architecture

How unstructured API calls became the next bottleneck, and how form classification reshaped my TypeScript foundation.

Page Representation and the Birth of a Controller Structure

How I struggled to bind logic to individual pages, and how controller classes gradually gave my TypeScript library framework-like properties.

The CotomyElement Constructor Is the Core

Why the constructor overloads capture my real design intent: locality, scoped CSS, and practical DOM ownership.

Dynamic HTML Boundaries in CotomyElement

How I handled dynamic HTML input in CotomyElement, where parsing breaks, and why the boundaries became strict.

Reaching Closures to Remove Event Handlers Later

The problem of removing event handlers when closures change function identity, and the pragmatic registry solution inside Cotomy.

The Birth of the Page Controller

Why page-level control became necessary and how the first PageController design appeared.