Explore the World's Best Ideas
Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.
The main objective when writing code is for it to be easily understood by humans. Remember, your fellow developers will interact with your code much more than machines will.
310
1.98K reads
Choosing informative and meaningful names for variables, functions, classes, and other identifiers helps your code speak for itself, reducing the need for comments.
294
1.36K reads
Each function you write should have a singular, well-defined responsibility. Keeping functions small and focused makes your code more maintainable and less prone to bugs.
298
1.23K reads
In well-written code, comments should be the exception, not the rule. If your code is self-explanatory, there's no need to add extra commentary.
291
1.1K reads
The way you format your code, including indentation and the use of whitespace, can greatly influence its readability. Consistency is key.
285
969 reads
Functions should avoid modifying the state of their inputs. Instead, return the results. This practice leads to clearer and more predictable code.
296
1.01K reads
Don't ignore errors. They should be handled and communicated effectively, preferably through exceptions, making your code more robust and maintainable.
284
834 reads
Knowing where to draw lines between software systems and how to manage those interfaces effectively can make a big difference in the complexity and maintainability of your code.
287
774 reads
Unit testing is essential for maintaining code health. Tests should be clean, well-written, and just as maintained as your production code.
284
659 reads
Classes should be as small as possible, with a single responsibility. This practice increases code clarity, reusability, and maintainability.
284
673 reads
Keeping system architecture clean and comprehensible is crucial. It's just as important that high-level structures are as understandable as low-level code.
282
646 reads
Good architecture often emerges from following simple practices: passing all tests, eliminating duplication, ensuring expressiveness, and minimizing the number of classes and methods.
282
596 reads
Concurrency brings its own set of challenges. Writing concurrent code requires explicit strategizing and testing to ensure correct functioning.
281
597 reads
Your code should undergo continual revision and improvement. By constantly refining it, you can maintain simplicity and flexibility in your software.
283
538 reads
Understanding your testing framework, like Junit, can make your unit tests cleaner and more efficient. Mastering your tools equates to more efficient and reliable code.
287
483 reads
The "Don't Repeat Yourself" (DRY) principle states that each piece of knowledge should have a single, unambiguous representation within the system. Duplicated code can lead to inconsistencies and bugs.
284
493 reads
Working with legacy code can be challenging but understanding and improving its structure can greatly aid in maintainability and extensibility.
283
489 reads
Employ tools like static code analyzers and linters to enforce coding standards and conventions. They can help you maintain high-quality code.
283
436 reads
Professionalism in software development means taking responsibility for delivering clean, functioning code. Take pride in your work and strive for excellence.
282
420 reads
Certain patterns, known as 'code smells,' can indicate potential problems in your design. Understanding these patterns helps you avoid problems before they arise.
283
538 reads
IDEAS CURATED BY
As an engineer with an official degree in software engineering, I am primarily interested in science and technology. I enjoy reading literature of many genres, and I especially like those from human behavior, sociology, history, and, should I say, science
Curious about different takes? Check out our Clean Code Summary book page to explore multiple unique summaries written by Deepstash users.
Different Perspectives Curated by Others from Clean Code
Curious about different takes? Check out our book page to explore multiple unique summaries written by Deepstash curators:
1 idea
maaoui nada's Key Ideas from Clean Code
Robert C. Martin
2 ideas
hei you's Key Ideas from Clean Code
Robert C. Martin
10 ideas
Coding Harry's Key Ideas from Clean Code
Robert C. Martin
Discover Key Ideas from Books on Similar Topics
3 ideas
Grokking Algorithms
Aditya Bhargava
10 ideas
Atomic Habits
James Clear
15 ideas
Atomic Habits
James Clear
Read & Learn
20x Faster
without
deepstash
with
deepstash
with
deepstash
Personalized microlearning
—
100+ Learning Journeys
—
Access to 200,000+ ideas
—
Access to the mobile app
—
Unlimited idea saving
—
—
Unlimited history
—
—
Unlimited listening to ideas
—
—
Downloading & offline access
—
—
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates