Home
Categories
EXPLORE
True Crime
Comedy
Society & Culture
Business
Sports
History
Music
About Us
Contact Us
Copyright
© 2024 PodJoint
00:00 / 00:00
Sign in

or

Don't have an account?
Sign up
Forgot password
https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/9c/42/96/9c429693-a57f-0804-772a-302e453cc9c8/mza_16982737108441617533.jpg/600x600bb.jpg
No Compromises
Joel Clermont and Aaron Saray
139 episodes
1 day ago
Two seasoned salty programming veterans talk best practices based on years of working with Laravel SaaS teams.
Show more...
Technology
RSS
All content for No Compromises is the property of Joel Clermont and Aaron Saray and is served directly from their servers with no modification, redirects, or rehosting. The podcast is not affiliated with or endorsed by Podjoint in any way.
Two seasoned salty programming veterans talk best practices based on years of working with Laravel SaaS teams.
Show more...
Technology
https://is1-ssl.mzstatic.com/image/thumb/Podcasts221/v4/9c/42/96/9c429693-a57f-0804-772a-302e453cc9c8/mza_16982737108441617533.jpg/600x600bb.jpg
Changing your mind about when() and unless() in Eloquent
No Compromises
11 minutes
3 months ago
Changing your mind about when() and unless() in Eloquent

Aaron admits he used to wrap every query in plain old if-statements—until Laravel’s when()/unless() helpers (and arrow functions) won him over. He and Joel compare their journeys, debate readability trade-offs, and share guidelines for deciding which style to use. Along the way they discuss false assumptions, evolving “code grammar,” and how tools such as Rector can automate the switch.

  • (00:00) - Intro – refining long-held opinions
  • (00:45) - Aaron’s original “query-then-if” pattern
  • (01:45) - Why when() first felt clumsy (closures, scopes, extra params)
  • (03:45) - Arrow functions & smaller conditions make when() nicer
  • (05:00) - Joel’s lingering objection: avoiding unless() for readability
  • (06:45) - Seeing the same helper everywhere changes minds
  • (08:30) - Takeaways – keep revisiting old habits as Laravel evolves
  • (09:30) - Silly bit

Want help learning how to more quickly refactor and standardize your app with Rector?
No Compromises
Two seasoned salty programming veterans talk best practices based on years of working with Laravel SaaS teams.