Using implode, explode etc.. on one line vs separating them into multiple lines with meaningful variable names
- by zhenka
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?