+ 9
Complexity Vs simplicity
is it necessary to make our code complex....... or just make it simple enough that a normal person can understand .....and does making a complex code make us a more professional programmer or it's just simply for testing our knowledge??? 😶😶😶
7 Réponses
+ 16
I answer with a KISS from Clean Code 😙
+ 14
Writing simple codes == Driving with full speed (with some obstacles)...
Wirting complex codes == Driving with full speed (with many obstacles)
Choose the one you consider the best...and it's true that if we write complex code (A code which no one can understand), it would be considered as professional as no one would be able to figure it out.
+ 3
I personally think that it is about finding a balance between the two. There is no purpose in making your code very complex and unreadable for others but in the process of building something it kind of becomes complicated by itself. So when you are writing your code try to make it very simple to understand.
Let the idea be Complex, but the code Simple.
+ 3
Use code that is only as complex as needed with plenty of comments especially as the complexity increases.
+ 2
If you ask me, writing a complex code to accomplish a task you could have accomplished with a simpler code doesn't make any more professional, coding is like science, making working easier is the aim, and if person A writes and simple code that does the same thing as a complex code written by a person B. To me, person A is a better programmer.
+ 2
@Leon
Hi! open python interpreter and run:
import this
There you will find the answer ;)
0
I choose simplicity. I prefer codes which are easier to understand and easier for reuse.