One liner or Clean code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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
2 Respostas
+ 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