Is it possible to write good and understandable code without any comments?

前端 未结 20 1383
攒了一身酷
攒了一身酷 2020-12-28 18:35

Can any one suggest what is the best way to write good code that is understandable without a single line of comments?

20条回答
  •  轮回少年
    2020-12-28 19:09

    If you really want to then you would need to be very detailed in your variable names and methods names.

    But in my opinion, there is no good way to do this. Comments serve a serious purpose in coding, even if you are the only one coding you still sometimes need to be reminded what part of the code you're looking at.

提交回复
热议问题