Don’t write multiple statements in one line

… for several reasons:

  1. It doesn’t boost the performance.
  2. It doesn’t reduce the memory usage.
  3. It is hard to set a breakpoint while debugging.
  4. It reduces the readability.
  5. It is nothing to show off.

Counter example:

Don’t write multiple statements in one line for that, it doesn’t boost the performance and reduce the memory usage, but hard to set a breakpoint while debugging as well as reducing the readability, plus it is nothing to show off.

2 Responses to “Don’t write multiple statements in one line”

  1. ZJP Says:

    This is exactly the point of my boss. He wants me to use
    \begin{itemize}
    \item
    \item

    \end{itemized}
    as much as possible.

  2. Sui Says:

    good points.

Leave a Reply


Chat with me. =)