What are five things you hate about your favorite language? [closed] Ask Question

What are five things you hate about your favorite language? [closed] Ask Question

There's been a cluster of Perl-hate on Stack Overflow lately, so I thought I'd bring my "Five things you hate about your favorite language" question to Stack Overflow. Take your favorite language and tell me five things you hate about it. Those might be things that just annoy you, admitted design flaws, recognized performance problems, or any other category. You just have to hate it, and it has to be your favorite language.

Don't compare it to another language, and don't talk about languages that you already hate. Don't talk about the things you like in your favorite language. I just want to hear the things that you hate but tolerate so you can use all of the other stuff, and I want to hear it about the language you wished other people would use.

I ask this whenever someone tries to push their favorite language on me, and sometimes as an interview question. If someone can't find five things to hate about his favorite tool, he doesn't know it well enough to either advocate it or pull in the big dollars using it. He hasn't used it in enough different situations to fully explore it. He's advocating it as a culture or religion, which means that if I don't choose his favorite technology, I'm wrong.

I don't care that much which language you use. Don't want to use a particular language? Then don't. You go through due diligence to make an informed choice and still don't use it? Fine. Sometimes the right answer is "You have a strong programming team with good practices and a lot of experience in Bar. Changing to Foo would be stupid."


This is a good question for code reviews too. People who really know a codebase will have all sorts of suggestions for it, and those who don't know it so well have non-specific complaints. I ask things like "If you could start over on this project, what would you do differently?" In this fantasy land, users and programmers get to complain about anything and everything they don't like. "I want a better interface", "I want to separate the model from the view", "I'd use this module instead of this other one", "I'd rename this set of methods", or whatever they really don't like about the current situation. That's how I get a handle on how much a particular developer knows about the codebase. It's also a clue about how much of the programmer's ego is tied up in what he's telling me.

憎しみは、人々がどれだけ知っているかを判断する唯一の基準ではありませんが、私にとっては、かなり良い基準です。人々が嫌っているものから、その主題について彼らがどれだけよく考えているかを知る手がかりも得られます。

ベストアンサー1

うわー、 SQL がまだここに来ていないことに驚きました。誰も SQL を好きではないということでしょうか :)

  • 実装間で一貫性のない構文
  • 微妙なコードの違いが、一見不明瞭な理由でパフォーマンスに大きな影響を及ぼす可能性がある
  • テキスト操作のサポートが不十分
  • 入門コストは安いが、言語を習得するまでの学習曲線は急峻である
  • ベストプラクティスのためのコミュニティ全体の最小限の標準化。これには構文スタイルが含まれます。

...そして、追加料金なしで、それを嫌ういくつかのボーナスの理由

  • WHERE 句が最後に来ると、UPDATE または DELETE が途中で実行されやすくなり、テーブル全体が破壊されてしまいます。代わりに、WHERE 句は前のほうに来るべきです。
  • リレーショナル分割を実装するのは難しいです。
  • 値を NULL に設定することはできますが、NULL と等しいかどうかをテストすることはできません。IS NULL をチェックすることはできますが、それによってコードが複雑になるだけです。私の意見では、それは不必要に複雑になります。
  • 列にエイリアスを設定してからエイリアス (または SORT の場合の列インデックス) で GROUP BY するのではなく、GROUP 列の数式を完全に再指定する必要があるのはなぜですか?

おすすめ記事