0% found this document useful (0 votes)
227 views

Clean Code

The document provides best practices for writing high quality code including using meaningful names, writing code that expresses clear intent, following principles of single responsibility and independence, practicing test-driven development, focusing first on overall structure before implementation details, and continually improving coding skills through mastery of the craft.

Uploaded by

aboalfotoh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
227 views

Clean Code

The document provides best practices for writing high quality code including using meaningful names, writing code that expresses clear intent, following principles of single responsibility and independence, practicing test-driven development, focusing first on overall structure before implementation details, and continually improving coding skills through mastery of the craft.

Uploaded by

aboalfotoh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

#1: You're responsible for code quality.

#2: Use meaningful names.

#3: Write code that expresses intent.

#4: Code should speak for itself. Less comments = less maintenance.

#5: Leave the code better than you found it.

#6: Single-responsibility code. i.e function does 1 thing well. Less arguments = better function. classes: most methods use most of the class' properties.

#7: Tests (TDD).

#8: Work on big picture skeleton, then fill in the details later (interface first, implementation later).

#9: Independent components that can be used in different places.

#10: Master your craft.

You might also like