不要重新发明轮子_重新发明轮子

不要重新发明轮子

不要重新发明轮子

A lot of people will tell you not to try and reinvent the wheel. If a script has been written, or a styling effect developed that accomplishes what you want, why spend time trying to create the effect yourself?

很多人会告诉您不要尝试重新发明轮子。 如果编写了脚本,或者开发了满足您需要的样式效果,为什么还要花时间尝试自己创建效果?

I can see their point, and in some situations, I agree. If you are on a tight deadline for a project, you often don’t have time to develop that functionality from scratch, and it therefore makes more sense to adapt the structure already developed by someone else.

我明白他们的观点,在某些情况下,我同意。 如果您的项目截止日期很紧迫,那么您通常没有时间从头开始开发该功能,因此更适合采用其他人已经开发的结构。

I do feel, however, that web developers do need to try and create an effect from scratch when they have the opportunity. There are a couple reasons why I feel this is the case.

但是,我确实感到,Web开发人员确实需要在有机会的情况下尝试从头开始创建效果。 我有这种感觉的原因有两个。

First off, by forcing yourself to create that layout using CSS, or that form validation script in Javascript from scratch, you force yourself to analyze and learn the intricacies of the language you are dealing with. This knowledge will help to increase your understanding of both the concepts and techniques involved in arriving at a solution for the task. And as far as I know, more knowledge and understanding is never a bad thing.

首先,通过强迫自己使用CSS创建该布局,或者从头开始使用Javascript中的表单验证脚本来创建布局,从而迫使自己分析和学习所处理语言的复杂性。 这些知识将有助于增进您对达成任务解决方案所涉及的概念和技术的理解。 据我所知,更多的知识和理解永远不是一件坏事。

The other main reason for creating something yourself is because you never know how another point of view may help to create a superior solution to a common problem. Challenge yourself to see if you can improve the solution. I guess you could call this ‘modifying the wheel’. If you are going to try and develop a better solution, you should study the ones already out there. Try to see their strengths and weaknesses, and see how you can improve the weaknesses while not losing the strengths.

自己创建某些东西的另一个主要原因是,您不知道另一种观点如何有助于为常见问题提供出色的解决方案。 挑战自己,看看是否可以改善解决方案。 我猜您可以称其为“修改车轮”。 如果要尝试开发更好的解决方案,则应该研究已有的解决方案。 尝试看看他们的长处和短处,看看如何在不失去长处的情况下改善缺点。

So over all, I say go ahead and reinvent the wheel. Challenge yourself to create a better solution, and in the process, increase your knowledge. Remember, the first wheels were stone slabs. I tend to think the wheels currently being manufactured for cars, bikes, etc. are probably a little bit better solution.

因此,总的来说,我要说,重新发明轮子。 挑战自己以创建更好的解决方案,并在此过程中增加知识。 请记住,第一个轮子是石板。 我倾向于认为当前为汽车,自行车等制造的车轮可能是更好的解决方案。

翻译自: https://timkadlec.com/2007/12/reinvent-the-wheel/

不要重新发明轮子

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值