PPL 2021 — Clean Code — Keep your code cleaned and readable!

This article is made as a part of the assignment for the PPL 2021 Course.

Photo by Sarah Dorweiler on Unsplash

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” ― Martin Fowler

What is a Clean Code?

Illustration for low coupling, Source: Geeksforgeeks
  • Add hasil pranen on manajemen_produk app
  • Showing the added product
High cohesion illustration. Source:https://ducmanhphan.github.io/2019-03-23-Coupling-and-Cohension-in-OOP/
#discouraged
a = 10
#encouraged
initial_land_area = 10
#Class Nameclass ThisIsClass():#function namedef this_is_a_function():#variable namethis_is_variable = 1
def a(int b): #function for printing final land value
print(b + 10) #land value + increment
--------------------------------------------------------------def final_land_value(int initial_land_value)
computed_land_value = initial_land_value + 10
print(computed_land_value)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Fredy Pasaud

Fredy Pasaud

10 Followers

Under-graduated Students Majoring in Computer Science