DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • XAI: Making ML Models Transparent for Smarter Hiring Decisions
  • Build Your Tech Startup: 4 Key Traps and Ways to Tackle Them
  • Why and How to Participate in Open-Source Projects in 2025
  • Top 5 GRC Certifications for Cybersecurity Professionals

Trending

  • Building Scalable and Resilient Data Pipelines With Apache Airflow
  • Java’s Next Act: Native Speed for a Cloud-Native World
  • Issue and Present Verifiable Credentials With Spring Boot and Android
  • Event-Driven Architectures: Designing Scalable and Resilient Cloud Solutions
  1. DZone
  2. Culture and Methodologies
  3. Career Development
  4. When Your Code Comes Back to You...

When Your Code Comes Back to You...

In this article, read about how revisiting your code can present you with a great chance to take a look at yourself from the side.

By 
Rumen Dimov user avatar
Rumen Dimov
·
May. 02, 24 · Opinion
Likes (3)
Comment
Save
Tweet
Share
3.3K Views

Join the DZone community and get the full member experience.

Join For Free

Go through your code and follow the business logic.

Whenever a question or doubt arises, there is potential for improvement.

Your Code May Come back to You for Various Reasons

  • The infrastructure, environment, or dependencies have evolved
  • You want to reuse your code or logic in another context
  • You need to introduce someone else or present your work before a wider audience
  • The business requirements have changed
  • Some improvements are needed
  • There is a functional bug; etc.

There are two, equally valid approaches here — either you fix the issue(s) with minimal effort and move on to the next task, or you take the chance to revisit what you have done, evaluate and possibly improve it, or even decide it is no longer needed, based on the experience and knowledge you have gained in the meantime.

The big difference is that when you re-visit your code, you improve your skills as a side effect of doing your daily job.

You may consider this a small investment that will pay for itself by increasing your efficiency in the future.

A Few Examples

  • Why did I do all this, where can I find the requirements?

Developers often context switch between unrelated tasks — you can save time for onboarding yourself and others by maintaining better comments/documentation.

A reference to a ticket could do the job, especially if there are multiple tickets. If possible, keep the requirements together with your code, otherwise try to summarize them.

  • Hmm, this part is inefficient!

In many cases this happens due to chasing deadlines, blindly copying code around, or not considering the real amount of data during development. You may find yourself retrieving the same data many times too.

Writing efficient code always pays off by saving on iterations to improve performance. When you revisit your code, you may find that there are new and better ways to achieve the same goal.

  • Oh, this is brittle — my assumptions may not hold in the future!

"This will never happen" — you have heard it so many times at all levels of competence. No comment is needed here — a good reason why you should avoid writing brittle code is that you may want to reuse it in a different context.

It's really hard to make no assumptions, but when you revisit your code, you should do your best to make as few assumptions as possible.

Also consider that your code may run in different environments, where defaults and conventions may differ — never rely on things like date and number formats, order or completeness of data, availability of configuration or external services, etc.

  • Oops, it is incomplete — it only covers a subset of the business requirements!

You have no one to blame — this is your own code. Don't leave it incomplete, because it will come back to you and that always happens at the worst time possible.

  • I'm lost following my own logic ...

You definitely hit technical debt — and technical debt is immortal. As you develop professionally, you start doing things in more standard and widely recognized ways, so they are easier to maintain.

It is quite tempting not to touch something that works. However, remember that, even if it works, it is only useable in the present context. Unreadable code is not reusable, not to mention it is hard to maintain.

Fighting the technical debt pays by saving time and effort by allowing you to reuse code and logic.

  • Uh, it's so big, it will take too much time to improve and I don't have enough time right now!

Yet another type of technical debt. In a large and complex piece of code, some parts may appear unreachable in the actual context, making the code even less readable.

  • This could be a problem, but nobody complained so far, so let's wait...

Don't trust this line of thinking. The complaints will always come at the worst times.

Summary

Even when it isn't recognized by management or your peers, the effort of revisiting your own code makes you a better professional, which in turn gives you a better position on the market.

Additionally, keeping your code clean and high-quality is satisfying, without the need for someone else's assessment — and being satisfied with your work is a good motivation to keep going.

For myself, I would summarize all of the above in a single phrase — don't copy code but revisit it, especially if it's your own.

It's like re-entering your new password when you change it — it can help you memorize it better, even if it's easier to copy and paste the same string twice.

Nothing stops you from doing all this when developing new code too. 

career

Opinions expressed by DZone contributors are their own.

Related

  • XAI: Making ML Models Transparent for Smarter Hiring Decisions
  • Build Your Tech Startup: 4 Key Traps and Ways to Tackle Them
  • Why and How to Participate in Open-Source Projects in 2025
  • Top 5 GRC Certifications for Cybersecurity Professionals

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!