todd li 保留_用Todd Motto对JavaScript进行解密

todd li 保留

Todd Motto

Todd Motto is helping to demystify some of the misconceptions about how difficult JavaScript really is. Craig spoke to him about his talk coming soon at Future of Web Design.

托德·莫托(Todd Motto)正在帮助揭开关于JavaScript到底有多难的一些误解。 克雷格(Craig)向他讲了他即将在未来的Web设计中发表的演讲。

SITEPOINT (Craig Buckler): Hey Todd. Tell us a little about yourself and what you do.

SITEPOINT(Craig Buckler): 嗨,托德。 告诉我们一些关于你自己以及你做什么的事情。

TODD: Hey! I’m Todd, I’m 23, and a JavaScript and HTML5 developer. By day I’m lead front-end engineer at Appsbroker – we’re a Google Enterprise company that specializes in Cloud Platform technology solutions, which means we develop lots of fantastic software. By night, I’m an open source evangelist where I write scripts, utilities, plug-ins, frameworks and boilerplates. I’ve worked for Intel and Rolling Stone magazine during the past year and love teaching others about web and software development.

托德:嘿! 我是Todd,今年23岁,是JavaScript和HTML5开发人员。 如今,我是Appsbroker的首席前端工程师–我们是一家Google Enterprise公司,专门研究Cloud Platform技术解决方案,这意味着我们开发了许多出色的软件。 到了晚上,我是一个开放源码的传播者,在这里我编写脚本,实用程序,插件,框架和样板。 在过去的一年中,我为《英特尔》和《滚石》杂志工作,并且喜欢教别人有关Web和软件开发的知识。

SITEPOINT: How did you get into conference talking?

主持人: 您是如何参加会议讨论的?

TODD: I started doing a few smaller presentations — nothing bigger than a roomful of people — until last year when I flew out to San Francisco for HTML5 Dev Conf. While I was there, I visited a friend at Google who invited me to teach a workshop. I absolutely loved it! I wanted to do more sharing knowledge and teaching when I was contacted by Future Insights to speak at FOWD. I’ve spoken at a few meet-ups and events since last year to a variety of audiences.

托德:我开始做一些较小的演示文稿-最多不过是一小撮人-直到去年我飞往旧金山参加HTML5开发人员大会。 当我在那里时,我拜访了Google的一位朋友,他邀请我教一个研讨会。 我绝对喜欢它! 当Future Insights与我联系并在FOWD演讲时,我想做更多分享知识和教学的事情。 自去年以来,我已经在一些聚会和活动中向各种观众讲话。

SITEPOINT: Your FOWD talk is titled “Demystifying JavaScript: You Don’t Need jQuery”. There’s been a recent up-swell in anti-jQuery sentiment on the web; why do you think that is?

现场要点: 您的FOWD演讲标题为“揭开JavaScript的神秘面纱:您不需要jQuery”。 网路上最近有一种反jQuery情绪高涨的现象; 你为什么这么认为呢?

TODD: There has indeed, but unless you’ve a valid reason, anyone preaching “No jQuery” should tread carefully.

TODD:确实有,但是除非您有正当的理由,否则任何宣扬“ No jQuery”的人都应该谨慎行事。

I hope my talk excites jQuery and new JavaScript developers into learning some great new things and opens doors they didn’t know were there. I’m looking to show developers the similarities between modern JavaScript APIs and jQuery.

我希望我的演讲能激发jQuery和新JavaScript开发人员学习一些很棒的新事物,并打开他们不知道的地方。 我希望向开发人员展示现代JavaScript API与jQuery之间的相似之处。

Rather than being anti-jQuery, I want to show developers the alternative options. JavaScript isn’t perfect — there are bugs but, as we learn to combat them, we do our jobs better and get more experience. Sometimes, it’s good to know how to fix something than let a library gloss over the implementation details.

我想向开发人员展示替代选项,而不是反jQuery。 JavaScript并不是完美的-存在错误,但是随着我们学习与错误的斗争,我们会更好地完成工作并获得更多经验。 有时候,知道如何解决问题要比让库掩盖实现细节更好。

I recently wrote about the topic. It was well received which inspired me to pick it for my FOWD talk.

我最近写了关于这个话题的文章。 受到好评,这激发了我去参加FOWD演讲的机会。

SITEPOINT: Developers often use jQuery as an unnecessary crutch. Does JavaScript have a reputation for being difficult?

现场要点: 开发人员经常将jQuery用作不必要的拐杖。 JavaScript是否因困难而享有声誉?

TODD: It definitely does have that reputation and with good reason. Douglas Crockford dubbed it one of the most misunderstood programming languages ever and there are many good and bad parts. It’s taken me great effort to understand JavaScript at the level I do today. It comes from reading books, studying and researching anything I didn’t know. As a front-end developer, I wanted to master the front-end stack.

