
Marco Roth
American editor
2
APPEARANCES
2
PODCASTS
012
DEC 30
JAN 6
JAN 13
JAN 20
JAN 27
FEB 3
FEB 10
FEB 17
FEB 24
MAR 3
MAR 10
MAR 17
MAR 24
MAR 31
APR 7
APR 14
APR 21
APR 28
MAY 5
MAY 12
MAY 19
MAY 26
JUN 2
JUN 9
JUN 16
JUN 23
JUN 30
JUL 7
JUL 14
JUL 21
JUL 28
AUG 4
AUG 11
AUG 18
AUG 25
SEP 1
SEP 8
SEP 15
SEP 22
SEP 29
OCT 6
OCT 13
OCT 20
OCT 27
NOV 3
NOV 10
NOV 17
NOV 24
DEC 1
DEC 8
DEC 15
DEC 22
DEC 29
JAN 5
JAN 12
JAN 19
JAN 26
FEB 2
FEB 9
FEB 16
FEB 23
MAR 2
MAR 9
MAR 16
MAR 23
MAR 30
APR 6
APR 13
APR 20
APR 27
MAY 4
MAY 11
MAY 18
MAY 25
JUN 1
JUN 8
JUN 15
JUN 22
JUN 29
JUL 6
JUL 13
JUL 20
JUL 27
AUG 3
AUG 10
AUG 17
AUG 24
AUG 31
SEP 7
SEP 14
SEP 21
SEP 28
OCT 5
OCT 12
OCT 19
OCT 26
NOV 2
NOV 9
NOV 16
Nov 13, 2026
Marco Roth: Teaching Rails to Read Its Own Template
M
10:17Marco RothGUEST
So initially, this whole kind of journey started with me working on an application for my company that I was working for.
M
10:24Marco RothGUEST
It was me independent working for a actually gardening company trying to build this appointment system for them, kind of schedule software.
M
10:32Marco RothGUEST
It had to integrate with all the Swiss kind of local registries and tax and stuff.
41 MINS LATER
Episode 555: Herb and ReactionView with Marco Roth
M
6:14Marco RothGUEST
[laughs] Yeah, I mean, I've been doing some React over the years too, and it- One of the nice things I think about React is that you have to write your components in React obviously, but the way you kind of have the state being managed by React itself, you don't have to go in and add a Turbo Stream to say, "This ID on this page needs to be replaced with this new content." You just tell it, "This is the new state," and React itself figures out how to reflect these changes, what it has to re-render, what it has to look at and fetch more data.
M
6:48Marco RothGUEST
And that's kind of one of the powerful things about React I think is kind of undervalued in what we have been doing in Hotwire, because you have to specifically say, "This part of the page in this Turbo frame, I wanna have this part reactive or refreshable." And then I have to go and expose a different endpoint if it's on the same page, or look at these matching IDs so the Turbo frames match, otherwise you get the content missing.
M
7:15Marco RothGUEST
And if that doesn't work for you or you wanna break out of the frames, you have to go and use streams.
M
7:22Marco RothGUEST
You have to write this code to say, "I wanna rerun this part and update that part of the page," but it's all kind of manual that you have to do that.
M
7:31Marco RothGUEST
And that's what I was kind of trying to get at in with this whole Reaction View, is to have the compiler of the Herb engine figure out all these dependencies statically, like using static analysis to figure out what actually is this view doing, and how can it reflect the changes.

