DEV Community

Discussion on: Every programmer should know these conventions and practices

Collapse
 
brense profile image
Rense Bakker

Nice checklist 👍 I would recommend to not be too religious about the 80 character line length though. Sometimes splitting code across multiple lines makes it harder to understand. Long lines of code are an indicator that you might need to refactor your code though.

I think the last of the tips "Avoid Hacks in your code" should be the most important one! It's a massive headache when you have to fix someone elses code and it's full of these clever hacks. Please try not to be clever when coding! 😁

Collapse
 
fayomihorace profile image
Horace FAYOMI

Sure, for the 80 chars rules you're right, I think some rules or best practices have rare exceptions or egde case that I'll try to cover in future posts.

Yeah, a real fixing code full of hacks will give long and painfull headache ^_^.