Do I have to code properly?

Lots of discussion and answers on the Internet. Here’s an example:

Once I was seconded to another project team to help meet a requirement. One of the stupidest mistakes I’ve ever made while writing code is to format the code for my own configuration. I went to the hospital at noon the day after I wrote all the code and submitted it.

In the afternoon I received a phone call from the project team leader asking what changes had been made to the code I had submitted. I gave him a few paths and told him about my change markers.

When I arrived at the company the next day, the team leader told me that because my code format was different from the group specification, almost every line was different when I merged the test version. Version administrators have to compare lines, ask which version to use, merge, and submit tests.

This time, there were fewer than ten files and no more than 100 lines of code were actually changed, but the bad version manager worked from about 2 p.m. until about 6 p.m. to finish merging the version. And that’s how long it would take if I had a change mark on every change.

I think this example illustrates the problem of non-compliance and the benefits of compliance.

According to Code, coder is god. We can do whatever we want, but we have to follow certain norms. Life and work, we can have innovation, can be different from others, but to write code to standardize.

A lot of people came to me for information on code practices, so I dug through my closet and found a guide to clean Code.

Information on

The book consists of 17 chapters! Wide coverage, full knowledge, rich cases! It’s excellent!

What impressed me most was chapter 4, a section devoted to annotations, because it was so close to the actual work.

The author gives examples of many types of bad comments:

Mumble: Comments have no real meaning, as if the programmer were talking to himself;

Redundant comments: Comments have no effect, and reading comments is more tiring than reading code;

Misleading notes: The notes are not accurate enough to mislead the reader;

Conformist notes: Full of gibberish and confusing;

Journaling comments: Verbose comments! This kind of situation really is often appear!

How do I get it?

Identify the QR code and pay attention to the public account “Java Back-end Technology full Stack”;

Reply the keyword “303” in the background of the public account.