Week 15 - IT and Ethics (Social Contract Theory - Clean Code)
10 different ethical theories are mentioned by Michael J. Quinn in his Ethics for the Information Age book. In this article, I will provide an IT example of the Social Contract Theory. Social Contract Theory was formulated by Thomas Hobbes, and it is mainly about the set of rules that makes sense for everyone. An example would be driving in the right line for avoiding crashes. I will implement this theory in Information Technologies.
You can easily understand the logic of your functions during the coding phase. In other words, it is possible to understand what you are doing with the codes you have, which command you want to give, and which method you solve the question with. However, after a while, the codes used in the project may seem incomprehensible. The healthiest way to eliminate this problem is to work by writing clean code.
Benefits of clean coding in simple terms:
The code is easier to understand.
It is understandable for which command the code is used.
It is easy to continue even when returning to the project after a long time.
Others can easily understand.
Easier to maintain.
It is easier to test.
If you are interested in learning more about clean code, I can recommend a good book which I really like and reference from time to time: https://amz.run/5VYr
Comments
Post a Comment