One liner or Clean code? | Sololearn: Learn to code for FREE!

+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.

11/9/2020 5:08:45 PM

Taran Grover

4 Answers

New Answer

+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

+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.