托德:它确实有这样的声誉,并且有充分的理由。 道格拉斯·克罗克福德(Douglas Crockford)称其为有史以来最容易被误解的编程语言之一,并且有很多好事与坏事。 在今天的水平上,花了我大量的精力去理解JavaScript。 它来自读书,学习和研究我不知道的东西。 作为前端开发人员,我想掌握前端堆栈。

jQuery will provide a crutch for those who do not want to learn JavaScript beyond a certain level — and that’s OK for them. I used to do the same but it can lead to sticky situations. Some problems can only be solved in JavaScript — not jQuery alone.

jQuery将为那些不想学习JavaScript的人提供一个拐杖,这对他们来说没关系。 我曾经做过同样的事情,但它可能导致出现粘滞情况。 有些问题只能用JavaScript解决-不能单独使用jQuery。

SITEPOINT: Is jQuery useful for novice JavaScript developers or can it lead to bad practices?

SITEPOINT: jQuery对JavaScript新手有用吗,还是会导致不良做法?

TODD: jQuery provides great sugar syntax and developers love it. But it does allow us to write terribly verbose and ugly code. I have but, when you begin to learn JavaScript, you uncover the great parts of the language. Some code I was writing in jQuery I’d never do in JavaScript.

TODD: jQuery提供了很棒的糖语法,并且开发人员喜欢它。 但这确实使我们能够编写冗长而丑陋的代码。 但是,当您开始学习JavaScript时,您会发现该语言的大部分内容。 我在jQuery中编写的某些代码我从未在JavaScript中编写过。

SITEPOINT: Do you think developers can drop jQuery completely or are there situations when it’s justified?

SITEPOINT: 您认为开发人员可以完全删除jQuery,还是有理由这样做?

TODD: Dropping jQuery altogether is perhaps not always suitable. I’ve written a few JavaScript-only projects with no libraries, the biggest was around 1,000 lines. The point isn’t to use jQuery or not — the point is to not be reliant on jQuery.

TODD:完全放弃jQuery可能并不总是合适的。 我编写了一些没有库的纯JavaScript项目,最大的项目是大约1000行。 关键不是要不要使用jQuery,而是要不要依赖jQuery。

jQuery should be used sensibly and I’d encourage developers to look at learning some of the JavaScript equivalents to learn more about what’s happening in jQuery’s methods. In some cases, mixing JavaScript and jQuery is a perfect solution. The more JavaScript you learn, the less you’ll probably want to use jQuery.

应该明智地使用jQuery,我鼓励开发人员着眼于学习一些JavaScript等效项,以了解有关jQuery方法中正在发生的事情的更多信息。 在某些情况下,混合使用JavaScript和jQuery是一个完美的解决方案。 您学习JavaScript越多,使用jQuery的机会就越少。

SITEPOINT: Can you see a time when the jQuery project is abandoned altogether?

SITEPOINT: 您能看到jQuery项目完全被放弃的时候吗?

TODD: Maybe. Who knows?! JavaScript is changing rapidly — it’s an exciting time. I love the jQuery project and would hate to see it abandoned but we may reach a point when jQuery is merely providing shorter or alternative wrappers to methods which are almost identical in modern JavaScript. ECMAScript 6 (the latest version of JavaScript) is the biggest change of the language since inception and it’ll be interesting to see how jQuery adapts.

托德:也许吧。 谁知道?! JavaScript瞬息万变-这是令人兴奋的时刻。 我喜欢jQuery项目,但不希望看到它被放弃,但是当jQuery只为现代JavaScript中几乎相同的方法提供较短或替代的包装时,我们可能会遇到一个问题。 自从问世以来,ECMAScript 6(JavaScript的最新版本)是该语言的最大变化,看看jQuery如何适应它将会很有趣。

SITEPOINT: Are you looking forward to seeing any other speakers at FOWD?

现场人士: 您是否希望在FOWD上看到其他发言人?

TODD: I’m looking forward to seeing all the speakers and meeting them in person!

TODD:我期待与所有演讲者见面并亲自见面!

SITEPOINT: Many thanks, Todd.

现场人士: 非常感谢,托德。

Todd Motto joins Paul Boag, Peter Gasston, Harry Roberts and other amazing speakers at Future Of Web Design (FOWD) in London from April 7th-9th. Craig will also be there begging for article ideas! A few tickets are still available so don’t delay!

Todd Motto 将于4月7日至9日在伦敦的Future of Web Design(FOWD)上与Paul Boag,Peter Gasston,Harry Roberts和其他出色的演讲者一起加入。 克雷格(Craig)也将在那里乞求文章创意! 仍有几张票可用,请不要耽搁!

翻译自: https://www.sitepoint.com/demystifying-javascript-todd-motto/

todd li 保留

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值