AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Write a Separate Function for Flow Controls
I prefer to have my functions separate from the flow control, where like Scott says, get customer send customer email. And then when you are reading your code, it will tell you exactly what is happening, but not how it's happening. If that's the case, then I have no problem just writing it in line. But honestly, if you defer to like, I don't immediately go for writing a separate function, but I'll very quickly refactor out. It starts to make me feel a little bit anxious because there's so much code on the page.