+ 2

What would be your approach for interview- one liner or clean code?

Oneliner would show how effective you are (getting things done in less code). Clean code would show how understandable you are (using good identifier names that explain their job). I would prefer clean code. What about you?

8th Nov 2018, 5:32 PM
Aditya Rana
3 Answers
+ 3
If cleaner is faster one, it clearly wins. But if not, depends upon my mind state😜
8th Nov 2018, 7:23 PM
Roneel
Roneel - avatar
+ 3
Depends on the job, if you're going to be working with a large team clean code is always preferable.
8th Nov 2018, 8:18 PM
Ángel Perales
Ángel Perales - avatar
+ 3
In my opinion, the interviewers don't care if you can do one-liners and it won't impress them. Just try to solve the problems efficiently and with clean code
8th Nov 2018, 10:42 PM
bullion