No, Clean Code is not ONLY about OOP

LORY
12 min readAug 14, 2022

A FANG guy joined 3 months, refactored by some “OOP golden rules” and left .

After decades coding experience. you may experience multiple programming languages, script language like shell, power shell; “C-series” like c ,c++; the “dynamic languages” like javascript, php, python (I see many devs cursing them a lot); and finally, there are object oriented languages like c++, java, c# .

All these languages, for devs are used to build things : which means make it working, make it fast under high load, make it stable and scalable. In short, They are all tools .

However I have been seens again and again many “OOP gurus” who forcing the entire team to follow idea of OOP to be “clean” . sometimes they are right, but sometimes no . Let’s look at some bad samples .

XXService, XXHandler, XXManager, XXProcessor

OOP (Object-oriented programming) is a programming paradigm based on the concept of “objects”, which can contain data and code: data in the form of fields (often known as attributes or properties), and code, in the form of procedures (often known as methods).

--

--

LORY
LORY

Written by LORY

A channel which focusing on developer growth and self improvement

No responses yet