Book Review and Takeaways: (Refactoring - Improving the Design of Existing Code)

Detailed Refactoring Series: Part 1: Refactoring - Part 1 (Principle, What It Is & Is Not, Identify the Smells First) Refactoring Book Book introduction Martin Fowler’s “Refactoring: Improving the Design of Existing Code” is a classic book that teaches developers how to improve the structure of existing code without changing what it does. Refactoring makes code easier to read, maintain and expand, helping teams write better software over time. ...

August 29, 2025 Â· 3 min Â· Saiful Islam Rasel

Refactoring - Part 2 (Techniques for Cleaning Up the Smells)

Other Parts of This Series: Part 1: Refactoring - Part 1 (Principle, What It Is & Is Not, Identify the Smells First) Refactoring Techniques In our previous part, we talked about what is refactoring and what is not, the motivation behind this, and identifying the common code smells we generally found in our codebase. In this part we are going to explore some well-known techniques that can help us to clean up the code smells. So let’s start
 ...

August 28, 2025 Â· 8 min Â· Saiful Islam Rasel

Refactoring - Part 1 (Principle, What It Is & Is Not, Identify the Smells First)

Other Parts of This Series: Part 2: Refactoring - Part 2 (Techniques for Cleaning Up the Smells) Refactoring Principles Main Principle of Refactoring The main motivation of refactoring is the Boy Scout rule, which is “Keep the camp ground cleaner than you found it.” In our words, “Keep the codebase cleaner and more readable than you found it.” Definition Refactoring is the process of restructuring existing code to improve its quality (like readability or performance) without altering its external or existing behavior. ...

August 27, 2025 Â· 5 min Â· Saiful Islam Rasel

Book Review and Takeaways: (The Pragmatic Programmer - Your Journey To Mastery)

Detailed Pragmatic Programmer Tips Series: Part 1: Becoming a Pragmatic (Better) Programmer - Part 1 (Intro, Team Player) Pragmatic Programmer Book Book introduction “The Pragmatic Programmer: Your Journey To Mastery” by David Thomas and Andrew Hunt is a classical book published in 1999 and is a book about how to become a pragmatic programmer. Which really means a ‘Good Programmer.’ Yes, it was published about 20 years ago. But this book still provides many insights that are very relevant to programmers or software engineers, as some people might call them these days. ...

August 26, 2025 Â· 3 min Â· Saiful Islam Rasel

Becoming a Pragmatic (Better) Programmer - Part 3 (Decouple, Concurrent Coding, Project & Team)

Other Parts of This Series: Part 2: Becoming a Pragmatic (Better) Programmer - Part 2 (Design, Implement, Debug) Pragmatic Programmer (Photo Credit: Unsplash) Story Remember the guy Ismael from the previous part? He was good at broad-level thinking while coding and efficiently designing software. Today he shares some tips and tricks for making code decoupled and concurrent. Decouple and Concurrent Coding Tips Maintain SRP (single responsibility principle) and reduce inter-component dependency, because decoupled code is easier to change. Depend on internal state, not external, which means call some component, and this will tell something. But don’t ask external components for internal decision-making. Don’t chain method calls to do something; instead, create a pipeline based on data. Avoid global data; if it’s extremely important, then wrap global data into an API. Use well-designed patterns and programming paradigms according to business needs. Don’t pay inheritance tax, which means avoid inheritance as much as possible. Use interfaces to achieve polymorphism. Prefer composition over inheritance, meaning create Has-A relationships, not Is-A, whenever possible. Frequently changed values should be parameterized using an external configuration service. Analyze workflow to improve concurrency. Use an activity diagram for better understanding of concurrent workflow. Be very aware of the shared states, and remember random failures are often concurrency issues. Use blackboards and pen and paper for high-level analysis of workflow. Story Osama is an experienced software developer currently playing the team lead role. But despite being a team lead, he is actively coding regularly. Because he loves coding. He has a very good track record of following good coding practices and is also known as a “pro-coder” in his colleagues’ circle. ...

August 25, 2025 Â· 4 min Â· Saiful Islam Rasel

We use cookies and technologies like Google Analytics and Microsoft Clarity to understand how users interact with our site and improve your experience.