Keeping your code clean
Samuel James
5.3K19

I beg to differ. If I can write a few functions without creating additional classes, I’d go for the former.

Not only less lines of code to understand, but it’ll run faster.

While more complicated apps may require such designs, in general the less verbose the better.

Also what is more understandable for one developer is hard for others. This is a big problem that I see. The guy who wrote the 1000 line controller will be like What are you talking about? It’s so well-designed. But the guy reading it, don’t think so. But if it was only 100 lines or less, anyone can agree it’s easier to understand. And if it’s a cryptic one line arrow function vs 100 lines of code? No brainer here. I rather figure out the one liner.

Like what you read? Give Raph a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.