经济学人最新社论

This is the editorial from our latest JavaScript newsletter, you can subscribe here.

这是我们最新JavaScript新闻通讯的社论,您可以在此处订阅 。

Hey everyone, welcome to a brand new year on SitePoint JavaScript. I hope you had a great break (for those of you that took one) and are ready to start off 2017 with a bang.

大家好,欢迎来到SitePoint JavaScript全新的一年。 我希望您能度过一个伟大的假期(对于那些度过一个假期的人),并准备在2017年开始大爆炸。

2016 was a crazy year for JavaScript! We saw an ever increasing adoption of ES6 and the rise of progressive web apps. Also, Yarn emerged as a competitor to npm and JavaScript fatigue fatigue became a thing. In case you missed any of this, or you’d simply like to reminisce on the year just passed, we’ve got you covered. Craig Buckler looks at these events and more in his post JavaScript: 2016 in Review. It’s well worth a read.

对于JavaScript来说,2016年是疯狂的一年! 我们看到ES6的采用率在不断增长,并且渐进式Web应用程序也正在兴起。 同样,Yarn成为npm的竞争对手,JavaScript疲劳也成为了疲劳。 如果您错过了其中任何一个,或者只是想回想刚刚过去的一年,我们已经为您服务。 克雷格·巴克勒(Craig Buckler)在他的JavaScript:2016 in Review中对这些事件进行了更多研究。 值得一读。

Looking forward to 2017 I wonder two things. Will this year be as crazy as the last? And where should I focus my learning efforts in the coming 365 days? The answer to the first question is “almost definitely”, but the answer to the second is somewhat more complicated. Knowing what to learn depends rather a lot on your situation, for example are you looking for a new job? Do you want to become more productive in your current one? Or do you want to check out a couple of new technologies to get a feel for how they stack up against those you already know?

展望2017年,我想知道两件事。 今年会和去年一样疯狂吗? 在接下来的365天里,我应该把学习重点放在哪里? 第一个问题的答案是“几乎可以肯定”,但是第二个问题的答案则有些复杂。 知道学习什么在很大程度上取决于您的情况,例如,您是否正在寻找新工作? 您想在当前的工作中提高生产力吗? 还是您想查看一些新技术,以了解它们如何与您已经知道的技术相提并论?

If you’re in that last group, we’ve got you covered there, too. Tim Severien started 2017 by taking a look at three libraries that are worth keeping an eye on in this coming year. I’d encourage you to give that post a read and let Tim know if you agree with his choices (spoiler: one of them is Vue.js).

如果您属于最后一组,我们也可以为您服务。 蒂姆·塞韦里安(Tim Severien)从2017年开始,考察了来年值得关注的三个图书馆 。 我鼓励您阅读该文章,并让Tim知道您是否同意他的选择(破坏者:Vue.js就是其中之一)。

As for me, I decided that one of my goals for 2017 would be to cut back on my use of jQuery. This isn’t because I’ve suddenly jumped on the anti-jQuery bandwagon. I haven’t. Rather because jQuery was so awesome when it first came on the scene, that today I often use it without thinking. I don’t stop and consider what browsers can do natively.

对于我来说,我决定2017年的目标之一是减少对jQuery的使用。 这不是因为我突然跳上了反jQuery的潮流。 我没有 而是因为jQuery首次出现时是如此的出色,以至于今天我经常不加思索地使用它。 我不会停下来考虑一下浏览器可以做什么。

And actually, this jQuery diet is working out quite well. For example, I recently needed to select an element’s closest parent element, which was an anchor tag. In jQuery that’d be no problem, you’d do $el.closest("a") but in vanilla JS I was unsure. So I hit youmightnotneedjquery.com, entered “closest” as the search term and got back zero results. Hmm … not ideal.

实际上,这种jQuery饮食效果很好。 例如,我最近需要选择一个元素的最接近的父元素,即锚标记。 在jQuery中这没问题,您可以执行$el.closest("a")但是在普通JS中我不确定。 因此,我点击了youmightnotneedjquery.com ,输入“ closest”作为搜索词,并返回了零结果。 嗯……不理想。

I had a go at putting together my own solution and came up with this:

我可以自行整理解决方案,并提出了以下解决方案:

while (el.parentNode.tagName !== 'A') {
el = el.parentNode;
}

Which worked, but was kinda ugly. I then googled a bit and found that both Firefox and Chrome implement element.closest() natively. This was all I needed. Job done!

哪个可行,但有点丑陋。 然后我在Google上搜索了一下,发现Firefox和Chrome都本地实现了element.closest() 。 这就是我所需要的。 任务完成!

Obviously, replacing jQuery with experimental browser features isn’t an option all the time. If you’re worried about compatibility for older browsers, then using it is a no-brainer. And spending minutes googling what would have taken seconds in jQuery isn’t exactly productive. But even today, websites download many KB of JavaScript, to do what has been part of the standard DOM for years. Incorporating this change into the way I work will force me to become more familiar with what modern browsers are capable of — a worthy goal for 2017.

显然,始终没有用实验性浏览器功能替换jQuery的选择。 如果您担心与旧版浏览器的兼容性,那么使用它就很容易了。 花几分钟的时间来搜索jQuery需要花几秒钟的时间并不是很有效。 但是即使到了今天,网站也下载了许多KBJavaScript,以执行多年来作为标准DOM的一部分。 将这种变化纳入我的工作方式将迫使我更加熟悉现代浏览器的功能-这是2017年的目标。

