From the beginning of joining Jane book, I basically wrote technical blog articles. Today I want to change the style. Because yesterday saw several drunken dolphin blacken programmer’s article, actually I don’t understand programmer how to provoke you, but you are not programmer this occupation have prejudice? This prejudice is not small, is it true?

Don’t say I’m hot. Please, IT’s obvious.

As a matter of fact, I had no idea who “Drunken Dolphin” was before. Today, I occasionally saw that everyone was spreading this event in my friend circle and Jane’s programmer community, so I searched relevant articles and Jane’s statement. After reading it, I would like to mention that I personally feel that his articles are not supported by data at all. What I understand is that they are serious nonsense. Let’s get to know the Drunken Dolphin, Jane book contract author, Jane Book University lecturer, Jane Book Observation excellent author, a lot of titles, many of which have been removed so far.

As a programmer, the first thing to know about him is to collect his historical articles (with code).

#! The/usr/bin/env python2.7
# encoding: utf-8
""" Created on 17-12-13 @author: zhiji """
import urllib2
from lxml import etree


class main():
    # define a function to crawl the corresponding data
    def getTitle(self,url):
        my_headers = {
            'User-Agent':'the Mozilla / 5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36',
        }
        request = urllib2.Request(url,headers=my_headers)
        content = urllib2.urlopen(request).read()
        return content

    Define a function to filter and save the crawl data
    def save_data(self,content):
        xml = etree.HTML(content)
        title = xml.xpath('//div[@class="content"]/a[@class="title"]/text()')
        link = xml.xpath('//div[@class="content"]/a[@class="title"]/@href')
        print link
        i=-1
        for data in title:
            print data
            i+=1
            with open('title.txt'.'a+') as f:
                f.write(data.encode('utf-8') +'('+'http://www.jianshu.com'+link[i]+') '+ '\n')
        


Define the main program interface
if __name__ == '__main__':
    page = int(raw_input('Please enter the total number of pages you want to crawl:'))
    for num in range(page):
        url = 'http://www.jianshu.com/u/rHypHw?order_by=shared_at&page=%s'%(num+1)
        data = main()
        content = data.getTitle(url)
        data.save_data(content)
Copy the code
  • The article title

After reading a few of his articles, if you don’t know why, take a look at the portal:

Why do programmers go over and say hello? Why do programmers go over and say hello? Why do programmers go over and say hello? Stupid to learn how to do not understand middle school physics? How to do with poor logic? Be a programmer! Why are there so many giant baby programmers in China?

Just looking at the title is already very angry, so I repeatedly read the fuse why programmers are the group with the highest infidelity rate (support double 11 programmer off single special), the following several lazy points, in fact, the article wants to express the idea of nothing more than the following:

1. Most programmers work very leisurely. 2. Programmers are often described as a stressful group. It’s a rumor. There is no less stressful job than that of a programmer. 3. Programmers are the group with the highest infidelity rate.

I deny all of them, for good reason. Let’s move on. ####1. Most programmers work very leisurely.

** Most programmers actually work very leisurely. ** They even leisurely enough to have spare time to write scripts and grab mooncakes. There are plenty of programmers who spend their working hours doing personal work, and plenty of programmers who spend their working hours playing games. There are people who you look at and they seem to be working really hard on their code, and they only focus on their work for three, four, maybe two hours a day.

Most jobs in the world work longer hours than programmers. A nurse works sixteen hours a day. Cleaners work thirteen hours a day, factory security guards twelve, waiters in restaurants and hotels thirteen, assembly line workers twelve to fifteen hours a day is common, the owners of bun shops and snack bars sixteen hours a day, some private business owners more than eighteen hours a day, Surgeons and nurses in grade A hospitals also work harder than programmers. Taobao store’s customer service is also busier than programmers.

I often see laid-back programmers and finance guys at Places like Starbucks. Many finance men are masters of Texas Hold ’em, and it’s hard to imagine one becoming a master of Texas Hold’ em without being very laid-back. Many programmers are very good at the game, and how do they become good at the game if they are not very relaxed.

Zhihu is full of programmer articles, Jane books are also full of programmer articles. If they are not very leisurely, how can they have time to play Jianshu and Zhihu?

To be honest, when I first saw this article, my first thought was, “I’m more surprised than I know. Being a programmer has become the happiest job of all.” You see, from nannies, cleaners to doctors and nurses, everyone’s working time is less than a programmer, then read over and over again, and consider very fear, this is clearly a false analogy, the reader is completely by the nose, the author is a mess with causal ah, I just want to ask whether the argument and programmers work leisurely half a dime relationship? Because of the long working hours of other professions, the work of programmers is easy and leisurely. As far as I know, it’s the norm for programmers to work overtime. You can’t go to sleep in the wee hours of the morning when the project goes live.

