您最不喜欢自己的语言的五件事是什么? [英] What are five things you hate about your favorite language?

查看:56
本文介绍了您最不喜欢自己的语言的五件事是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近在Stack Overflow上出现了Perl-hate集群,因此我想带上我的"

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.

我不太在乎您使用哪种语言.不想使用特定的语言?那不要您经过尽职调查才能做出明智的选择,但仍然不使用它?美好的.有时候正确的答案是您拥有一支强大的编程团队,拥有良好的实践和在Bar方面的丰富经验.将其转换为Foo是愚蠢的."

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.

仇恨并不是弄清人们知道多少的唯一方法,但我发现它是一个相当不错的方法.他们讨厌的事情也为我提供了一个线索,他们对这个问题的看法有多好.

Hate isn't the only dimension of figuring out how much people know, but I've found it to be a pretty good one. The things that they hate also give me a clue how well they are thinking about the subject.

推荐答案

JavaScript :

  1. 所有最酷的东西都非常复杂,但是,所有这些酷点也被包裹在少量的代码中,您会为遵循它而感到愚蠢

  1. All the coolest things are insanely complex, but then, all the coolness is also wrapped up in such a small amount of code that you feel stupid for struggling to follow it

'+'是用于弱类型语言的串联运算符的荒谬选择.他们是在试图吓跑新手吗?

'+' is an absurd choice of operator for concatenation in a weakly-typed language. Were they trying to scare off the noobs?

这是一个跨浏览器兼容性的雷区(不管是否打开,都没关系)

It's a cross-browser compatibility minefield (never mind if it's even turned on or not)

通常是不可信的-与卑鄙的人相关,例如阻塞后退按钮,永不消失的弹出窗口等.

It's generally untrusted - associated with scummery such as blocking the back button, pop-ups that never die, etc.

几乎不可能调试,因为只有几种不同的错误消息和几种不同的类型(数字,字符串,对象等)

It's nearly impossible to debug because there are only a few different error messages and a few different types (Number, String, Object, etc.)

如果不是jQuery,我可能会像以前一样讨厌它:)

If it wasn't for jQuery, I'd probably still hate it as much as I used to :)

这篇关于您最不喜欢自己的语言的五件事是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