Tuan-Anh Tran

Shorter code is better?

Posted on November 27, 2014  •  2 minutes  • 250 words

wtfs/m

Which one do you prefer: shorter code or more legible code? As for me, legibility of the code always come first. Working in a team will make one realize the importance of code legibility sooner or later. Your code is not for you alone to read. It should be friendly and easy for whoever has to maintain your code as well. It’s not easy to write elegant code but it’s much easier to write legible code.

“There are only two hard things in Computer Science: cache invalidation and naming things.”

- Phil Karlton

“Writing specifications is like writing a novel. Writing code is like writing poetry.”

Your code can talk, so tell a story.

Follow me

Here's where I hang out in social media