# 2019.10.21 今天是每日时报陪你的第 263 天

[视频] Ben Awad 讲解 TypeScript 版 GraphQL 基础教程:https://www.youtube.com/watch?v=bqdEXPzjzQ4&list=PLN3n1USn4xlma1bBu3Tloe4NyYn9Ko8Gs&index=2 (opens new window)

[文章] 《解密国内 BAT 等大厂前端技术体系 - 阿里篇》文章质量较高:https://mp.weixin.qq.com/s/haSCjEOVCZSeaT2q5E2BQw (opens new window)

[类库] Fast Diff 可以对比两个字符串中哪部分有差异性:https://github.com/jhchen/fast-diff (opens new window)

[资源] 作为技术人员,在考虑是否加入哪家公司时,可以在面试结束时问面试官这些话:https://github.com/yifeikong/reverse-interview-zh (opens new window)

# 配图 - 解密国内 BAT 等大厂前端技术体系

# 示例 - Fast Diff

var diff = require('fast-diff');

var good = 'Good dog';
var bad = 'Bad dog';

var result = diff(good, bad);
// [[-1, "Goo"], [1, "Ba"], [0, "d dog"]]

// Respect suggested edit location (cursor position), added in v1.1
diff('aaa', 'aaaa', 1)
// [[0, "a"], [1, "a"], [0, "aa"]]

// For convenience
diff.INSERT === 1;
diff.EQUAL === 0;
diff.DELETE === -1;
Last Updated: 10/21/2019, 6:49:11 PM