Good programmers will love writing

01, is also writing a comment

As far as I know, all good programmers love writing (not just write a blog on the narrow sense). If you can cite some exceptions, be sure to tell me.

Why do you say?

A good programmer would like to share some open source code, if other programmers do not understand it, his frustration will remember with affection, unless he did not want others to understand, but I think this is the case there is no need to open source the bar.

In order to allow other programmers to read his code and reuse, he must not only define the appropriate variables and methods have to write some high readability comment. Like this:

public static int compare(double d1, double d2) {     // Cannot use doubleToRawLongBits because of possibility of NaNs.     long thisBits    = Double.doubleToLongBits(d1);     long anotherBits = Double.doubleToLongBits(d2);     return (thisBits == anotherBits ?  0 : // Values are equal             (thisBits < anotherBits ? -1 : // (-0.0, 0.0) or (!NaN, NaN)              1));                          // (0.0, -0.0) or (NaN, !NaN) } 复制代码

Without those comments, then the code can not help but look a headache. I do not know whether you agree with this view.

You might argue: Is it for programmers writing became a programmer do? But you seem to ignore a premise, I'm talking about good programmer. If you do not want to improve in writing, please let this article now, it will not have any help to you.

If you want to improve in writing, then we can have a good chat.

In fact, no shortcut to effective writing, I guarantee that even if you read "21 days learn to write" The secret can not be improved in a short time. Writing takes time, just like your baby from birth grow into beautiful handsome young people who - some people may see this sentence quietly hanging back, but the deeper meaning of my words is writing is not that hard, as long as you are willing to adhere to, but also is a go with the flow of things .

I can guarantee that if you send in a circle of friends, the bottom of the article comments, write code comments when a little hard to organize a few lines, not over a year or so, you'll find yourself writing skills before a big difference. But if you want further, you have to continue to adhere to.

02, also writing comments

I have received a letter from a reader, I had to thank his encouragement, so he embarked on writing this "no return", ha ha, this is probably the contents of the letter, we might come to see it.

Brother, do not know when you receive this letter would not be surprised, but the thought of your stunned expression, I feel particularly funny.

In the beginning, you do not know for me, how hard writing has, almost hard to I think you're lying to me - after all, not everyone is suitable for writing ah.

At that time, you advised me not to lose heart, let me try to review some of the articles at the bottom instead of sitting in front of a computer hard Bie article twenty-three thousand words - you mention, this really is a good way ah.

In the new media age, everyone should be read countless articles every day, circle of friends, subscription number, knowledge of the planet, blog Park, Denver, CSDN, etc., etc., I am no exception. While some point a lot of high-quality articles like this number, but the real intentions of the comments are few.

Since being read Well, besides sometimes really a feeling, eager to write their comments on the period. So I prescribed own review five articles every day, words no less than 10, we still have more than 100. If you write "666, refueling, powerful" such comments, writing ability is clearly not improved, it will not cause the author's attention; if writing too much, not enough clear and concise reviews, reader's patience will drop.

Adhere to six months later, I noticed the quality of his comments at steadily increasing. Sometimes encounter bottom of the article reviews the activities to send the book, I was often able to win, it gave me great power in the intangibles . If I had not been selected, I will look at other people's comments, and then to study the reason, I think: Maybe I have written enough fun? Maybe I do not write enough nail on the head?

You once said that you stick to blog greatly improve writing skills, I want to tell you, write a review for the same role with me.

Later, I no longer limited to comments, I will answer questions in the know almost above, which not only improved my writing skills, also intangibles exercise my skills, so I feel very happy.

Finally, I would like to say loudly, brother, thank you.

After reading this letter, you also can not wait to comment on this article reviews the bottom of it? If you are willing to do so, you are right!

03, how to continue writing

Good programmers mind is clear, the writing can well enhance their own, including technical ability, skills, but writing is a very slow process that requires a long period of accumulation, will have effect.

Fitness is like, like, a lot of advantages, but doing it is not so easy.

To me there are a lot of people want to exercise, I feel old, do not exercise on waste, but often a lot of people dig the money to do a card, still can not persist. I've been to the gym, have witnessed a lot of perfect female body curves, as well as presenting inverted triangle male physique, their perseverance feel too strong.

Then how can you write this thing stick with it?

1) the little things

To be honest, I have not had the gym, because I feel like at the gym is difficult to insist on not down, this is not to set their own limits, but self-knowledge. How do I do it?

I ride my bike to work every day, except rainy days and some exceptions. This thing, my mother no less nagging me: "such a hot day, you do not drive a bike ride, is not stupid ah, son?"

I replied: "I have to exercise ah, mother, or the middle of the road soon."

My mother said impatiently: "You see before you lost Chengsha Yang, a hundred pounds to succeed, and now finally a little fatter how good!"

Having heard this, I can only laughed within herself the mother of stupid, fat is not handsome.

You see, this little thing on the bike, can be subject to interference of others, let alone writing it? But as long as I put the bike this thing stick to it, then I insist on sharing two articles weekly rhythm is not so easy to break.

You can also start small, for example, write a comment at the bottom of the article, even in hair circle of friends, to write notes when a little more carefully than usual number.

2) hold together for warmth

Writing can give authors bring rewards not many, especially for those who just want to start writing it (write a review, not even the code comments). "Inert" is that everyone has a lot of people will not write between writing and wandering, wandering wandering not write. I suggest you find some comparable level of Gesanchaiwu we encourage it, syndicated heating thing.

I'm concerned about some of the considerable level of writing friends on the road, whenever get stuck in, and they talk about, depressed mood will immediately be cured. BaoTuan there is another advantage is that, when you see the amount of reading their articles over their own time, you can also learn to take them, learn from experience.

3) reader driver

When you spend a certain amount of time to complete an article, With an urgent need to share the mood to go out later, I had not a moment will receive a number of comments, whether it is praise or criticism, you will find very interesting experience - but there are still readers willing to put in some effort to read my article thing.

I had published in V2EX a topic, called "the mood is not a quiet time, how do you do", there is a reader could not understand, and feel I made the theme is always negative (although I do not think so), it is I put all of the topics listed before all out, let more people judge by reason. When I saw his comments could not help but laugh out loud, so cheerfully reply he said: "! Good intentions ah, man."

Sometimes really feel very good article, but there are still many readers enthusiastically comments, I feel inspired. Wow, when you feel good good ah (really)! I can not wait to write down one.

04, the final advice

Writing it has been commonplace.

But many programmers prefer to write blog writing is equivalent to, in fact, somewhat narrow definition, it is easy to some people want to stop writing at the door. I think, in many ways, including writing: Comments, questions, answers, chat, send circle of friends, technical documentation, code comments, and so on and so on.

Finally, let me quote a celebrity for writing explained the importance of:

If you are a bunch of people ready to pick a person to do a job, then pick the best written article . As he has done marketing, sales, design, programming or any other work, it is of no consequence. Such people writing talent worth hiring. This is because a good writer, the advantage lies not only in writing. Grammar clearly represents the idea clear. Excellent writer knows how to communicate with others. They make things easier to understand, they are good at empathy, understand focuses on major, minor cut, these are qualified candidates who should have characteristics.


Guess you like

Origin blog.51cto.com/14310913/2421877