Writing Clean Code - Part 4 (Identify Code Smells/Bad Code)

Other Parts of This Series: Part 3: Writing Clean Code - Part 3 (Formatting, Class & Object, Miscellaneous) Code Smells (Photo Credit: Axify) Story Our prophet Hazrat Muhammad Sallallahu Alayhi Sallam advised us that “Always try to avoid the acts of sin/bad things because if someone can avoid the bad work, he/she will start doing good work automatically.” This is true for both our real life and writing code. If we can avoid the code smell or bad code, then our code will automatically be good and clean. So identifying the code smell is important. ...

August 21, 2025 · 3 min · Saiful Islam Rasel

Writing Clean Code - Part 3 (Formatting, Class & Object, Miscellaneous)

Other Parts of This Series: Part 2: Writing Clean Code - Part 2 (Name, Function, Comment) Part 4: Writing Clean Code - Part 4 (Identify Code Smells/Bad Code) Clean Code - Formatting, Class & Object, Miscellaneous (Photo Credit: Sotatek) Remember 2 things: The only measurement of your code is WTFs / Minute. That is what the readers feel when reviewing code. Linux Torvalds, the creator of the Linux operating system, says, “Talk is cheap; show me the code.” So if we connect the above 2 points, then we can easily understand that our code should be talkable and self-describing because when anyone reviews/reads our code, they should feel well and comfortable enough. ...

August 20, 2025 · 5 min · Saiful Islam Rasel

Writing Clean Code - Part 2 (Name, Function, Comment)

Other Parts of This Series: Part 1: Writing Clean Code - Part 1 (Conceptually Clean and Bad Code) Part 3: Writing Clean Code - Part 3 (Formatting, Class & Object, Miscellaneous) Clean Code - Name, Function, Comment (Photo Credit: Prezi) Remember 2 things: The only measurement of your code is WTFs / Minute. That is what the readers feel when reviewing code. Linux Torvalds, the creator of the Linux operating system, says, “Talk is cheap; show me the code.” So if we connect the above 2 points, then we can easily understand that our code should be talkable and self-describing because when anyone reviews/reads our code, they should feel well and comfortable enough. ...

August 19, 2025 · 5 min · Saiful Islam Rasel

Writing Clean Code - Part 1 (Conceptually Clean and Bad Code)

Other Parts of This Series: Part 2: Writing Clean Code - Part 2 (Name, Function, Comment) Clean Code (Photo Credit: Dev Community) Story Arman and Rakib are classmates. They both complete their readings and homework regularly. But their approach to finishing the homework is quite different. Although they finish their homework on time, the quality of work is quite different. For example, Arman is a more qualified student than Rakib. Because he does his homework in the most organized way. He always tries to make notes of his homework so that he can reuse the notes and its knowledge later when this will be applicable. He keeps his homework simple, short, and sweet. That’s why his homework can be felt, understood, and create a happy feeling for others who read his notes and homework later. ...

August 18, 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.