In addition, you can often see programmers in places like Starbucks coffee, often go to Starbucks coffee = work leisurely, many programmers have high game level because they often spend time playing = work leisurely, zhihu and Jane books are full of programmers articles = work leisurely, this is bullshit logic. A lot of programmers like to go for coffee. Haven’t you heard the phrase “code in coffee production”? Then again, drinking coffee doesn’t mean a programmer has a leisurely job. Secondly, many programmers like to write on Zhihu, Jianshu, CSDN and Github. I don’t know about others, so just say me. The original intention of my blog is as follows:

  • In order to record the problems and solutions encountered in study and work, it is convenient to use them when you encounter problems in the future. It is better to have a good memory than to rely on writing.
  • If your blog can help other programmers then why not? In other words, if you help others through your blog, you will be happy to be recognized by others’ checking and liking. If you’re doing something wrong, someone else will point it out and help you improve, so why not?
  • Writing process met a lot of like-minded friends, met tianshan, met a lot of people like me to learn Python, made a lot of friends, at the same time to see their own articles appeared in zhihu community, appeared in wechat public number, will meet my vanity, don’t say me, I am so hopeless ヾ(✿゚▽゚) Blue
  • Finally and most important, I always thought that “writing thinking”, for a programmer, technology upgrading is one soon, constantly learning ability, the pursuit of new knowledge, new technology is a spur to his, at the same time, it takes a lot of time writing, but please note that is time, not a waste of time, Because I think it is a kind of improvement of their learning ability.

####2. Programmers are often described as a stressful group. It’s a rumor. There is no less stressful job than that of a programmer.

Programmers have the best working environment, safety, health, low formaldehyde, no dust, no noise, not high casualties, such as construction workers won’t like the steel workers working in 60 degrees Celsius environment may have an accident melts in hot metal, not as miners buried in the ground, not such as textile factory under 96 db noise and full ears slow nostril cotton dust, Not like the dustbin every day contact, not like the doctors and nurses at any time may be infected by bacteria and viruses, not like the chemical plant employees surrounded by all kinds of toxic substances, not like the barbecue shop in the winter night to endure the cold wind.

Living in the best cities, the most profitable industries, the safest working environment, where do they have a lot of stress?

Programmers are the most error-free industry in the world. For an operating system from Microsoft, for example, more than 100 patches can be rolled out. When something goes wrong, the programmer thinks it’s a bug.

Other engineers are not so lucky. An elevator engineer makes a bug and people die. The construction engineer makes one bug and the whole building blows up. Boeing crashes with one bug. A bug in a Toyota car requires a global recall. Doctors have a bug called malpractice.

No matter what industry changed to be a programmer, find a pheasant training institution to learn a few months, someone dare to hire him. But a new doctor who spends five years in medical school and three years in training, few patients come to him.

There are plenty of career changers to become programmers in almost any field, and most can do it. But I have never heard of programmers switching to other technical professions, whether they are doctors, mechanical engineers, radio engineers, steel engineers, chemical engineers, architects, physicists, astronomers, mathematicians. Visible programmer threshold, is the lowest in all technical positions, talent and IQ requirements, but also far lower than other technical industries.

In fact, this is the same as above, by comparing the working environment of construction workers, textile workers, cleaners and so on, it highlights that programmers have low working pressure, good working environment and high profits. Overthrow this several day very is actually simple, the first programmer threshold is low, literally a pheasant training institutions to learn a few months, IT is a variety of high pay, no stress, a line of city development, I agree that many training institutions training finished now there are a lot of other people turned into the IT industry, but really don’t spend time and energy, to training institutions stay can live in the best city, Safest working environment, no stress, wouldn’t everyone be studying IT? Do you think everyone’s stupid or are you? Secondly, programmers are the most error-prone industry in the world. Is this ridiculous? Let alone where you got this data, what will happen to the payment industry, social networking industry and e-commerce industry if their programs have bugs? Imagine if the double Eleven cat suddenly out of the bug, if the Spring Festival travel bug 12306, the result will be how.

You said that we are less stressed, data analysis, data mining algorithms and models, data processing, SQL, Spark, Kafka, etc., which does not require us to spend time and energy to learn, and where does the pressure come from?

####3. Programmers have the highest rate of infidelity.

Programmers are more likely to cheat because they are favored by mainstream (material) women because of their high income, high social status and clean living environment. So they are more tempted and hooked up.

Plus, they’re laid-back and can hook up during work hours. Most of them are free to play games and have common topics with laid-back women.

Another key reason: most programmers live in tier-1 and tier-2 cities, where hooking up is extremely convenient.

Back to the idea that programmers are easy to cheat because they work leisurely; Programmers have high income, high social status, clean living environment and are favored by material women; First-tier cities second-tier cities are extremely convenient to date; To comment on this view in my own words, I can only say: confusion of concepts, misuse of cause and effect, to generalize. I personally is completely unable to understand this logic, secondly I would like to know the first-tier and second-tier cities about sex is extremely convenient from where the conclusion comes out, this proposition is to send points. Try changing the programmer.

The high rate of infidelity in the financial sector is due to high income, high social status and clean living environment, which are favored by mainstream (material) women. So they are more tempted and hooked up.

Plus, they’re laid-back and can hook up during work hours. Most of them are free to play games and have common topics with laid-back women.

Another key reason: most people in finance live in tier-1 and tier-2 cities, where hooking up is extremely convenient.

This view is completely leading the reader by the nose, the whole article is so, if you don’t think about it yourself, you will feel that the programmer industry is really like this, imposing cause and effect, this is not a generalization.

In addition, as a programmer, I can be responsible to tell you, programmers do not have a girlfriend, how to cheat? You said the job is leisurely, high income, sex, no pressure work, I feel that I must take part in a bit, it seems that I drag everyone back, I may be a fake programmer… ヾ(✿゚▽゚) Blue

In the end, if you really need to prove something, I think it is better to take data to support it, such an article is obviously full of malicious.

This article is just a personal opinion on the article “Why programmers are the group with the highest rate of infidelity”. I don’t object to honest and objective evaluation. What I object to is serious nonsense, and I don’t target anyone. And to all the programmers out there who are passionate about technology, who keep blogging, who keep sharing, you guys are awesome.