But what about you? Where will you be concentrating your energies for the next 365 days? Do you intend to learn a new framework (if so which one)? Will you be giving Node a try? Or maybe your goal is to attend a meetup or contribute to open source.

那你呢 在接下来的365天中,您将把精力集中在哪里? 您打算学习一种新的框架(如果是这样的话)? 您会尝试Node吗? 也许您的目标是参加聚会或为开源做贡献。

Whatever it is (or isn’t), I’d love to hear about it in the comments below.

不管它是什么(或不是),我都想在下面的评论中听到。

翻译自: https://www.sitepoint.com/what-do-you-want-to-learn-in-2017/

经济学人最新社论

经济学人最新社论_社论:您想在2017年学到什么?相关推荐

  1. The missing quarter of a million 消失的25万 | 经济学人20230311版社论高质量双语精翻

    文 / 柳下婴(微信公众号:王不留) 本期我们选择的是3月11日<经济学人>周报封面文章,即社论区(Leaders)的首篇文章:<25万英国人消失之谜>("The m ...

  2. 经济学人特稿:你应该送孩子去私立学校吗? | 经济学人20230610版社论双语精翻

    "升学季"特稿:2023年6月10日<经济学人>周报封面文章<送孩子去私立学校--值吗?>(Are private schools worth it?) I ...

  3. The baby-bust economy “婴儿荒”经济 | 经济学人20230603版社论双语精翻

    2023年6月3日<经济学人>(The Economist)封面文章暨社论(Leaders)精选:<"婴儿荒"经济>("The baby-bust ...

  4. Big, green and mean 宏伟、绿色而狭隘 | 经济学人20230204版社论高质量双语精翻

    文 / 柳下婴(微信公众号:王不留) 同日(2023年2月4日),一篇发表在<经济学人>日报(公众号Daily Briefing--译者注)特别报道栏目中题为<重振美国经济>( ...

  5. The humbling of Goldman Sachs 高盛走下神坛 | 经济学人20230128版社论高质量双语精翻

    文 / 柳下婴(微信公众号:王不留) 选自TE20230128,leaders The humbling of Goldman Sachs 高盛 -- 走下神坛 Being good in a bad ...

  6. 《经济学人》最新封面评下一个前沿技术:脑机接口正等待远见者的到来

    编译 | 陈韵竹.张震.Edison Ke.王艺 来源 | 经济学人 脑机接口 这听起来像是科幻小说中才会出现的概念. 在日内瓦 Wyss 生物和神经工程中心里,实验所用的设备上闪烁着微光.一名实验技 ...

  7. matlab贝叶斯优化工具箱_经济学人的神器——BEAR(贝叶斯估计、分析和回归工具包)...

    武林至尊,宝刀屠龙, 号令天下,莫敢不从, 倚天不出,谁与争锋. --金庸·<倚天屠龙记> Bayesian Estimation, Analysis and Regression(简写为 ...

  8. 多年阅读《经济学人》是一种什么体验?

    文 / 王不留(微信公众号:王不留) 1. 大家如果看过2020年12月23号的第一篇文章,应该知道这是我的第二个公众号. 第一个公众号是在2018年申请的,那几年陆陆续续写了近百篇文章,但2020年 ...

  9. 扒一扒你不知道的《经济学人》大家族,其中一款重磅产品被严重忽略

    文 / 王不留(微信公众号:王不留) 作为考研党情有独钟的刊物,<经济学人>,一直是考研英语命题小组钟爱的题源.但是,"经济学人"并不是只有<经济学人>. ...

最新文章

  1. django教程目录
  2. 广州限购后首场车展明日开幕
  3. 计算机网络原理第二章笔记,计算机网络原理笔记 第三章 数据链路层(一)
  4. GDB调试qemu-kvm
  5. 前端学习(2484):发表更新
  6. 端口可以随便设置吗_驱动可以随便更新吗?
  7. Linux学习笔记---使用BusyBox创建根文件系统(一)
  8. 交换排序图解_排序算法(一):初级比较排序
  9. Mysql update 语句(chm文档)
  10. java运行vbs_如何在Java中执行VBS脚本?
  11. pdf 分形 张济忠_分形
  12. 基本农田卫星地图查询_gps卫星信号模拟器如何gps信号
  13. 11_超级鹰学习及应用
  14. [踩坑记录]VS2017+大恒MER-131-210U3C相机
  15. 赛车!赛车!Wipe out everything!
  16. Postgresql12 安装及设置远程访问
  17. 在word中添加公式并对齐
  18. 关于vs2005、vs2008和vs2010项目互转的总结
  19. swt包下载,swt包引入(一个简单的SWT程序实例及详解)
  20. Luminati动态住宅IP使用教程_AdsPower防关联浏览器软件教程(二)

热门文章

  1. 项目管理理论中关于软件项目外包采购管理的探讨(转)
  2. 坐拥两条黄金赛道,爱博医疗未来必是星辰大海!
  3. 这个品质超高的漫画自动上色AI,让你DIY出喜欢的配色 | 代码
  4. 图解电动汽车:电动汽车的未来(新四化)
  5. 一个用C#写的无限结点树的原码
  6. 编程题走迷宫_洛谷P1238 走迷宫题解
  7. 让自己的知识形成一个体系
  8. uniapp中开发APP时渲染后台返回的二维码并保存到系统相册
  9. CTF——Web——PHP序列化和反序列化
  10. 2022-2028全球与中国公共行业微电网市场现状及未来发展趋势