2022-09-29 16:30:00 ~ 2022-09-30 16:30:00
策略模式的核心思想是对算法进行封装,委派给不同对象来管理。这样,我们就可以定义一系列算法,将每个算法封装到具有公共接口的一系列具体策略类中,从而使它们可以灵活替换,并让算法可以在不影响到客户端的情况下发生变化。同时,策略模式仅仅封装算法(包括添加、删除),但其并不决定在何时使用何种算法,算法的选择由客户端来决定。
登录后可查看文章图片
QQ直播前端团队的前端监控专项建设中,通过使用Grafana建设了监控数据大盘,本文将介绍Grafana的使用技巧,手把手分阶段超详细教学,助力各位成为Grafana高手!
登录后可查看文章图片
Opus 编码器具有优良的编码质量和一定的抗丢包能力,获得 RTC 领域厂商青睐,但其应对高丢包或突发丢包等复杂场景时效果较差。RTC 自研 NICO 编码器给出更好的解决方案,兼容 Opus 编码器的同时,提供更高的编码质量和抗丢包能力。
登录后可查看文章图片
随着数据的精细化分析,埋点的可用性、准确率是业界一直在攻克的难题。本文主要讲解京东到家在治理埋点数据、提高埋点数据质量工作中的一些实践经验。
登录后可查看文章图片
我们前进的道路并未因此而结束,基于5.0版本,我们会继续创造出更多的惊喜。
With WebAssembly, small binary sizes are good. We at Fermyon like the idea of small microservices for the cloud, but even if you are building for the browser, shaving off a few kilobytes of data can speed up your app.
Long, long ago, the amount of data our systems output to logs was small enough that we were able to retain all of the log files. This allowed our engineers to freely analyze the logs, say for troubleshooting our systems or improving applications. But as Uber’s business grew rapidly, the amount of data being logged increased dramatically. And so we were forced to discard log files after just a short period of time, given the prohibitive cost of retaining them–that is, until we integrated CLP into the logging library (Log4j) of our big data platform. In aggregate, CLP achieves a 169x compression ratio on our log data, saving storage, memory, and disk/network bandwidth at every level. As a result, we can now retain all logs at a fraction of the cost, without throwing away any insights, and the compressed logs can be efficiently searched without decompression.
登录后可查看文章图片
The physics behind spring animations.
DanceCC (Dance Compiler Collection) 是字节跳动的终端技术团队(Client Infrastructure) 下的编译工具链品牌,编译工具链团队成员由国内和硅谷两地的编译器专家及构建系统专家组成,提供基于开源的 LLVM/Swift 项目深度定制的clang/swift编译器、链接器、lldb 调试器和语言基础库等工具及优化方案,覆盖构建性能优化及应用性能稳定性优化等场景,本系列将会围绕这些场景中的优化案例,介绍编译工具链技术在字节的优化方案和落地情况。
登录后可查看文章图片
In what format should a REST API return and accept timestamps? The two most popular ways are Unix time (or a slight variation thereof) or ISO-8601. Both have their strengths and weaknesses and both are equally popular as we shall see. A sample of 20 APIs yielded nearly a 50/50 split. Therefore, no matter if this holds any persuasion or not, one can walk away knowing that their method of choice given Unix time or ISO-8601, is common knowledge and shouldn’t present a steep learning curve to other developers.
打破固有研发壁垒,提升平台能力,打通设计稿到楼层生产的线上化链路,一键精准还原设计稿,0代码,低门槛,让用户可以成为楼层样式的生产者。
登录后可查看文章图片
Ever wondered how a QR code works? No, me neither but it's low-key fascinating. (Warning, there is some extremely nerdy shit here.? )
瀑布流,是比较流行的一种网站页面布局,视觉表现为参差不齐的多栏布局,随着页面滚动条向下滚动,这种布局还会不断加载数据块并附加至当前尾部。
搜索场景下,相关性与流量效率都是两大核心目标。转转少无结果与转转主搜就是这样的两个模块,转转少无结果模块是转转主搜模块的兜底,当用户在APP搜索时,主搜商品展示完毕或者主搜商品过少时,会向用户展示“猜你喜欢”商品。即少无结果模块。
登录后可查看文章图片
本次跟大家分享的是基于出行领域全场景的mock提效探索与实践,包括以下几大部分:哈啰业务数据场景痛点、哈啰HiMock和传统Mock的对比、Mock技术支撑全场景业务域的实践、规划&探讨。
登录后可查看文章图片
A peek into the homegrown solution we built as the first design tool with live collaborative editing.
登录后可查看文章图片
One of the problems we had to solve when we added multiplayer editing to Figma was supporting simultaneous editing of ordered sequences of objects.
登录后可查看文章图片
The technical challenges of updating our autosave system.
A look at how we identify and address bugs.
登录后可查看文章图片
How Mozilla’s new language dramatically improved our server-side performance.
登录后可查看文章图片
I used to create GIFs in Adobe Photoshop. However, long and smooth animations have to be created using workarounds, as Photoshop has a 500 frames limit. It’s time-consuming and Photoshop is not my primary design tool anyway, so I had to look for the other options. Giffox records only selected snippets of the screen but doesn’t allow to upload videos from a local folder. Also, in the free version, it puts watermark and doesn’t make GIFs longer than 10 seconds. Not to mention that it’s available only on Mac while FFmpeg is cross-platform and doesn’t have such limitations. Ezgif has an upload limit of 2000 files and max file size of 6MB each or 100MB in total. Among online converters, it is one of the best, but it limits FPS depending on the video duration. FFmpeg has good performance and can work with large files.
登录后可查看文章图片
About two years ago, I tried to improve the support of the GIF encoding in FFmpeg to make it at least decent. This notably led to the addition of the transparency mechanism in the GIF encoder. While this is not always optimal depending on your source, it is in the most common cases. Still, this was merely an attempt to prevent shaming the encoder too much.
But recently at Stupeflix, we needed a way to generate high quality GIF for the Legend app, so I decided to work on this again.
All the features presented in this blog post are available in FFmpeg 2.6, and will be used in the next version of Legend app (probably around March 26th).
登录后可查看文章图片
解决日常问题相关的 3D 思维可以被认为是一个人从各个方面观察情况的能力。拆解问题,这样你就可以找到核心问题,然后在常规方法之外找到创造性的解决方案。
登录后可查看文章图片
Imagine for a moment the perfect organizational system. One that supported and enhanced the work you do, telling you exactly where to put a piece of information, and exactly where to find it when you needed it.
登录后可查看文章图片
关注公众号
接收推送