Search⌘ K
AI Features

Designing Around Client Logic & Patterns of Web Applications

Explore how to design client-side logic in Rails web applications, balancing server-side and JavaScript responsibilities. Understand key patterns for managing state and user interactions, and how to apply these concepts to create richer, more interactive web pages using Rails and JavaScript frameworks.

Designing around client logic

As a web application begins to act more like a desktop application, the application starts to maintain a lot of state and logic that only pertains to the user interface. It doesn’t always make sense to manage the client-only information and logic on the server, and so JavaScript applications in the browser become more and more complex.

The user interactions managed by JavaScript are not, by and large, effectively modeled as CRUD resources. Single page app JavaScript frameworks have different concerns, and as a result have structured themselves quite differently than server-side Rails applications (you see this ...