AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Should Functions Be Used Only for Reusable Code?
"There's nothing worse than picking a front end stack and then not wanting to work on your project because you're either not experienced with the stack. Or maybe you're just straight up not happy working on it," he says. "I personally lean towards smaller functions that do less even if they only are used once." He adds, "It's a code style thing. There's no right or wrong answer here".