No Compromises · Joel Clermont and Aaron Saray
Have you ever looked at a colleague's code and thought, "This is clearly wrong," only to find out it was actually a well-reasoned workaround for a tricky bug? In the latest episode of the No Compromises podcast, we discuss what happened when Aaron reviewed Joel's code and couldn't make sense of a pattern spread across multiple Livewire components. The code wasn't bad, it was solving a real UX flicker bug in an older version of Mary UI. But without context, it looked like a mistake and nearly got rejected. The fix wasn't just refactoring; it was giving the workaround a proper home: a trait with a descriptive name, clear method names, and thorough documentation explaining the bug, the reason for the pattern, and when it can eventually be removed. We also talk about why "the explanation is in the PR note" isn't good enough, how AI coding agents can unknowingly propagate patterns they don't understand, and why strange code deserves to look strange, on purpose. Explore Mastering Laravel resources to deepen your understanding of patterns like these. 00:00 The confusing code review that started this 01:15 Flagging the unclear pattern across components 03:54 The Mary UI toast flicker bug explained 05:45 Naming, documentation, and protecting the whole team 09:30 Silly bit
0:00JoelWelcome to No Compromises. A peek into the mind of two old web devs who have seen some things. This is Joel.
0:08AaronAnd this is Aaron. So, I was doing a code review on some of Joel's code the other day, which-
0:20JoelBeautiful code.
0:22AaronOf course, it's just amazing.
0:25JoelOf course.
0:27AaronAnd we're using Mary UI on one of our projects. It's an older version because of some of the requirements of the project.
0:36And we're doing some sort of successful thing, and there's this toast system that you can issue a success message. And there's built-in ways of doing that.
0:45You call this success or something like that, and it just handles all that. And I was doing the code review on Joel's code, and I saw him not using that and then flashing maybe a message into success or something like that.
1:01And then later on in another, what seemed to be unrelated component maybe, it was checking in mount for that success message.
1:11JoelYes.
1:13AaronAnd then issuing a toast message after that. And I was really confused and then I remembered something.
1:20I remembered because of the nature of this old system and whatever, we would sometimes see a duplicate success message in certain scenarios.
1:33JoelYes.
1:35AaronAnd I vaguely remember Joel talking about that, but I can't remember. And at the time I'm doing this code review too, or like, well, maybe a week later, I'm just like, "This seems stupid."
1:42Joel"Why are you doing all this work, Joel?"