DEV Community

Discussion on: Writing Clean Code

Collapse
 
gonedark profile image
Jason McCreary

Seems like you don't agree with any of the post then…

Collapse
 
oleksiirybin profile image
oleksii-rybin

I agree with the idea of clean code in general. And I agree that code example at the end of an article became much better than it was before. And I just added some more things I assume as "clean code" principles.

Thread Thread
 
gonedark profile image
Jason McCreary

Fair. Nevertheless, they contradict mine. One of the contributing factors of messy code is that everyone disagrees on "clean code".

For clarity, I don't believe in a having single return statement. And there is nothing wrong with temporarily naming a variable something obviously incomplete in the spirit of maintaining momentum.