7 PRs in 4 days, 80% code coverage, is open source "involution" or practice?

 

In the hot summer, the 2022 competition of the Open Source Star Reaching Project is still in full swing. Every day, nearly 800 developers from all over the world are in the open source star-seeking activity group, chatting passionately about their participation in open source contributions, and nearly 100 outstanding contributors are competing for the month's point contribution list" Top King".

Some people said that "open source has also played an internal role", and some people said that "reaching for the stars allows them to really understand what open source is in practice". So, what kind of people are participating in the open source star project? What kind of story are they experiencing? How has open source changed their work and their lives?

In the Star Contribution List of the Open Source Star Reaching Project in July, there are two developers of open source projects who are also Top 3 outstanding contributors in the scoreboard—Screenkeeper and Huang Qian, who shared their open source growth stories with us.

1. The growth story behind 7 PRs in 4 days

In Shenzhen at 9:00 in the morning, every minute is extremely precious. Whether you can catch the nearest subway or bus, and whether you can achieve full attendance this month depends on these short minutes. After several appointments, Screenkeeper could only spare an hour before going to work to share with us his story of participation in open source.

For him, time is precious. Because in his job, he leads a technical team of more than 10 people. In addition to the daily management and coordination work, he also needs to spend more time controlling the technical wind direction. Open source is one of the ways he achieves this goal. Therefore, open source exists more in his "spare time", but this never affects his dedication and time.

In 2012, Screenkeeper graduated from college and this year is his 10th year working. From Guangzhou to Shenzhen, from PHP to Java to Golang, along the way, the fledgling programmer has now become half a technical expert.

Looking back on the establishment of open source awareness, Screenkeeper recalled that his first workplace mentor had the most profound influence on him. Because the mentor is an active practitioner of open source, "I have always regarded him as my role model for many years," Screenkeeper said. For him, the motivation of role models is not only technical ability, but also enthusiasm for work and open source: outside of busy work, his mentor still spends time participating in open source and enjoys it. Such a move planted the enthusiasm and seeds of open source contribution for him.

Today, due to the needs of technical management, Screenkeeper uses various open source software in his work, and these software sometimes cannot fully meet his own requirements, so he tries to add new functions to the software, and has since embarked on the road of participating in open source .

In the open source star project, Screenkeeper signed up to participate in Apache ShardingSphere, a top-level project graduated from the Apache Foundation. Globally, Apache ShardingSphere has more than 400 Contributors, followed by 170,000 developers (Star number), and 35,145 Commits, which shows its complexity.

On July 14 this year, Screenkeeper submitted the first Pull Request to Apache ShardingSphere in the Open Source Star Reaching Project. In just 4 days, he contributed 7 PRs to ShardingSphere. So far, the Github homepage of Screenkeeper is full of records of code contributions for ShardingSphere.

Contributions to ShardingSphere documented on the Screenkeeper Github home page

Although during this period, he will encounter "PR problems" that he can't solve no matter what, but the community members will always give him guidance, help review the code, and rich developer documentation, which makes Screenkeeper feel that open source is not as expected It is so difficult, and the efficient collaboration of the community has also subverted his understanding of traditional development methods.

Until I learned more about open source and participated in it personally, Screenkeeper finally understood the reason behind the enthusiasm: Open source is more of a hobby and interest, just like music, movies, and games, and the process is very relaxed. People who can participate in open source for many years will not use the word "persistence", just as gamers will not say that they "persist" in playing games.

In the narration, Screenkeeper mentioned Paul Graham's "Hackers and Painters" many times. In the author's view, computers are not cold, precise, and orderly. way of expression. Participating in open source may be a programmer's greatest romance to the world.

2. 80% code coverage is the goal of this year

Love not only appeared in the story of Screenkeeper, but also integrated into Huang Qian's career. In Nanjing, he has written code for 15 years. Without the love of technology, it is almost impossible to happen. After learning that Huang Qian was in the game industry before, and Nanjing is very close to Shanghai, where game companies gather, we naturally asked him why he didn't go to Shanghai? Huang Qian's answer is also very simple: married.

When it comes to starting a family, it is natural to talk about responsibility. When most people hear responsibility, they will think of tedious work, strict indicators, and family burdens... On the contrary, it is all kinds of pleasant things such as freedom, happiness, and love. But the story of Huang Qian and Kaiyuan allows us to see how the combination of freedom and responsibility, interest-oriented and goal-oriented, happened.

In the open source star project, Huang Qian participated in the contribution of the GoFrame project, which is a general open source basic development framework. In 2019, Huang Qian came into contact with GoFrame, used it to open up back-end data for a certain operation function of the company, and gradually changed from a user to a contributor, and finally became the Main Contributor of GoFrame.

Huang Qian's Cat: Yaoyao and Dandan

80% code coverage, this is Huang Qian's goal to achieve in GoFrame this year. Code coverage (Code coverage) is a measure in software testing, which is used to describe the proportion and extent of the source code in the program being tested, and to some extent can reflect the quality of the software code.

The reason for setting such a goal is to make GoFrame a recommended project of awesome-go, known and used by more people, and 80% code coverage is a hard target. During the project planning and community discussions at the beginning of the year, Huang Qian took the initiative to take over this task. This means that you need to get in touch with GoFrame's various modules, large and small, and write the code of the test case for the code of each module.

In this process, you can be familiar with the source code of each module, and at the same time have a deeper understanding of the implementation of each module. In this way, when some small partners ask questions, they can better help them solve the problems they encounter, and at the same time improve their abilities.

Driven by goals and a sense of responsibility, Huang Qian spends about 15 hours a month contributing code with other project members. The ideas of the partners are better condensed together, and while continuously improving their own technical strength, the project is also growing and being used by more and more developers.

In Huang Qian's view, open source is a lonely thing. Among the 10,000 users of open source projects, only a dozen or so will participate in the contribution, but it is this group of people who are spontaneously driven by responsibility, trust each other, help each other, create unique and valuable works, and jointly fight against the loneliness of the world.

3. Open source, starting from the Star Reaching Project

In the "Open Source Star Reaching Project", there are many stories like Screenkeeper and Huang Qian. Helping more people know about open source, understand open source, love open source and participate in open source is what the "Open Source Star Project" has been doing.

In 2022, Tengyuanhui Community will launch the "Open Source Star Reaching Project" in conjunction with more than 80 open source foundations, open source communities, open source projects, research institutions, universities and media organizations at home and abroad. In the "Open Source Reaching Star Project", participate in Participants can choose various tasks, participate in project co-construction, accumulate personal points, experience the fun of open source in the context of "healthy competition", and deepen their investment in open source.

Up to now, the "Open Source Reaching Star Project" has attracted more than 10 technical fields such as cloud native, big data, AI, and edge computing, and more than 80 different open source projects have joined. More than 1,000 active developers, open source practitioners, open source evangelists, and open source compliance experts have participated in actual open source contributions.

In the future, I hope that more developers can participate in open source, jointly build the "Open Source Star Project", and embark on your open source journey.

For more information visit:

The official website of the Open Source Star Project:  https://cloud.tencent.com/act/pro/weopen-star

Open source star project Github repository:  https://github.com/weopenprojects/WeOpen-Star

Guess you like

Origin blog.csdn.net/TCOS001/article/details/126528928