To raise this question is to have an objective attitude towards the way of thinking.
For the programming language, I have always felt that those I have not used, listening to some of the cows have mentioned the language is better.
I have been to interview a favorite of the company's Java development position, there is no face, for this has been very regrettable. Later I heard that they use the Ruby language, the heart has been secretly guessing, Ruby should be better than Java? How else would they have switched to Ruby?
There is a programmer friend, has done five or six years C + + development, he in my eyes also love learning, belong to a good programmer class. One day he told me that in the self-taught Python, in C + + to write hundreds of lines also can not solve the problem, python a few lines to solve, but also special emphasis on this is a hacker use of the language. I think Python should also be a good language, or how could a hacker use it?
To do this, I use Google to search for "the worst Python code", which points to the first three results.
One is the C # language example, someone writes this
string currenttime = DateTime.Now.Year.ToString () + + + + + + DateTime.Now.Second.ToString ();
Obviously you can use the DateTime.Now.ToString () mate parameter to get the time you need.
And there's this.
intMin3 (intAintBintc) {if(A <min (b,c)) { returnA; } Else if(b <min (a,c)) { returnb; } Else if(C <min (b)) { returnC; }}intMIN4 (intAintBintCintd) {if(A <min3 (b,c,d)) { returnA; } Else if(b <min3 (a,c,d)) { returnb; } Else if(C <min3 (a,b,d)) { returnC; } Else if(D <min3 (a,b,c)) { returnD; }}
The worst part of this is that the algorithmic complexity is O (n!), even if all numbers are sorted by using a quick sort, only the complexity of O (N*LOGN) is required.
This example is believed to be a lot more. But this can at least prove that ugly code can be written in both advanced and low-level programming languages.
Further speaking, language is just a tool, tools used well, to see people.
But you can say that each tool has its scope of application. Can only say that some tools are relatively strong adaptability, menial deliberately are capable, some tools to get started, do not need to learn too much, some tools to knock Walnut is excellent ... This is possible.
But then again, why do I think Ruby is better than Java?
The possible reason is that I didn't really know the programming language. "XXX better," the preconceived idea that I can't see the truth. The next conclusion is a relatively easy way, it is more difficult to ask for modesty. Go online to find some information to prove that their views are easy, their own quiet heart to download the development package to build the development environment writing code is relatively more difficult. Boasting of some advanced concepts, "meta-programming", "functional" is easy, can really make these specific use in place is difficult.
Another possible reason is that I feel that when I have this judgment, I am more bullish than many people around me. I can brag to them, and most people won't contradict me.
I was impressed by the experience of bragging about being pierced. To a company interview, I would like to be hired, the company also gave me the opportunity to interview. During the interview, the interviewer asked me what books I had read. I then thought, let him fancy my opportunity to come! Say you've seen <junit in Action> it's an English book about testing, I did read it once, but the things left behind are really limited. I said I had seen it, but I knew I had no harvest. When he asked some specific concepts, I couldn't answer them, but I wanted to argue. Finally, of course, he sent me away politely.
This exaggeration comes from my self-distrust. When I want to please or make others think I am better, I can easily become pompous.
Or so, I'm not qualified to comment on which programming language is better unless I do it myself. If you don't do it yourself, you shouldn't judge it easily. Because such judgments may be exaggerated, out of ignorance, but not out of faith.
This is the thought of today.
Why do I think Ruby is better than Java?