Using implode, explode etc.. on one line vs separating them into multiple lines with meaningful variable names

Posted by zhenka on Programmers See other posts from Programmers or by zhenka
Published on 2011-11-17T01:10:06Z Indexed on 2011/11/17 2:03 UTC
Read the original article Hit count: 233

Filed under:
|

I see a lot of people coding in PHP being rather proud if they manage to write a complicated one line statement that does clever things.

But what is the advantage? It is not only harder to keep in once head while writing, but makes code much less readable.

In my opinion reading short statements, if well written, can be like reading an essay, while complicated one liners can potentially make me pause and think for much longer then it would take for the coder to simply separate them into meaningful units.

Am I wrong in thinking this? How would you go about proving your point to another programmer regarding this?

© Programmers or respective owner

Related posts about php

Related posts about readability