Tag: coding

How to Write Clean Code?

Basic Hygiene Leave the place cleaner than you got it. Naming Convention Do one thing in a function. Name should reflect the action. Function name is a verb. Declare literals ([a-z]+, [0-9]+) as constants. Functions The function should not exceed twenty lines. Each if, else, while statement can become a function. The function can have…