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