Andriawanverri.andriawan.web.id·4 hours agoOpen Closed Principle ( OCP )Prinsip yang pertama kali dikenalkan oleh Bertrand Meyer pada buku Object Oriented Software Construction pada tahun 1988. Idea dasar dari Prinsip ini adalah Software Entity baik itu class, module, function terbuka untuk penambahan feature baru tanpa ...clean code
Linh Tranlinhnote.hashnode.dev·7 hours agoReview of "Clean Code Cookbook" by Maximiliano Contieri✍ Maximiliano Contieri has worked in the software industry for 25 years while teaching computer science at Universidad de Buenos Aires. He’s also written articles about clean code, refactoring, and code smells on popular blogging platforms and in con...Book Reviewsbook review
Maxi Contierimaximilianocontieri.com·Jan 23, 2025Refactoring 022 - Extract Common AncestorMake your class hierarchy clear and flexible TL;DR: Extract a common abstract class to mimic real-world structure. Problems Addressed Duplicate Code Inappropriate Inheritance Shotgun Surgery Big Class Feature Envy High Coupling Concrete classes su...Refactoringsrefactoring
Andriawanverri.andriawan.web.id·Jan 22, 2025S.O.L.I.D PrinciplesSetiap programmer pasti memiliki style coding yang berbeda-beda. Kebebasan dalam menulis code tersebut dapat membuat code tidak terstruktur yang berimbas pada aplikasi yang sulit dimaintain, di-monitor bahkan di-trace ketika terjadi error. Maka dari ...S.O.L.I.D PrincipleSOLID principles
Saurabh Mahajanblog.saurabhmahajan.com·Jan 20, 2025Clean Code - The Practical GuideIntroduction In the vast landscape of software development, writing code is not just about instructing a computer to perform a task; it's about crafting a language that communicates with fellow developers, both present and future. Clean code is the a...70 readsFundamentalscode
Saurabh Mahajanblog.saurabhmahajan.com·Jan 20, 2025Clean Code - Part-6: Classes, Objects & Data ContainersImagine classes as specialized tools in a toolkit, each serving a specific purpose. Just like you wouldn't use a hammer to tighten a screw, avoid bloating classes with unrelated functionalities. Instead, keep them focused and concise, adhering to the...code
Saurabh Mahajanblog.saurabhmahajan.com·Jan 20, 2025Clean Code - Part-5: Control Structure & ErrorsIn this section, we'll delve into essential strategies for code refinement, including avoiding deep nesting, preferring positive checks, utilizing errors, leveraging factory functions and polymorphism, and modularizing code. By understanding and appl...code
Saurabh Mahajanblog.saurabhmahajan.com·Jan 20, 2025Clean Code - Part-4: Functions/MethodsIn the realm of clean code, it's crucial that both the call to a function and its definition are clear and easy to understand. When invoking a function, readability is key, including clear argument orders. Equally important is the ease of working wit...code
Saurabh Mahajanblog.saurabhmahajan.com·Jan 20, 2025Clean Code - Part-3: Code FormattingCode formatting is the practice of structuring code in a consistent and organized manner to enhance readability and convey meaning effectively. Vertical Formatting Vertical formatting concerns how code is organized from top to bottom, focusing on re...code
Saurabh Mahajanblog.saurabhmahajan.com·Jan 20, 2025Clean Code - Part-2: CommentsOur first priority should be that we shouldn't need to write comments in our code. The code should be clean enough (i.e. naming conventions, formatting, functions, etc) that it should self explain when looked at. But there are some cases where we mig...code