Web Development

A Well-Designed JavaScript Module System is Your First Architecture Decision

Writing large programs in JavaScript without modules would be pretty difficult. Imagine you only have the global scope to work with. This was the situation in JavaScript before modules. Scripts attached to the DOM were prone to overwriting each other and variable name conflicts. With JavaScript modules, you have the ability to create private scopes

A Well-Designed JavaScript Module System is Your First Architecture Decision Read More »

The Radio State Machine

Managing state in CSS is not exactly the most obvious thing in the world, and to be honest, it is not always the best choice either. If an interaction carries business logic, needs persistence, depends on data, or has to coordinate multiple moving parts, JavaScript is usually the right tool for the job. That said,

The Radio State Machine Read More »