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.
Choosing informative and meaningful names for variables, functions, classes, and other identifiers helps your code speak for itself, reducing the need for comments.
65
328 reads
MORE IDEAS ON THIS
Certain patterns, known as 'code smells,' can indicate potential problems in your design. Understanding these patterns helps you avoid problems before they arise.
61
155 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.
61
126 reads
Professionalism in software development means taking responsibility for delivering clean, functioning code. Take pride in your work and strive for excellence.
61
111 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.
63
253 reads
Working with legacy code can be challenging but understanding and improving its structure can greatly aid in maintainability and extensibility.
61
121 reads
Functions should avoid modifying the state of their inputs. Instead, return the results. This practice leads to clearer and more predictable code.
64
237 reads
Concurrency brings its own set of challenges. Writing concurrent code requires explicit strategizing and testing to ensure correct functioning.
62
143 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.
61
125 reads
Your code should undergo continual revision and improvement. By constantly refining it, you can maintain simplicity and flexibility in your software.
62
134 reads
Classes should be as small as possible, with a single responsibility. This practice increases code clarity, reusability, and maintainability.
61
156 reads
The way you format your code, including indentation and the use of whitespace, can greatly influence its readability. Consistency is key.
63
214 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.
61
152 reads
Good architecture often emerges from following simple practices: passing all tests, eliminating duplication, ensuring expressiveness, and minimizing the number of classes and methods.
61
135 reads
Don't ignore errors. They should be handled and communicated effectively, preferably through exceptions, making your code more robust and maintainable.
62
201 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.
64
187 reads
Employ tools like static code analyzers and linters to enforce coding standards and conventions. They can help you maintain high-quality code.
61
112 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.
63
292 reads
Unit testing is essential for maintaining code health. Tests should be clean, well-written, and just as maintained as your production code.
62
150 reads
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.
70
483 reads
CURATED FROM
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
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