← Graph

One file rules them all

takeaway 2 connections

Seth Horsley's rationale for choosing Phlex over ViewComponent: with Phlex there is one Ruby file per component that handles both view and logic, versus ViewComponent's split between a `.rb` class and a sibling HTML template. Two paths of logic are harder to maintain than one.

type
recommendation
takeaway One file rules them all
about
Phlex tool
Describes Phlex's single-file component style.
takeaway One file rules them all
from_talk
Seth's reason for preferring Phlex over ViewComponent.

Provenance