Hacker News new | past | comments | ask | show | jobs | submit login

By that logic, shouldn't you be creating a var for the expression_argument() return?



Indeed I probably would, just didn't want to distract from the central point in that post.


I would agree with your style, unless all monitors and our vision were built to be more ultrawide-aware than “ultrahigh”. Irregardless of resolution, we can have at most 50-70 lines per eyesight and I doubt that constraint cannot be left unconsidered without losing readability. But it is just my guess from observations, not a real science.

Did you compare writing in different ways and reading it later? This specific style confuses me the most, because I have to mentally connect an assignment with a flow control, because there is no guarantee that a following if() will not use a different variable or it was not shadowed, misnamed, etc. And given that, at once I see x2-3 lines less than usual.




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

Search: