3 steps to clean comment

Triveni Jena
Feb 25, 2021

1. Multiline Comment versus Single-Line Comment

At whatever point conceivable, attempt to compose long remarks as multiline remarks.

The accompanying remark is terrible:

All things being equal, do this:

2. Nonlocal Comment

Here’s an illustration of a terrible remark. The default break is 5000, yet it doesn’t determine where this worth was set.

Never remark about some code that is absent. All things being equal, attempt to give some unique circumstance.

3. Favor Long Names Over an Explanatory Comment

Some of the time, we attempt to try not to compose long names and clarify them in the remarks.

All things considered, compose long logical names, if necessary:

Triveni ( Read Rudraksha and gemstones in pune)

--

--

Triveni Jena
0 Followers

Passionate about Clean code and SOLID Architecture