re: 4 practices for better code VIEW POST


Great article. I loved reading Clean Code, it was full of gold tips.

Anyway, reading this piece of code:

const windowWidth = window.innerWidth / 2;
const windowHeight = window.innerHeight / 6 ;

I remembered the tip from Martin about using meaningful constants instead of raw literals because they're easy to search and give the developer a clear context.

code of conduct - report abuse