Rails Business
Brendan Buckingham and Ryan Frisch talk about developing with Ruby on Rails and how to leverage it to build a business.
Rails Business
Do Pull Request Reviews Still Matter in the Age of AI?
Use Left/Right to seek, Home/End to jump to start or end. Hold shift to jump forward or backward.
The hosts once again discuss the recurring theme of AI’s impact on development workflows. They discuss various topics, including:
- Increased PR volume from AI-assisted coding and whether traditional pull request reviews are still necessary.
- Should AI be used earlier for pre-PR review and stronger CI guardrails for performance and security.
- What is the role of automated testing, and are they even more important as code generation accelerates?
01:05 PR Reviews Under AI Load
02:38 What PR Review Is For
05:02 Human Review What Remains
08:36 AI Pre Review And PR Purpose
11:01 Guardrails CI Performance Security
12:39 TDD Tests As Behavior Spec
15:53 AI Versus Automation In Pipeline
19:17 Testing Evolution Unit Vs System
20:32 Feature Specs And Functional Review
21:35 Bugs vs Defects Focus
23:37 Smoke Tests for Upgrades
24:44 Controller Tests Debate
27:40 Test Pyramid and Frontend Gap
28:37 Refactoring for Unit Tests
30:57 AI Coding Raises Review Stakes
34:00 Claude MD Friction
35:54 Wrap Up and Testing Habit
LINKS
- Justin Searls Podcast
- Working Effectively with Legacy Code Book by Michael Feathers
- Professional Rails Testing: Tools and Principles Book by Jason Swett
- Ryan's Website
- Brendan's X/Twitter
- Brendan's Bluesky
Questions or comments, email us at railsbusinesspod@gmail.com
Hey man, how's it going?
Brendan:Pretty good. How about you?
Ryan:Good, good. so pre-show we were sitting here probably longer than we normally do trying to figure out what the heck we're gonna talk about today.
Brendan:Yep. Yep.
Ryan:of feels like maybe we've hit that, uh, we've been recording now for a little over a year, and we've run out of-- we've hit that first wall where we feel like we've talked about everything, and lately it's been talking a lot about AI. Um, pretty much because that's what everyone's talking about, I guess. It's consuming all of our mental power. Um, you know, so we're-- I, I, I think we're gonna do a little bit more of the same. We're gonna hopefully try to steer the conversation into a direction where maybe we talk about some non-AI stuff, although I think it's all gonna be tangential. Um,
Brendan:Yeah, definitely.
Ryan:but, but let's just see where we go. So what was on your mind today?'Cause you're-- I'll let you set the stage.
Brendan:Yeah, I mean, I guess one of the things I've been thinking about a lot, and I've been doing a lot of AI code review. We've talked about that quite a few times, but I don't… It doesn't feel like I'm getting ahead, and if anything, I'm getting behind because of more code being written by AI, more PRs being opened. And to me, there's a question, I guess, of am I not doing it right or is there like other optimizations or other things I can do to help with that? And I'll even throw it out there too that I happen to be listening to, uh, Justin Searls' podcast again, his, his like last episode from a couple weeks ago. And near the very end of it, someone asked him this kind of question and like, "What do you do? How do you feel about, uh, you know, just reviews in general?" And I didn't know this until now, but he apparently never liked pull request reviews, and he had a lot of reasons. You can listen to that episode. We can link to it. But that also kinda got me thinking like, well, what is the thing that I would-- did I really care about? It's really the functionality, and that's kinda his point. It was like, as long as you actually use what was built, it's doing what you want it to. I mean, obviously you don't want bugs, but if overall it's doing what you want it to do, it's not breaking anything, like what… And i-if, you know, if that's without any actual pull request review, you know, it's just functional review or QA type of review, like what, what is the reason we are doing pull request reviews? Maybe we don't need them anymore, I guess, with AI being able to look at the code. So it's ju- that's just something I thought about.
Ryan:l-l-let's break this down, right? And try to figure out why you think you need a PR review,
Brendan:Yep.
Ryan:right? Like what are the… When you-- If you were to do this in the manual way, the old way,
Brendan:Yeah.
Ryan:it's your job as, you know, manager to code review your peers' stuff, what would you be looking for?
Brendan:It's a good question. I mean- It kind of depends on the person, I guess, right? It's like if it's someone that…
Ryan:let's, let's, let's just say that, that, uh, if you had a checklist of things,
Brendan:Yeah,
Ryan:gonna be a little bit different for every person depending on their skill level, seniority, they've been with the company in the app, you know, all those things, right? Let, let's give that as given. But, you know, there's gotta be a, a subset of things that you're always looking for or, or on the lookout for.
Brendan:I mean, part of the reason why I'm struggling to answer it is because I don't feel like I have a good definition ever. And a lot of the definition came from things that linters can pick up or things that, you know, AI at this point can pick up. Now, I mean, there is definitely things like… I guess what I'm still trying to struggle with here is like, is it just the functionality? At the end of the day, like I wanna make sure what's built, what I'm reviewing in a pull request is the right thing. But I don't necessarily know that unless I've…
Ryan:mean?
Brendan:Like what I, what the ticket is asking you to do, right?
Ryan:Okay.
Brendan:So,
Ryan:is behavioral.
Brendan:correct. Right. And it gets back to the functionality stuff I was talking about a couple minutes ago. It's like that's the first barometer of like, is this pull request even worth spending my time on? Or did they completely build something in a way that doesn't make sense and it already has to be kicked back?
Ryan:Well, I would argue that if you're using a pull request for that function, you've sort of already failed,
Brendan:That's fair.
Ryan:Like, right, like, 'cause the pull request at that point is, you know, is like… maybe that's a bit harsh. I'm, I'm
Brendan:I
Ryan:out of my
Brendan:it…
Ryan:But the, the concept is by the time it gets to PR, it's like, "Hey, this is my final review before I merge," right? Sort of thing for me, Right. It's like, it's the last step I do. I'm like, "All right. I'm gonna, you know, scan through this and make sure I didn't miss something," right? I don't think of some other edge case or something, you know, whatever, right? So like
Brendan:Yep.
Ryan:I look at the PR review, I'm
Brendan:Yep.
Ryan:I'm, I'm usually not looking at functionality, like with a fine-tooth comb. Like at that point it should have already been tested. There should be some tests. I mean, that's getting easier with AI,
Brendan:Yep. Yep.
Ryan:should pass. It's gone through CI, everything's green, right? Like y-you know, i-if your CI is set up with linters and the, the code formatting is good. So now it's like, what's left? It's like, all right, I'm, I'm scanning through, and especially with AI, I'm looking for, right, does this follow the convention we use, right? That wouldn't be caught by a linter. Like I'm not talking code formatting. I'm, I'm commenting like design system, you know, where we store files, the naming conventions we use. I'm looking for like the, the failure points in a deploy, like migration, right? I, I did one yesterday like, all right, you know, because of I used AI and I was going through the process and we were iterating and, and going quickly Well, in this particular feature, uh, think of it was more of a spike to start, right? So I was like, "All right, build this table." And then I did a whole bunch of other stuff, and then I realized I didn't need that table.
Brendan:Yep.
Ryan:Yeah. I just told, I just, you know, I just, I just told AI to do it. They did-- I didn't look at that closely as I was coding, but I realized we had a migration to create the table, edit the table, and then drop the table in the same branch,
Brendan:Right. Yep.
Ryan:was like, "All right, well, that, that needs to be cleaned up. That, that code shouldn't be shipped," right? And AI didn't catch it. linter is not gonna cat-- I don't have a linter, but a linter wouldn't catch that,
Brendan:Right.
Ryan:right? So I'm looking at things like that, high level domain, and then, you know, failure points, and then I'm looking at, you know, the last piece of it would be, all right, I know where the complex parts of our app are, right? So like, if I see something touching those complex parts, I'm gonna dive in and maybe go line by line,
Brendan:Yeah.
Ryan:sure I really understand what I'm committing. but if it's a simple credit interface, like I'm not, I'm not reading the index file and the edit file and the form file and the, you know, the, you know… I'll scan the route because that's important entry point, but
Brendan:Yep.
Ryan:not spending a ton of time on that, right? Like, but if I get to like our God model, and I was like, there's 60 lines of code change, I'm like, "Okay, this might be a little suspect." Or, you know, I get to that ugly controller that we all have that is more functional than OOP, and it's like, I'm not sure we handled every, uh, branching logic piece of this here, right? Like, how does this cascade down? I'll spend more time on that. But that-that's what I do in a PR review and, you know, sort of led yourself to the, what I was hoping you'd get to, which is, um, you know, I'm not sure they're actually necessary, right? Like
Brendan:Yep.
Ryan:certainly wouldn't use AI for it, but
Brendan:Mm-hmm.
Ryan:I, I still think there's value in, the, you know, human review. But now it just, it, it gets back to the heart of your question, which is, I've got more volume coming in.
Brendan:Right.
Ryan:time before to review it, so how do I make it better now without falling behind? And that's, I think that's a different question
Brendan:Yep.
Ryan:than, you know, should AI do PR review? In, in my opinion, no, right? You can have AI review it before the PR review
Brendan:Right.
Ryan:you want, and maybe that's a distinction without a, a, a, what's the phrase? Uh,
Brendan:I,
Ryan:problem
Brendan:what you're going for, but I can't think of it.
Ryan:distinction.
Brendan:yeah, there you go. Problem without a distinction. Yep. Yeah, I mean, I-- that's a good point too,'cause, like, one thing that I've asked every developer on my team to do now is to, um- Before we even get to the point where you are opening a pull request, I'm telling them to do a code review with Claude or whatever AI they're using. We're all using Claude right now, but… So to your point, like that should be done already. Now, AI is non-deterministic, and so maybe if they do a code review and they fix things or they leave things, and then I do a code review, maybe I will find something new. But I've actually seen quite often when I do that sort of thing, and, and this is a little bit of a tangent, but I've actually started using Codex and Claude because we have both. And so sometimes I'll have like Codex review Claude's code, and sometimes I'll actually do like both of them do a review just to see like, are they the same? Are they different? So far, they're pretty close. They're pretty much doing the same thing. But I mean, I, I definitely take your point, though, that like with AI, why wait till the pull request to do that? And that is something I'm kind of pushing on, which is a great point. Like what-- Then what is the reason of having a pull request at that point, besides just a way to merge the code in?
Ryan:Does it have to be that? I mean, I, I like just having a interface that shows me the diff
Brendan:Yeah.
Ryan:can show me in one place that it's past CI and that I can leave a comment if I need to. I mean, I don't know if we need to overthink this. I, I always come back to… You know, I feel like there is-- Like, if we were in a fully autonomous system, right, where the expectation was I give it a problem, and I just say, "Go and do it,"
Brendan:Yep.
Ryan:well, then, then I can see the value in having an AI code review, right?
Brendan:Right.
Ryan:And ideally, it is a, a completely separate model, like you said. Like, you use Codex for the PR review versus Claude or vice versa. It doesn't really matter, right? Or just any other thing, right? But
Brendan:Yep.
Ryan:At, at the very least, a separate session that has no context.
Brendan:Right.
Ryan:Um, that I kinda get, but that's not what we're talking about, right? There's still a human element here, right? So maybe the PR is just the interface where, you know, we, uh, still insert ourselves until we feel comfortable otherwise. And maybe that's not a good reason, but good enough for me, right? Like, I feel like… I think that the real harness isn't the PR review, Yeah, like, I would like better guardrails in CI or PR review, whatever you wanna call it. Kind of the same thing, r-right, from an AI standpoint. But I would like better guardrails to do things like always review the PR for performance problems, N plus ones, high memory allocation, missing indices, and if found, go and submit a, uh, a commit to fix it,
Brendan:Yeah.
Ryan:Like,
Brendan:Yep.
Ryan:that feels like it would be useful in CI/PR review. I'm gonna use those interchangeably'cause, like, I feel like they almost serve the same purpose in, in, in this context. I would like to be like, "Hey, review this code for security against known vulnerabilities and just fix them or suggest fixes." None of that actually requires AI, right? Like, I
Brendan:Yep.
Ryan:mean, you want them to do the work, yeah, you, you'll need a, a, you know, some sort of agent to do so, right? And that would require AI. But the identification is not an AI need, and I think that's where we're falling short with our setups, is that, you know, those things should happen-- We want those things to happen. They should happen, and we want them to happen more autonomously, so that by the time it gets to what I call a PR review, a human PR review, until there is better trust, right? Like, by that point, I want all of those issues resolved. And then the last piece of it, of course, is like… And, and I'm not actually convinced of what I'm about to say yet, but it's something I think about, right? Is like, should, you know, even if we're using AI agents, should we be following TDD at this point?
Brendan:Yep.
Ryan:Um,
Brendan:Yep.
Ryan:right now I don't, but I do try to write a test for every piece of code now that I commit. Now, when I say write, I say, "AI, add test for this based on our conversation."
Brendan:Yeah.
Ryan:That's something… You know, I'm a one-person shop, so I use the PR diff to review the test suite. But ideally, if I was on a team, I would review that before it got to that stage, so it's sort of irrelevant. But, like, I spend more time reviewing the tests than I'd probably do reviewing the code. Um, and that is to-- AI is still real crappy at sort of defining behavior instead of function,
Brendan:Right.
Ryan:and I'd have to correct it nonstop, which is annoying. But, like, I wanna be able to read the test file and know exactly what I'm testing, and then I wanna make sure that that test is actually, like, testing the thing that should be tested and not, like, a bug, right?
Brendan:Yeah. Right.
Ryan:you know, so I, I think if… I feel like my ideal flow, which I don't use because I haven't had time to figure it out, would be to, like, write the spec, like empty specs with all the requirements, then go through my AI loop, then hit CI and be like, "All right,
Brendan:Yeah.
Ryan:make sure I didn't do something stupid that's gonna take my app down or to a crawl," Performance, security, um, type things. And then final step, you know, human PR review for the things I mentioned before. Like, I know my app better than you do, right? I know where the
Brendan:Right.
Ryan:are. I know our style. I know the edge cases. I know that more than an AI is going to for now. Um, that, that feels like the flow that I want, but I don't think the harness exists to do that yet.
Brendan:Yeah. Yeah, I mean, I, I think that all makes sense. Um, you know, one, one thing it's also making me think about, just this conversation in general, is like we, we should be challenging the things that we're doing anyways, um, especially PR reviews or, or things that do we really need this to happen? I, I think the answer is yes in both of our opinions still, but to varying degrees, obviously, ba-based on what we just talked about. Um, I, I would say one thing about, you know, that flow you were talking about. T-to me it's like part of me thinks do we, like do we even need CI? Like, that could come before CI potentially. And then the other part of me is thinking, well, if you're not doing TDD, then it makes it harder for the AI to know when it's actually done. So just, just a couple things. I don't know if you have anything you wanna add there, but…
Ryan:Well, all right. This is something I struggle with, with language, right? It's like we use AI with the hand-wavy, like, to mean a lot of different things, right? And I think the, um… What a lot of us do is we conflate AI with automation.
Brendan:Yeah.
Ryan:Right? Now, yes, they're very closely related in many cases, and in, you know, a perfect world, they work together. CI is more about automation,
Brendan:Right.
Ryan:could, you know… It may do it slightly better than the alternative,
Brendan:Yep.
Ryan:what cost, Right. The cost of, like, using AI to do this would be astronomical because it's like, first of all, like, you don't need a large language model to solve that problem. It's been solved for years. People have been doing it forever, right? Like, you know, calendar scraping, perfect example, right? Like, could you use AI to do calendar scraping? Sure. need it
Brendan:Yep.
Ryan:Right? There are places you can inter-interject it to make it better, certainly,
Brendan:Right.
Ryan:right? But I don't want AI, you know, parsing the DOM.
Brendan:Yeah.
Ryan:a waste of money
Brendan:Yep.
Ryan:Like, and it's only gonna get worse. So, you know, there's things like that, and you can apply that to, to all sorts of things. But in the, in the context of, you know, code deployment pipeline, right? Separating needs to be automated to save me time, and what does AI need to-- what, where do we need to interject AI to make us, you know, more efficient, quicker, um- Smarter, right? But like, you know, security and performance stuff. Well, security, you probably don't need AI at all, right? There's known vulnerabilities. GitHub does a pretty good job of that anyway, right? If you're using actions, is a little bit trickier because you do gotta read the code, so you probably have to interject AI to like analyze for N plus ones and other things, right? But it's connecting the automation to the agent when it makes sense is, I, I feel like something that we haven't… Because of the language and the way people talk about it, I think it's overlooked a lot. Um, yeah. I mean, I don't know if I have too much else to say on the topic. I, I, I feel like the-- just not there yet. Um,
Brendan:Right.
Ryan:but I think we do get there, right? I just, uh, just I, I don't know if I'm gonna be the one to figure it out. I'm sure there's gonna be some real smart people that will, and I'll just, you know, try to learn from them, um, when the time comes. But the testing piece has always felt like a no-brainer to me, and I felt that way before, right? The, the challenge before was just that I had to learn testing,
Brendan:Yeah.
Ryan:a new piece to the equation, and that was hard. AI certainly accelerates that, uh, fairly significantly. So, um, you know, interestingly on that front, right? Like when I first… You know, three or four years ago, when I first started trying to like really get into testing, right?'Cause when I taught myself, I just, I sorta poo-pooed it and, you know, ignored testing, and then I got to a point where I was like, "All right. I, I understand the value of testing, but now I've gotta learn essentially a whole new language and way of thinking."
Brendan:Yep.
Ryan:Um, and I've worked with some really smart people like Jason Swett on that, you know, because of the complexity of our code base, you know, we sort of started with, you know, browser system tests, and that felt like the, the path at that point pre-AI. It's like, all right, this is the fastest way for me to add testing to my app and get coverage, right? Just like test what the user experiences
Brendan:Yep.
Ryan:and, you know, sort of go the smoke test route. interestingly, as of late, I almost never write a systems test. I'm pretty much unit, unit or controller only. Um, don't know if that's good or bad at the moment, just an observation. Uh, but a lot more unit tests, and I feel good. Like I can understand the unit tests. I always felt like I could understand the unit tests. Some of the other ones were harder for me to wrap my head around.
Brendan:Yep. Yeah, that's, that's interesting because, like, one thing that I keep thinking about is if I did have more feature specs, smoke tests, whatever you wanna call them, like, would that make the functional review easier? I, I don't know. I don't have a good answer to it, 'cause I f- I feel like there's always gaps there too. It's not like it's a one-to-one where if I write a feature spec, it's gonna be exactly all the things that I'm gonna test. Could I add them in? Sure. Would AI make that easier? Maybe. I don't know. Um, I actually haven't written too many feature specs with AI either, so…
Ryan:Yeah, I, I think having core paths covered by feature would be useful purely for peace of mind,
Brendan:Yeah. Basically regressions, right?
Ryan:well, yes and no. Like, unit tests are gonna be better at catching regression tests, uh, uh, issues, I think, right? Assuming
Brendan:if it's in the UI or not, I guess. That's one argument, but…
Ryan:right? Like, but I've never… I mean, outside of having, needing JavaScript to execute
Brendan:Yeah.
Ryan:you know, for the feature test to pass, I don't really test the UI, you know, the design interface view layer much.
Brendan:Yeah.
Ryan:components, like there's nothing to test there, right? It's largely a CRUD app or, you know, a, you know, a website
Brendan:Right.
Ryan:know, yeah, like there's gonna be regressions there in, in styles perhaps, but like those are really hard to test anyway, right? So like I'm, I'm not worried about that. Like I'm worried about, I don't want the whoop screen, you know,
Brendan:Yeah.
Ryan:screen. I wanna make sure, uh, you know, I'm not taking the app down from a performance problem, so that's more observability than it is from testing.
Brendan:Yep.
Ryan:And, you know, if I have comfort that, you know… Again, we t- we talked about this a long time ago, right? The difference between a bug and a defect,
Brendan:Yeah,
Ryan:I don't want a bug. I d- I don't want a defect either, but it's not catastrophic if there is one, Right. And that, that's the distinction I'll make is that I want my testing to catch the bugs. You know, uh, things that are, you know, screwing up data, crashing the app, th- those sorts of things that are harder to recover from. I care less about like a, you know, a design defect in the, in the sense that this feature that we built, uh, you know, a user wants to use it in a different way,
Brendan:Right.
Ryan:Right.
Brendan:Yep.
Ryan:Well, it wasn't built that way. It may be a very valid idea that you have, and maybe we do need to change it to meet you, uh, you know, and how you approach the problem, but not a bug, Right. Like
Brendan:It's not gonna get caught for pull request review or any of that kind of stuff. Yeah. Yep.
Ryan:So, you know, there's a distinction there too, but yeah, I don't know. Like I, I have a to-do on my to-do list to be like finish, like I started writing smoke tests,
Brendan:Mm-hmm.
Ryan:tests for You know, the very reason of like, hey, we're going through-- we were going through a bunch of Rails upgrades, and I was doing it all manually and testing the entire app end to end every upgrade and,
Brendan:Yep.
Ryan:the Ruby upgrades at the same time. I must have, you know, over eight months, I must have done a full like QA run,
Brendan:Yeah,
Ryan:times,
Brendan:been there.
Ryan:or seven hours.
Brendan:Yep.
Ryan:Like, just having to be able to hit a button and be like, "Just tell me if anything breaks here," right? Like,
Brendan:Yeah.
Ryan:I still think that's valuable, and I wanna finish that so that, for that,
Brendan:that's, the regression part that I was talking about, I
Ryan:Yeah.
Brendan:Like, having those kind of tests where if a page just doesn't load anymore because of an upgrade or who the hell knows why, but, like, something else triggers it. That… Those are the things that it's not gonna solve everything. It's not gonna test the new feature, but it's gonna at least make sure that nothing is broken that wasn't broken before. And I, I think that-that's where I, that's where I differentiate with, like, a unit test isn't necessarily gonna catch that. Maybe a controller test would catch some of that stuff. You know, it's hard…
Ryan:here, here's the thing I debated with, with Jason when we were working together,
Brendan:Okay.
Ryan:Uh, he, he's, uh, I don't wanna put words in his mouth, but if I remember this correctly, he's less of a fan of controller tests, right? He either wants to be unit or feature, right? Like,
Brendan:I've heard a lot of people like that, but I've also heard him talk about
Ryan:like--
Brendan:Yep.
Ryan:maybe that's, maybe that's not accurate. I don't wanna put him in a corner there. If I've got that wrong, I apologize, but
Brendan:us know.
Ryan:yeah, I'm sure he will. Um, you know, I, I always thought it's like, all right, should I write tests, you know, for the purposes of like upgrades, right?
Brendan:Yep.
Ryan:tests that just assert that every controller action returns 200,
Brendan:Yeah. Yeah.
Ryan:right? Well, I think his argument was, well, that leaves, uh, you know, a whole part of the stack out, right? So, like it could return 200 and still,
Brendan:Yep.
Ryan:a, a big problem, although harder to articulate that, uh, as, if you were to put me on the spot, right? So, like I, I've always ebbed and flowed between the two things, right? Like, you know, assert 200 or, you know, whatever response I'm
Brendan:Right.
Ryan:then you know that at least that part of the stack is working.
Brendan:Right.
Ryan:Um, yeah, I don't, I don't know. I mean, there, there's gotta be something to, to unit test as the main thing because, you know, that's the, you know, the new DHH way, right? Is, you know, heavy unit tests, minimal other tests,
Brendan:Right.
Ryan:right? So, like unit tests have to be pretty decent at finding regressions too Although I, I assume the caveat is you have to have well-defined, uh, edge, you know, uh, APIs, right? Edges to your,
Brendan:Yeah.' ryan_1_04-16-2026_131112: Cause Like, that, that's where we all g- I think get in trouble and why we reach for a feature test over a unit test is because our code maybe isn't organized, uh, in a way that allows us to unit test effectively, in all cases. Yeah. I, I'm seeming to remember that this also, this principle came from, um, Working with Legacy Code, I think is the book,
Ryan:Mm.
Brendan:and it's, it's not like a Rail-specific one, book, but I believe he also talked about, you know, if you have legacy code that has no tests and you wanna test it, like that is a good place to start for the same reasons you've kind of already talked about, just like it gets you the, the most coverage with the least amount of work.
Ryan:You mean, you mean start with feature tests?
Brendan:Yeah. Did I say some… Did I say unit?
Ryan:well, you didn't say anything, so
Brendan:Oh.
Ryan:I'm just clarifying for our listeners.
Brendan:Yep. Yep. Thank you. Thanks for catching me there. Yeah. No, feature specs is what I was talking about. Yeah. So like… But, but then like, you know, if, if you're building though from scratch and it's not legacy code, then there's the argument to, I guess, have like the, the pyramid, right? Where like you have more unit tests and less feature tests, and you have some of the, some of all the different kinds in the middle, but they kinda go in a pyramid less and less as you go up the stack. Um, you know, one thing I was also thinking about though is like w- for, for my app at least, it's a React front end and a Rails back end, so it does feel like the unit s- tests are not gonna catch… Well, it's not gonna catch anything in the JavaScript in the React, right? So that's one argument, and, uh, now granted there should be an argument that like why aren't we doing unit tests for the JavaScript, which you can do, but like we're also not doing those, so it's like…
Ryan:That was gonna be my next question, right?
Brendan:Yep.
Ryan:yeah, I mean, it, it depends on your architecture, right?
Brendan:Right.
Ryan:Right. But I mean, that, that's what I mean. You know, one, one thing I'm doing more and more of is, is just sort of using poros for, you know, non-Active Record models, right?
Brendan:Yeah.
Ryan:Um, you do that, know, A, it becomes easier to find public versus private API.
Brendan:Right.
Ryan:It also becomes way easier to unit test that in isolation,
Brendan:Yep.
Ryan:right? The areas that I have to reach for a feature spec on right now in my app are the ones where naively earlier on in my development career stuffed everything in the controller, right? Like, it's like a procedural soup,
Brendan:Yeah.
Ryan:Right.
Brendan:there's no way to, yeah, break it out, test the individual…
Ryan:you, can, but it's hard to… Like, you're not doing it in a TDD way most likely, Right. Like, I know there are the purists out there that could say, "Yeah, you can go from there, you know, from a control-- procedural controller adding tests, and then, you know, red, green, all the way to, you know, a more, uh," I don't know what the right word is, "a, a different way of
Brendan:Yeah.
Ryan:code that does the same thing that is more object-oriented." Um, I'm never gonna do that.
Brendan:Yeah.
Ryan:not gonna happen, right? I'm gonna look at the
Brendan:I've got controllers just like that. Yep.
Ryan:gonna, I'm gonna rewrite it. It's gonna be a rewrite,"
Brendan:Yep.
Ryan:I'm gonna take what I knew, and I'm gonna rewrite it, and I'm gonna manually QA it, and then I'm gonna add the, the tests. Ideally, I'd TDD that, but I'm not… I don't do that. So, you know, maybe one day I'll get to that ideal. I think it's a good ideal. I just, I'm
Brendan:Right.
Ryan:There's, there's, there's like four controllers in our app that I'm just like, I've tried to refactor about a million times, and eventually I'll get there. But, um, you know, either run out of time or it goes in a direction that I can't recover from and I have to start over. Um, more often than not, I start and then get pulled away for three months, and I come back and I can't remember where I was. Um, you know, that's both easier and more difficult with AI these days. Um, yeah, I don't know. T-testing is one of those things where like I'm, I'm actually feeling good about testing right now,
Brendan:Yeah.
Ryan:but, you know, it, it feels like I'm back on my original developer journey where I was like, all right, I didn't know anything. I struggled for a long time. Then I felt like I was getting competent, and then I realized eventually that I was like, I still don't know anything. And then you sort, you sort of slowly level up. I feel like I've hit that first level-- I'm about to hit that first level up with testing where like I'm feeling really good about where I'm at with testing, and gonna realize, well, I just created all this technical debt that now needs to be cleaned up. And right now I'm just sort of blaming AI for it, right? But, um, you know, it's interesting, right? There's… I think there's gonna be a couple of those levels, you know, where there's-- it's coming with AI. For me, it's gonna come on testing'cause it's still new enough.
Brendan:Yep.
Ryan:Um, and I'll, I'll it all the way back to the original thing, right? Which is, that's why I have PR review,
Brendan:Right.
Ryan:is to catch those things that I know that I'm probably maybe looking the other way a little bit more than I should with AI as I'm, you know- Going through the agentic loop, um, even though I watch it and approve every command, right? I'm still going through the loop.
Brendan:Yep.
Ryan:so I use PR as my safety net, just like, um, you know, I did before, but now the, the stakes are a little bit higher because I was al-- I'm also less close to the actual code being written.
Brendan:Yeah. I-I mean, you, you basically have, we'll call it one extra worker now, right? Like, you're the only human, but you do have someone that's writing code for you now. So it's… Uh, that's one way to look at it, anyways.
Ryan:Yeah. Yeah, so I, I don't know if there's a, you know, solution yet. We have a lot of ideas about how we could make it work, right? But the, the only thing that I think is true for sure is that code volume has gone up,
Brendan:Right.
Ryan:and we haven't materially gotten any faster at review,
Brendan:Yeah, exactly.
Ryan:right? So all we've done is create a bigger backlog and have not had,
Brendan:Right.
Ryan:It's still not my favorite activity, which sometimes makes the motivation hard, right? Like, I like to code,
Brendan:Yep.
Ryan:in the, even in the new way of AI coding, right, it's still to me coding,
Brendan:Yeah.
Ryan:it's not about the syntax and writing
Brendan:Yeah.
Ryan:you know, typing the keys. It's about the idea and communicating it and how to-- how should it look. And that hasn't changed at all. You still need to explain all those things to AI, right? Like that's the… It's just now I don't actually type quite as much actual code.
Brendan:Y-You get there faster, but then,
Ryan:Yeah.
Brendan:yeah. Yep.
Ryan:Here's another thing. I finally-- So you, you originally, uh, opened a PR for, uh, our app, my app for the CloudFile.
Brendan:Yep.
Ryan:I finally pushed that the other day.
Brendan:Okay.
Ryan:I went through it. I, you know, I took the stuff you did. I changed the things I didn't like. I put in our own stuff. I pushed it out, completely disappointed. And that has nothing to do with the work you did, obviously. I just, uh, I don't think, uh, my experience thus far is that, uh, Claude ignores the Claude MD file, uh, for the most part.
Brendan:Yep.
Ryan:And I even tried to follow the advice where it's like, "Don't make it too long." Like it's under, I think it's like two hundred lines. Like it's not a lot. Um, maybe it's a little bit more than that. Maybe it's like three hundred lines. I'm trying to make myself look a little bit better. But, um, yeah, I, I still have to repeat the same things over and over again that it continues to screw up. the only difference now is I can say,"Please reference the Claude file." like, "Oh yeah, you said that." I'm like, "Yes, I did. Why aren't you watching it?" I just thought that was an interesting observation.
Brendan:Yeah. Yeah, good to know. I'll, uh, I'll let you know if I see anything different now when I'm working on your app too.
Ryan:Well, it's, it's interesting. I-- like, the instructions when you-- Obviously, you work in Docker and I work locally, which is, like, the one big difference between our environments.
Brendan:Yep.
Ryan:so I put instructions for both Docker and local
Brendan:Okay.
Ryan:in the file. Well, it does not like local even though I'm native like Claude sessions, right?
Brendan:Yep.
Ryan:Uh, I have to constantly tell it. It's like, it, it constantly is like, "I tried to use Docker. Docker isn't running." Like, yeah, no kidding, because I have the server running. You should
Brendan:Yep.
Ryan:that. Like, like, why do I have to tell you this?
Brendan:Yep.
Ryan:run, run our spec. All we're getting into a bitch session, so I'm gonna
Brendan:Yeah.
Ryan:But, um… All right. So we, we talked, uh, uh, we talked a little bit about that wasn't completely AI related for a split second there with testing. Um, else you wanna talk about today?
Brendan:No, I think that's a good place to maybe just wrap things up. I think we… I, I, I mean, I-- it also got me thinking while we were talking about the testing stuff, though, that we probably should talk more about that. Like, I, I think you have good opinions on it. We both have worked with Jason. I think that it's a good reminder, even if you are writing code with AI, like, there's a lot of value to those, maybe more than the pull requests at the end of the day. But, like, so these, these things are all still relevant. It's just how do you leverage, leverage them with AI is maybe a good way to think about it, but…
Ryan:Well, you just reminded me of one other thing that I'll share as maybe a sign-off is, uh, I got a, a friend who is building a product with, with AI. Now they're, they're like a web designer by trade, so they're not like completely vibe coding this thing,
Brendan:Yep.
Ryan:but they have built a very impressive looking application,
Brendan:Mm-hmm. Sure.
Ryan:of actual time." I, I don't know exactly how much, but that's sort of what he led me to believe, and I'm like, "This is really impressive." And all I can think of is, is this gonna stand up,
Brendan:Yep.
Ryan:does it look really good and, like, feel like it works but is gonna be impossible to change
Brendan:Right.
Ryan:refactor or update in the future? you know, I plan on sharing that with him when we sit down next week. But it's like, all right, the job has shifted, right? It is not… It's no longer really about the code you write. It is about the, the direction you give it,
Brendan:Yep.
Ryan:right? Uh, for lack of a better way of saying it. And I think testing is one of those things that would if You know, I don't know if he's do-- He's, he's not a Rails developer, so he's on a completely different stack, right? And I
Brendan:Yeah.
Ryan:on the LAMP stack, which nothing wrong with PHP, right? But, you know, I don't know what testing tools exist there. I'm sure they do exist. To what end? I don't know. Um,
Brendan:Yeah.
Ryan:but I'm like, I, I'm, I hope you added some tests, or I hope like… I feel like tests are becoming more important.
Brendan:Right. That, that's exactly what I was getting at.
Ryan:less important, more important. So like, yeah, that, that's my mindset right now, and, you know, that means, you know, I have a, a to-do in my calendar is like, "Hey, did I, did I write specs this week?" Right? Every Friday at 8 o'clock AM, it's a just a gentle reminder. It's like, all right, if, if I got lazy and I didn't, I try to go back and the ones that I didn't. If, uh… Just trying to get in the habit right now more than anything else of always thinking about it.
Brendan:Yep. Cool. Yeah,
Ryan:right.
Brendan:I think that's a good place to end it.
Ryan:All right.
Brendan:All
Ryan:next time.
Brendan:right. See
People on this episode
Podcasts we love
Check out these other fine podcasts recommended by us, not an algorithm.
Code with Jason
Jason Swett
Standing in the Fire
Very Good Software
Remote Ruby
Chris Oliver, Andrew Mason, David Hill
IndieRails
Jess Brown & Jeremy Smith
Startups For the Rest of Us
Rob Walling
Vibing with AI Code
Brendan Buckingham