DEV Community

Discussion on: Should single-use functions be named?

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao

if it's more than 1 line of code yes, if it's just a 1 liner like regex and lambdas then it should be ok to not name it. But it should clear for anyone who comes in to maintain your code.