May 31, 2021 Article blog
This article comes from the public number: Java Geek Technology Author: Duck Blood Fans
A few days ago, A powder said that A powder recently changed the company, and after joining the company to do the test database thing, and the next thing is more interesting, from the "Cobain origin" of the brothers and from the "training origin" of my large-scale debate (SIBI) scene, can not be said to be a popular pot, but it does have a bit of meaning.
Cobain Programmer: This function is very good to implement ah, write a few nested for loops directly, judge in it on the line, directly return the data on the line, why do you write so ink?
"Training Programmers": Inner OS: Nested for? P lus a few ifs, are you sure your data exceeds 1w, with no significant delay? S o, can only tell him, brother, this writing is certainly no problem, but you do not want to later how to maintain it? You're only a million or twenty thousand data I can feel the obvious delay, why can't you optimize it?
To tell you the truth, when it comes to this issue, you can't avoid being diss, feel that this is not a Cobain-born programmer can write the code, and the fact that this is indeed the case, may also be not enough work experience, so a lot of code is not very powerful, may also be the previous company has done a few CodeReview, so each time after writing the code is habitually to think about this code can not be optimized a little simpler, so consider a little longer.
So, the brother began and I am more true, A powder strategy has been very simple, brother, you write a three for loop, and then go and see you finish this loop time, and then think if you add all the operations of the query database in the loop, you think about how to deal with, for example, you have to compare the loop inside the List is not this time, do not have to write so many for loops, otherwise it is not X x Y times, why no longer build a List alone Contains to get it?
"Cobain Programmer": Brother, this feature can not continue to add these content, this piece I think plus it will be more perfect.
"Training programmers": from the heart of OS, add a hammer, how to determine the demand, how do I do, finished is not OK, why do more of this, but the heart so think, actually still can not do so, so say, this place you see how to change, mail to me, copy to xxx, and then I change.
It is not to say that this can not, indeed, according to the needs of the completion of the work, you come back to me to pull east and west, a little difficult to accept is not, if you say this place is written there is a problem, right, we can also ask you this piece should be modified into what it looks like, you now Come and tell me plus function, you are not going to do things, how can you get used to this problem, so two words do not say, first send an e-mail, copied to the leader, who let plus, don't come to you a word, add a function, to the end of the problem, The first time to find or I, so this function requirements do not have, automatic shielding.
A powder here is not to say "Cobain origin", and "training origin" between the gap, there is no other meaning, but this time is indeed more coincidental, this guy is just graduated 2 years of undergraduate, majoring in computer science and technology. It's just a coincidence, don't think too much about it.
Cobain Programmer: It's simple, it's going to be done in a few days, it's not that much trouble,
"Train programmers": What is this, I have to look at the basics, and then actually do it.
To tell you the truth, it has to be said that sometimes "Cobain programmers" although sometimes let you feel that they have some sense of superiority, but the technology is really powerful, for example, in the company to use a new technology, they can say nothing in a few days can start work, and in these content comparison, "training origin" programmers are not so powerful, but first to find out the foundation, after all, most of the students are through the school system, knowledge system is more complete, So can solve the problem in greater depth, but there are some reasons for the short time, there is no successful accumulation of experience, or lack of ignition waiting.
Isn't that a picture you've seen online before?
This scene is more interesting, that is, double joint and product battle, in the face of the soul of the product questions:
"This requirement user/operation says it's going to change to this,"
Our unified answer, where's the mail? Y ou send an e-mail first, and then copy to that who who, alone to me, I really dare not give you to do so, otherwise change to change, or the first version how to do, you first send an e-mail to prove that we are working, right? You go and prepare the mail first.
There is nothing wrong with this, this is the experience summed up, otherwise, after you open the head, the next thing is more difficult to do, can finish OK, this can not be done, that is equivalent to you did not work, so, for programmers, you put the functions to me listed clearly, and then submitted up, under the designation of which functions to determine, I do again is completely not false.
Said also quite a lot, A powder is also in the back to put on a once interview question, is the kind of hands-on practice of the interview question.
The interviewer gave an interview question, and the interview question is very interesting, you can have a look. This question is not answered, but the answer from Cobainsheng, so that the interviewer is satisfied:
And his implementation is exactly the same as what I saw on the Internet,
Task task = new Task(() => checkCustomerprice());
task.Start();
bool result = task.Result;
Task task2 = new Task(() => checkInventory());
task2.Start();
bool result2 = task2.Result;
if(result&&result2)
return true;
else
return false;
The great god on the Internet is not sure right or wrong, A powder feel that such a realization is indeed reasonable, do not know what everyone's opinion is like?
The above is
W3Cschool编程狮
about
the "Cobain origin" of programmers and "training origin" programmers of the large-scale debate (throwing pot) on the scene,
I hope to help you.