2022-06-26 16:30:00 ~ 2022-06-27 16:30:00
Our science-backed approach to updating a color system that supports over 100 products.
登录后可查看文章图片
“设计体系”是在“设计规范”的基础上,让规范更便于理解、应用、实现、可规模化复用;
“设计规范”是在“设计体系”的框架内,更深入业务,内容更加精细专业。
本文将介绍字节跳动在埋点数据流业务场景遇到的需求和挑战以及具体实践,分为上下篇呈现。上篇主要包含埋点数据流简介与埋点数据流建设实践;下篇主要包含埋点数据流治理实践以及未来规划。
登录后可查看文章图片
Here's a quick summary of where GNU grep gets its speed. Hopefully you can carry these ideas over to BSD grep.
#1 trick: GNU grep is fast because it AVOIDS LOOKING AT EVERY INPUT BYTE.
#2 trick: GNU grep is fast because it EXECUTES VERY FEW INSTRUCTIONS FOR EACH BYTE that it *does* look at.
GNU grep uses the well-known Boyer-Moore algorithm, which looks first for the final letter of the target string, and uses a lookup table to tell it how far ahead it can skip in the input whenever it finds a non-matching character.
GNU grep also unrolls the inner loop of Boyer-Moore, and sets up the Boyer-Moore delta table entries in such a way that it doesn't need to do the loop exit test at every unrolled step. The result of this is that, in the limit, GNU grep averages fewer than 3 x86 instructions executed for each input byte it actually looks at (and it skips many bytes entirely).
假定有两个索引 index1、index2,这两个索引中有大量相同数据。类似:linux 下的 diff 命令的操作,找出一个索引中存在而在另外一个索引不存在的数据。
登录后可查看文章图片
CSS 方法论是一种面向 CSS、由个人和组织设计、已被诸多项目检验且公认有效的最佳实践。这些方法论都会涉及结构化的命名约定,并且在组织 CSS 时可提供相应的指南,从而提升代码的性能、可读性以及可维护性。
根据 State of CSS 2020 的调查结果显示,目前使用最多的五种分别为:BEM、ACSS、OOCSS、SMACSS、ITCSS。
登录后可查看文章图片
Three documents I write (one-pager, design doc, after-action review) and how I structure them.
关注公众号
接收推送