SG Sam Goodwin On Syntax (Wes Bos & Scott Tolinski)

“I would not write code this way, but AI doesn't care. If you can constrain it into thinking about state machines and pure functional programming, it will scale a lot further than tangled-together code that has no structure or reason to it.”

Syntax (Wes Bos & Scott Tolinski) · Hands-On Engineering Podcasts · December 2026

“I would not write code this way, but AI doesn't care. If you can constrain it into thinking about state machines and pure functional programming, it will scale a lot further than tangled-together code that has no structure or reason to it.” — Sam Goodwin, Syntax (Wes Bos & Scott Tolinski)

Context

Plugging a front-end framework built from pure functions and state machines, Goodwin argues that code that feels unnatural to humans can be better for agents to write.

Transcript

Syntax (Wes Bos & Scott Tolinski) Around 52:39 into the episode
Sam Goodwin

…and it's pure functional programming, a state machine. It's nothing like React and Solid, which are awesome frameworks themselves. But I think the fact that it's different and like humans wouldn't do it traditionally is actually a signal now. I think that's a higher signal. So I shut up, Foldkit.

Wes Bos

We were talking to Michael about FoldKit and I was like, I was like, so like, is it JSX? He's like, no, it's functions. I was like, oh, so like tag template literals. No, he's like, it's functions. It's functions all the way down. It's just functions. Which is so

Sam Goodwin

good because it's crazy. Like JSX, as much as I love it visually from a tooling perspective is actually annoying. Like it's hard to build an embedded UI because of JSX and because of React and all that sort of thing. So, like, if we could just throw all that away and just have functions, that's great. And yeah, I would not write code this way, but AI doesn't care. You know, and AI, if you can constrain it into thinking about state machines and pure functional programming, it will scale a lot further than thinking about tangled together, you know, code that has no structure or reason to it. So it's functional programming is where it's at. You know, we've known this for like a hundred years now. It's not like it's news to people. It's just that the skill ceiling is the skill floor is just so high now. That's the difference.

Wes Bos

Beautiful. Cool. Well, thank you so much for coming on. Appreciate all your time. I'm very much excited. I'm going to build my next thing in alchemy and also going all in durable objects. That's

Sam Goodwin

the way, man, for sure. Yeah. All in on effect and durable objects. Like when you mix the two, it's gorgeous.

Wes Bos

It's dangerous. Cool. All right. Thanks again, Sam. Thanks.

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.

More from Syntax (Wes Bos & Scott Tolinski)