TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A note to language haters

3 pointsby mtabinialmost 13 years ago

4 comments

npsimonsalmost 13 years ago
Here's the deal: all languages have downsides. It's called "tradeoffs". Depending on what's important to you, those tradeoffs could be Really Bad.<p>Take for example my current bread and butter, C++. Because it was designed during a time when people still really cared about speed, a number of design decisions were made for the language (eg, non-virtual by default) that may not make sense today. This is just the tip of the iceberg; I trust I don't need to go on about exceptions or the various things left out of the spec or "left as a decision for the compiler implementers".<p>Now, I know many of the problems with C++, and I'm willing to admit them. It only seems logical, if you are competent at using a tool, you are familiar with its limitations and will admit to them, and maybe justify them in the context of tradeoffs.<p>This cannot be said of many who defend PHP. I'm not going to rehash criticisms of PHP, but it seems to me that the shortcomings of the language can't be justified by tradeoffs because <i>there were no benefits gained</i> by the downsides that are in PHP. It really seems like an ad-hoc spaghetti mess. That many defend this by citing irrelevant facts ("it's popular!") or debatable facts ("it's easy!") while not addressing the shortcomings <i>at all</i>, tends to lead me to believe that defenders of PHP are lacking in professionalism and probably have little experience of other programming languages.<p>That articles like this one keep coming up is a sign that people (mainly PHP defenders) can't just admit their language has downsides like everyone else's (okay, maybe more than everyone else's) and move on.<p>EDIT: A little less inflammatory.
评论 #4272687 未加载
评论 #4271664 未加载
cpt1138almost 13 years ago
"The trick to being a great programmer is to learn as much as you can about as many programming languages and techniques as you can."<p>I'm not sure I believe this claim. First off how much learning is required to subjectively solve problems in the most elegant way. Syntactically languages are essentially the same. Its the vast API's and language paradigms that need to be consumed and understood at a deep level in order to solve problems in the most elegant way with that "tool."<p>Now another facet of this argument is what it means to support and maintain everything. A homogeneous system is far easier to support and maintain. Stemming from your argument, a concern would be a mishmash of solutions to support and maintain. If devs were allowed to "use the best tool for the job" for every problem, I would hate to see what their production environment looks like.<p>The comparison of languages to a hammer is specious. A language is a language like french or italian. A tool for expressing yourself. You can translate word for word which sounds silly, or you can really "know" the language and translate concepts into the paradigms of the other language.
评论 #4270881 未加载
Torgoalmost 13 years ago
I'm not getting this hammer metaphor. OK, so a hammer is good for pounding nails and not good for fixing a watch. If we're having this whole discussion because people have noticed that PHP is the frequent common factor in buggy, poor-security web applications, then what is PHP actually good for?
eLodalmost 13 years ago
i think the article misses the main point. the articles 'bashing' PHP does not say noone ever wrote good code in PHP or ever will. rather that we should change the situation where PHP is the de facto std for beginners on the web, because in their opinion there are superior alternatives. that's a valid concern imho, i mean it is 'not valid' to question wether there is good PHP code, but it is 'valid' to question whether PHP should be the std beginners language). sry for my english.
评论 #4272695 未加载