Refactoring code should be done along with your work on your tasks. See something => fix something. Incrementally improving code is way more effective than waiting for a big bang time to fix all the tech-debt cause let's be honest that rarely works out. Prevention is better than cure. Worried about refactor PR approvals? Refactor existing code first, make sure tests and behavior are in shape, and either commit it independently or put it lower in a stack of diffs so it’s easier to review, and easier to understand what is doing what. #refactoring #techdebt
Abhishek Sharma’s Post
More Relevant Posts
-
💣 Legacy Code Without Tests: A Ticking Time Bomb! 💣 Legacy code without test coverage is a serious risk for your engineering team. Every change feels like navigating a minefield—one wrong move, and bugs can explode. 🔍 Are you facing: 1. Unpredictable bugs after updates? 2. Anxiety about breaking critical features? 3. Challenges in maintaining code with confidence? BaseRock is here to help! BaseRock automates test creation, saving you valuable time and minimizing release risks. Focus on innovation, knowing your code is backed by comprehensive automated testing. 🚀 Ready to future-proof your legacy code? Visit https://hubs.li/Q02YfwJd0 #LegacyCode #TechDebt #CodeTesting #AIDrivenSolutions #BaseRockAI #Innovation #SoftwareQuality
To view or add a comment, sign in
-
If you are dealing with legacy code that does not have any test cases, checkout Baserock.ai - our platform can reduce your test debt in a few days instead of creating a project that may take several months or years to get done. Reach out to me for a demo. #testingwithAI
💣 Legacy Code Without Tests: A Ticking Time Bomb! 💣 Legacy code without test coverage is a serious risk for your engineering team. Every change feels like navigating a minefield—one wrong move, and bugs can explode. 🔍 Are you facing: 1. Unpredictable bugs after updates? 2. Anxiety about breaking critical features? 3. Challenges in maintaining code with confidence? BaseRock is here to help! BaseRock automates test creation, saving you valuable time and minimizing release risks. Focus on innovation, knowing your code is backed by comprehensive automated testing. 🚀 Ready to future-proof your legacy code? Visit https://hubs.li/Q02YfwJd0 #LegacyCode #TechDebt #CodeTesting #AIDrivenSolutions #BaseRockAI #Innovation #SoftwareQuality
To view or add a comment, sign in
-
Code is getting commoditised. Quickly. I'm not seeing what the defensible moat is for any automated code-gen company at this point. The value is knowing what to build with code and how humans will interact with it, and most/all of these code-gen products aren't solving that. Semanttic is one of the few solving for that problem. And our plan is to integrate with as many different code models as our customers want for the deployment part.
To view or add a comment, sign in
-
Effective code reviews are all about precision. Ten lines? Ten issues. Five hundred lines? Looks good. Let's keep our reviews thorough and focused. #DeveloperInsights #CodeReviewStrategy #TheITProjectWhisperer
To view or add a comment, sign in
-
Let’s Talk Shared Packages and CLIs! Hey everyone, Continuing my journey of exploring shared packages, I’m excited to share how I leveraged this approach to release a CLI tool. The challenge? Create a developer tool to assist with code generation — like a template generator. As developers, we often rely on powerful CLIs to streamline tasks, so I thought: Why not build our own? In this example, I’ll walk you through how I created a CLI to tackle my specific task. I’d love to hear your thoughts — do you think this approach could be useful in your workflow? Let’s discuss in the comments! #DevelopmentTools #CLI #Coding #SharedPackages #Innovation
To view or add a comment, sign in
-
I have already touched upon the topic of developers' efficiency before, but it’s a topic worth revisiting. Software developers are some of the highest-paid professionals, so making sure they work efficiently is paramount. Interestingly, various estimates suggest that programmers spend only 20-30% of their time on writing a new code, while the rest is divided among debugging, bug fixing, documentation, and communication. According to statistics (https://lnkd.in/dkKjEvy8): 🔸 on average, developers make 70 bugs per 1,000 lines of code; 🔸 about 15 of those bugs per 1,000 lines of code reach end users; 🔸 fixing a single bug takes 30 times longer than writing a line of code; 🔸 developers spend about 75% of their time debugging. How can we improve these metrics? Test-Driven Development (TDD) could be a potential solution. Strictly adhering to classic TDD principles — writing tests before implementation — isn't always necessary. The key is achieving good code coverage. Unit and integration tests not only help in debugging and reducing bugs during development but also maintain system stability during the support phase. Someone might argue, "Writing tests takes time that could be spent coding." However, the time invested in writing tests pays off by significantly reducing the time needed to find and fix bugs. At the end of the day, who wouldn't prefer to spend less time debugging, more time coding, and still leave work at a reasonable hour? Should we aim for 100% code coverage with tests? I’d say no. In most cases it is sufficient to focus on public methods of the business logic layer and functions with complex algorithms. Additionally, automated tests are particularly useful for parts of the developing system with frequently recurring bugs or where reproducing errors appears non-trivial. Of course, TDD is not the only way to reduce errors. A properly designed architecture, a well-structured data model, and carefully chosen third-party libraries, which are indispensable nowadays, also impact the time developers spend coding in comparison to debugging and bug-fixing. Do you think TDD is efficient for development? Or, if you know any other practices that could improve code quality and reduce the time developers spend on bug fixing, feel free to share in the comments! #EffectiveDevelopment #TDD #Timspark #SoftwareDevelopment
To view or add a comment, sign in
-
Refactoring: The Key to Maintainable Code 🚀 Refactoring isn't just about speed and scaling. It's about streamlining your code's internal design for easier updates! To achieve this, focus on design, not performance. Remember, tests are your safety net 🦺 and small, atomic changes are best. Commit and push often to avoid conflicts. Let's clean up that codebase! 🧹 #refactoring #softwaredevelopment #cleancode #codingbestpractices
To view or add a comment, sign in
-
Refactoring: The Secret to Smarter, Faster, and Future-Proof Code! Watch to see how this essential process can elevate your software’s performance and cut down on development costs. Ready to streamline your code? #Refactoring #TechTips #CodeOptimization #SuperWiseSolutions
To view or add a comment, sign in
-
Developers, let's talk strategy! How often do you clean up your code? Avoid the pitfalls of messy, complicated code by embracing the power of code refactoring. Over time, the accumulation of duplicate code, long methods, and code smell can lead to software aging—a real threat to your project's longevity. Code refactoring is the secret weapon to keep your codebase clean, efficient, and future-proof. Don't wait for problems to surface; make tiny changes now to prevent big issues later. Ensure your code speaks efficiency and clarity. #CodeRefactoring #MorphisTech
To view or add a comment, sign in
Staff Engineer, Site reliability
7moUse copilot and GenAI especially for writing tests!