+ 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??? đŸ˜¶đŸ˜¶đŸ˜¶

26th Mar 2017, 3:01 PM
Leon lit
Leon lit - avatar
7 Answers
+ 16
I answer with a KISS from Clean Code 😙
26th Mar 2017, 3:04 PM
Tashi N
Tashi N - avatar
+ 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.
26th Mar 2017, 2:40 PM
Dev
Dev - avatar
+ 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.
26th Mar 2017, 3:34 PM
salahdin
salahdin - avatar
+ 3
Use code that is only as complex as needed with plenty of comments especially as the complexity increases.
27th Mar 2017, 10:54 PM
Logan New
Logan New - avatar
+ 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.
26th Mar 2017, 1:36 PM
_n3m9
_n3m9 - avatar
+ 2
@Leon Hi! open python interpreter and run: import this There you will find the answer ;)
26th Mar 2017, 7:56 PM
Oleh Nazar
Oleh Nazar - avatar
0
I choose simplicity. I prefer codes which are easier to understand and easier for reuse.
3rd Jan 2020, 6:38 AM
Ahmad Daniel Sulaiman
Ahmad Daniel Sulaiman - avatar