BytePower 技术周刊 - 029

2022/12/10

# BytePower 技术周刊 - 029

# 📘 封面


世界杯淘汰赛战况激烈,克罗地亚门将利瓦科维奇在两场点球大战中的突出表现帮助克罗地亚队挺进四强,淘汰夺冠热门巴西队。

# 💥 热点

# ChatGPT (opens new window)

# ChatGPT: Optimizing Language Models for Dialogue


可以称得上史上最强聊天 AI 了。

# ChatGPT - 科技爱好者周刊(第 234 期):AI 聊天有多强? (opens new window)

# 📖 文章

# What is Dependency Injection & why do we need it ? (opens new window)(英文)

To summarize here are the key benefits

  • Makes the system loosely coupled as it decouples the implementations of classes from the implementations of those classes’ dependencies.
  • Allows code to be testable with different mock implementation
  • Allows sharing of a single dependency between many classes, when applicable.

# 扩展阅读

# Git 只获取部分目录的内容(稀疏检出) (opens new window)(中文)

有点时候一个 git 仓库很大,而我们需要的内容又很少,全部 checkout 比较慢,可以试试 git 的 sparse checkout(稀疏检出)功能。

$ git init <project>
$ cd <project>
$ git remote add origin ssh://<user>@<repository's url>
$ git config core.sparsecheckout true
$ echo "path1/" >> .git/info/sparse-checkout
$ echo "path2/" >> .git/info/sparse-checkout
$ git pull origin master

# 1Password Passkeys 将在 2023 年初开始支持无密码技术 (opens new window)(中文)

1Password 发布了一个视频和 DEMO 页面,演示了将于 2023 年推出的无密码技术 1Password Passkeys 的外观和示例,为一个没有密码的世界做好准备。

1Password Passkeys 将在 2023 年初开始支持无密码技术,在此之前,微软的无密码技术:微软今天砍掉了帐户密码,从此登录再也无需密码,苹果的通行密钥,以及 FIDO 联盟,都在做这件事情:让密钥替代密码。

道理很简单:没有密码,就不会丢失密码。

# The Illustrated QUIC Connection (opens new window)(英文)

本文介绍了 QUIC 协议的通信过程。

# Embedding Vue.js Apps in Go (opens new window)(英文)

本文介绍了使用 Go embed 将前端文件打包,方便部署。

Background

When releasing a backend web service, adoption and usability can often be increased by also including a frontend. Traditionally, web-based frontends are often served through a separate, dedicated server (e.g. NGINX). However, this can make deployment more complex, since this requires an administrator to manage separate services in tandem.

With the release of Go’s 1.16’s embed package, we can now include these frontend assets directly in our Go binaries, making a full-stack server deployment as simple as running a single executable file.

# 🧰 工具

# Quick Reference (opens new window)

为开发人员分享快速参考备忘清单【速查表】

该作者的另一个项目:Linux Commond (opens new window)

# Goreplay (opens new window)

GoReplay is an open-source network monitoring tool which can record your live traffic and use it for shadowing, load testing, monitoring and detailed analysis.

# Grex (opens new window)

一个帮助开发者书写正则表达式的工具。

# 菜鸟工具 (opens new window)

# Lapce (opens new window)

Lightning-fast and Powerful Code Editor written in Rust

# Features

  • Built-in LSP (Language Server Protocol) support to give you intelligent code features such as: completion, diagnostics and code actions
  • Modal editing support as first class citizen (Vim-like, and toggleable)
  • Built-in remote development support inspired by VSCode Remote Development. Enjoy the benefits of a "local" experience, and seamlessly gain the full power of a remote system.
  • Plugins can be written in programming languages that can compile to the WASI format (C, Rust, AssemblyScript)
  • Built-in terminal, so you can execute commands in your workspace, without leaving Lapce.

# Powertoys (opens new window)

Microsoft PowerToys 是一组实用工具,可帮助高级用户调整和简化其 Windows 体验,从而提高工作效率。

上次更新: 2022/12/12 11:24:57