From my questions and answers, I can see where I am from?

Source: Internet
Author: User
I think it's a great honor to be able to pick up my intern's resume. At about on the evening of November 2012321, zhihu hr sent me an interview question. Then I spent four days on these questions. Yesterday (2012325) at pm, I fixed the bug and sent it. Today (2012326), I sent another message about 10 a.m. and added some instructions. One hour later, hr replied that I didn't pass: "Because your code is not clear enough and it is a windows Programming habit, it is inconsistent with the current technical architecture, I think it's a great honor to be able to pick up my intern's resume. On October 21, at around, zhihu hr sent me an interview question. Then I spent four days on these questions. Yesterday () around, I fixed the bug and sent it. Today (), I sent another message about 10 a.m. and added some instructions. One hour later, hr replied that I didn't pass: "Because your code is not clear enough and it is a windows Programming habit, it is inconsistent with the current technical architecture, you failed to pass this test"
The code I wrote is as follows:
First question: http://blog.ideapp.us /? P = 203
Question 2: http://blog.ideapp.us /? P = 209
I want to know where I am from? What are the requirements of interns? I am a beginner in python. I am confused about coding every four days, and I will reply to me in an hour. I am still quite lost.
-----------------------------------------------
I have another opportunity. Thank you for your encouragement.
-----------------------------------------------
It took me a week to rewrite it intermittently.
First question: http://blog.ideapp.us /? P = 220
Question 2: http://blog.ideapp.us /? P = 224 Reply: I think the misunderstanding is the idea of "poor.

The interview is not a college entrance examination. If you don't have the chance to hold hands, you may not be able to leave yourself alone. If you are the one, you should leave yourself alone. In fact, I think for interns, coding, windows style and so on are not very important. Every company has different rules for these things. These things should be learned in the company's first week, rather than four years in college. In addition, there is no need to use things that you will be completely familiar with within a week.
I am not very careful with other things. As for the question comprehension and the object-oriented understanding, it is a little difficult. The person who killed you is obviously more strict. There may be many reasons for this. There may be a lot of talented candidates, or the interviewer may be very interested in your shortcomings, it may also be caused by your advantages ...... Wait. In short, the interview is a subjective choice. It's no big deal. Many cool people are very optimistic in one place, but in another place they are very miserable. This is normal. It doesn't mean no fate in the face, it doesn't mean the magic horse, just continue to work hard. Although you have already returned your email separately, I would like to add it here.
I have read your code yesterday and replied yesterday. Unlike the hr statement, I am talking about code that is not pythonic, not clear enough, and windows Programming habits.

Part of your code document is gbk encoding and part is utf8 encoding. Once it is opened, it is garbled and you have to manually transcode it. You may not be able to handle the read pain. I don't need to be familiar with beginners, but I hope to see a good style. old style class, a large number of staticmethods, And the gb2312 encoding of the email script are not good habits.

A single answer is not a complete requirement. First, because it is related to the use of the windows path, attachments cannot be sent in the linux environment, and sohu mailbox cannot be sent successfully. Second, the Code mixed between the server and the client cannot be used in any production environment. If you do not want to isolate the code, you can separate it by configuration or parameters. I have to manually change it to run it, it is also inconsistent with the question requirements.

Btw, I think your hands-on capabilities are good, but this is not a competition after all, speed or anything is not important. We pay more attention to good code style and programming habits, this is especially important in a group.

Update. Among the many written examinations received in the past year when I started to recruit interns, it would be better for the questioner to be a beginner to switch from java to python. The timing is different, and the recruitment standards are different. I can only say sorry. 1. In addition to front-end pages, it is recommended that Chinese characters (including comments) not appear in code files. Chinese characters are very likely to cause strange problems;
2. Your code overuses object-oriented/classes, and the Java trace is too heavy. Many of your classes fully combine several methods through @ staticmethod, resulting in unclear code structure;
3. It is indeed a Windows Programming habit. If we take programming as the next step, we recommend that you switch to Linux/Mac as soon as possible.

I am not an employee. The above are my personal opinions and suggestions for reference only. Let's take a look at the code of your first question. It's just for your reference.
  1. Over-object-oriented. Sender and address can all be done with strings. attachments is made into a list of file name strings, and it is not necessary to make all of them into classes.
  2. Over-encapsulation. Utils. isFileExist () does not need to exist. You can directly use OS. path. isfile (); Utils. regex () is not necessary, and re. match () is done.
  3. Over-design. It's a little complicated. In Python, many things can be done using functions, and so many things are not needed. More than 400 lines of code are a bit scary ...... As mentioned above, Pythonic is not enough.
  4. Unit Test. We recommend that you take a look at the unitest module.
  5. Encoding Problems. As @ Yang Kun @ Wu Chang said.
It can be seen that lz code has rich experience, but it only takes time to learn Python. Continue to cheer! I don't know if python is required for the question.

It is meaningless to constantly emphasize that you are learning now. As an interviewer, you are incapable and need to study this point.

Since the problem is pointed out mainly in style, and you are now learning the current language, that is to say, you have not negated your ability, but it is not suitable for the current stage, you do not have to worry too much. I use my character to ensure that @ Yang Kun (interviewer) is not a person who does not respect interns/interviewers. On the contrary, he is a kind person, or even a kind person, he is the first vegetarian I know.
I think there is no problem with the failure of the interview. The interviewer is a hardcore pythoner, focusing on code clarity, unit testing, and integrity. However, his focus is on the weak points of the landlord. Therefore, it is a matter of course for me to reject lz. Because the interview is not a 100-point examination, it is more like a love affair. Whether the interviewer matches the interviewer/company does not mean that you will need more experience in algorithm projects.

However, I can understand the feelings of you and the landlord. I have read the code and blog of the landlord. It is really strong. It is better than most of the students I have ever seen.

But I still want to say, just like the uncle's Lori said to Zheng, "you are really cute, but sorry, I am controlling uncle"

Ps: We will also learn lessons from this interview and try to fully examine the comprehensive abilities of the interviewer. Thank you for not taking it too seriously, mainly because the temperament is not consistent. Many interviewers will think that you are not in line with their team spirit. I don't know much about python. But I looked at it a bit. What they call gd2312, I personally think, is an excuse for a relatively collapsed denial. Mixing is really not good. If the subject is notified. So it is still a very good programmer. Also, you need to ask for the interviewer's consent to answer questions. Windows is not a big problem. A path is a small problem, but you must realize that your program cannot run in linux. Some may think that programmers who do not use linux are not good programs. If you can write programs in windows without debugging in linux, it is also very good. Mozilla is a great company, and some programmers write programs in windows. If the interviewer asks that your program will be deployed in the linux environment. Then you must consider the linux environment. I insist that part of the reason for rejecting you is nonsense. Continue to stick to programming. Your code is not compiled in Linux. I'm sorry to disappoint you.

I personally think that the style you write comments is quite good, and it is a bit too modular (personally ).
In addition, you do not seem to have reached the "Accept parameter input" point in the first question. You seem to have only sent a command line email, there is no simple interface for "accepting parameter input". For example, I have:
Sender: 'sender @ mail.com'
Password: 'Password'
Recipient: 'receiver1@mail.com; receiver2@mail.com; receiver3@mail.com ;'
Attachment: 'file1; file2; file3 ;'
How can I send it? Although you can solve the problem by taking a closer look at your program, it is equivalent to writing your own interface. Although the interface is relatively easy, I certainly won't spend time thinking about it as an interviewer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.