萌新如何成为 TiDB Contributor

This article is an opportunity for me to give you TiDB Contributor, depending on whether you want it or not.


Intro

This article was written under the leadership of Liu boss. I also hope that more people will be involved through such small activities. Although these tasks are very simple, these small tasks can reflect our TiDB team’s perfect pursuit of code quality. This is what we should learn. This is an opportunity for you to improve/improve your code level. You shouldn’t give up easily.

Overview of the problem

Some of the % in TiDB’s test cases enclose the statement with double quotes "", but Github escaping it when displayed, so it will be marked with % red, and we are doing a review of It doesn’t look beautiful at the moment, so we need to change this and recommend replacing it with the Go language.

For examples: PR #5697

How to decide?

I can give you a reference note. If you use the Go syntax highlighting plug-in, then you can see that the unhighlighted part is escaping. It may be problematic. Then we need to make changes. [eg, 100%500, %W %r].

github_tidb_review_3

cannot take a address of temp params

本文介绍不能给临时变量分配内存地址。 The Go Programming Language Specification Address operators For an operand x of type T, the address operation &x generates a pointer of type *T to x. The operand must be addressable, that is, either a variable, pointer indirection, or slice indexing operation; or a field selector of an addressable struct operand; or

基于 Docker 进行 Golang 开发

本文将介绍如何基于 Docker 进行 Golang 的开发。 前言 Docker 一般被用来部署服务,作为容器在使用,但是也可以用于开发容器的。 为什么要在开发中使用 Docker ? 一致的开发环境

小白是怎么对 TiDB 进行源码分析的?

本文我将拿一个很简单的例子来讲解小白是怎么对 TiDB 进行源码分析和修复问题的过程的,还有我对于如何成为 TiDB Contributor 的一些简单总结。 题外话 最近 TiDB 又推出了一个

透彻理解 git

本文是对于 git 的一些使用备忘总结。 Git 撤销已经 push 到远端的 commit 本地需要回退 先在本地回退到需要的版本 git reset –hard <需要回退到的版本号(只需输入前几位)

Golang 之 vgo

本文是对 vgo 的一些介绍说明。 扩展阅读 https://zhuanlan.zhihu.com/p/33926171 https://studygolang.com/articles/12435 茶歇驿站 一个可以让你停下来看一看,在茶歇之余给你帮助的小站,这里的内容主要是后端技术,个人管理,团队管

[译]多线程 go 向导

本文翻译自“multithreading-go-tutorial”,希望这一篇介绍能够让我们对多线程有更深一点的理解。 原文:https://

日志切割 logrotate 之 copytruncate

本文是对于 logrotate 日志切割的一点点小总结。 我们在使用 logkit 上报 Nginx 日志数据的时候,发现被切割之后,无法正常上传了。 我们的 logrotate 配置使用的是 copytrunc