+ 2

One liner or Clean code?

Do you think one liners are a good option to choose? Yeah it looks cool but hard to write as well as hard to troubleshoot? If you were a software engineer what would u prefer? Give reason.

9th Nov 2020, 5:08 PM
Taran Grover
Taran Grover - avatar
4 Answers
+ 10
Clean code is better for maintenance which is usually 99.99% of the code's life :) However, one liners are always good brain teasers to practice: https://code.sololearn.com/c1O0SXDu2Nb0/?ref=app
9th Nov 2020, 7:22 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 11
Clean code is always better. As it is easy to maintain and modify in future time. And it should not happen that you can't recognise your code after 6 months 😂. Clean code is best. Edit: One liner is good from point of view of security. But i think your code don't have and nuclear formula to make it so secure.
9th Nov 2020, 5:18 PM
ツSampriya😘ツ
ツSampriya😘ツ - avatar