DEV Community

Cover image for Writing Clean Code (Part 2)

Writing Clean Code (Part 2)

Jason McCreary on October 18, 2017

In Part 1 of Writing Clean Code I outlined three simple practices of formatting, naming, and avoiding nested code. All in an effort to improve code...
Collapse
 
tiso profile image
tiso

in second example you should have:

isOwner($owner_id)
Collapse
 
gonedark profile image
Jason McCreary

Thank you. I have made this update.

Collapse
 
chrisvasqm profile image
Christian Vasquez

<3'ing this series! Keep it up :D

Collapse
 
imthedeveloper profile image
ImTheDeveloper

Heroic series of posts. I love reading about other developers thinking around structure. It's a great insight and I look forward to part 3 hint hint

Collapse
 
asynccrazy profile image
Sumant H Natkar

Simple suggestions which can really improve code readability & maintainability in longer run.

Collapse
 
gonedark profile image
Jason McCreary

Thanks. Exactly what I hoped for.

Collapse
 
kmavrodis profile image
Konstantinos Mavrodis

Excellent ideas, very clearly presented! We will be waiting for Part 3.