How to improve the style and look of one's code?

Revision en4, by nantf, 2019-07-18 13:08:24

For example, I have wanted to add whitespaces between operators and digits for a long time. But whenever I try it, it seriously slowed me down. That made me really awful.

For another example, I have a friend Layn. Let's take a look at his code(his recent submission on a Chinese OJ).

We've tried to make him change for a long time. But he didn't change at all.

So I wanted to ask how to improve the style and look of one's code?

(Also, how to make Layn change his code style?)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English nantf 2019-07-18 13:08:24 50
en3 English nantf 2019-07-18 13:06:12 52
en2 English nantf 2019-07-18 13:04:49 0 (published)
en1 English nantf 2019-07-18 13:04:22 572 Initial revision (saved to drafts)