blog icon indicating copy to clipboard operation
blog copied to clipboard

Yuying Wu's Blog

Results 14 blog issues
Sort by recently updated
recently updated
newest added

Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.4. Changelog Sourced from moment's changelog. 2.29.4 Release Jul 6, 2022 #6015 [bugfix] Fix ReDoS in preprocessRFC2822 regex 2.29.3 Full changelog Release Apr 17, 2022...

dependencies

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.2. Release notes Sourced from axios's releases. v0.21.2 0.21.2 (September 4, 2021) Fixes and Functionality: Updating axios requests to be delayed by pre-emptive promise creation...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=path-parse&package-manager=npm_and_yarn&previous-version=1.0.6&new-version=1.0.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.8 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 Commits 8d4b369 chore(release): 2.8.9 29adfe5 fix: backport...

dependencies

前几天面试候选人的时候,有提到用`React 16.x`重构了一个电商首页,对各个业务模块做更细颗粒拆解和代码组织,提升开发效率和降低维护成本,在这里要给小同学点个赞,有想法也有落地成果。后来问及“一个模块报错,搞挂了整个页面”的问题,大家都知道,如果页面的entry是index.js,在里面引入各个components的话,运行时只要有一行代码挂了,整个js都会挂掉。针对这个问题,除了前端同学的自测、QA同学的测试或者人肉的code review,有没有代码层面或者机制,做好模块间的错误隔离/处理/上报?比较遗憾的是,在生产环境下,候选人没有针对这个线上大流量页面做相关的处理,靠人肉规范,没能给出比较好的错误隔离的设计思路和实践方案。 其实相关的思路可以有很多种,模块/页面级的异常处理、commit前跑test case、提交后或者发布前headless检查页面报错,等等。 在代码异常处理上,一般我们会用try-catch来做: ```js try { ReactDOM.render(, document.getElementById('root')); } catch(error) { console.error('Unknown error intercepted. error: ', error); } ``` 但可以发现,异常信息是捕获到了,但是代码运行就结束了,并没有从异常中“恢复”。 ## Why Error Boundaries? > 过去,组件内的 JavaScript...

react

最近小伙伴们有在考虑换工作的事宜,我刚好看到这本《人人都有好工作》,里面有一章专门介绍哪些内容应该出现在简历中,而哪些不应该,摘录下来,共勉。 ## 一、你有必要准备三种不同格式的简历 * 为多数应聘公司准备的word文档 * 纯文本文件 * 你的个人网页 ## 二、准备多份简历 * 不同的工作以及不同的公司都会对应聘者有着不同的要求。即便你在同一家公司同时申请的两个岗位都叫做“应用程序员”,这依然代表了两份不同的工作。 * 简历必须是写给它的特定读者看的,它一定得是为你正在应聘的公司以及你所追求的工作量身定做的。 * 应聘职位的具体说明也将直接影响你的简历内容。 * 如果你现在还没有一份像样的简历,那就赶紧动手开始写吧,而且还要记得时不时地重新审视一遍你的作品。随时准备好更新资料丰富简历,也准备好删除那些和当前的情况不再相关的内容。要把简历当成是一个花园,栽种新鲜的植物,铲除那些枯萎的。 ## 三、简历至少包括以下内容 * 联系方式 * 不能把当前工作的电话写进联系电话栏 * 邮箱必须是个人邮箱地址 * 职业自述 *...

面试

有什么想法,欢迎在这里交流哈 😄🎉

Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1. Commits 5b44c1b 3.0.1 9fbc20a chore: better number regex 41ae98e Cleanup c59f35e Move to Sideway See full diff in compare view Maintainer changes This version...

dependencies