Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

no prob. I have written code like that, and there is some allure to cram as much logic as possible into a single line.

The problem is that the nice feeling you get from writing it is inversely proportional to the nice feeling I have when reading it.



Haha, that’s a great way to put it . Writing one-line code does feel clever in the moment, but you’re right, the “writer’s joy” often turns into the “reader’s pain.” Striking the balance between elegance and readability is the real art of coding.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: