Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
OSS コミットゴルフのすすめ / Let's play OSS-contribute-golf
Search
megane42
October 06, 2023
0
84
OSS コミットゴルフのすすめ / Let's play OSS-contribute-golf
megane42
October 06, 2023
Tweet
Share
More Decks by megane42
See All by megane42
Immutable ActiveRecord
megane42
0
170
Rails deprecation warning に立ち向かう技術 / v.s. rails deprecation warnings
megane42
0
580
ゆる計算理論ラジオ / P vs NP for beginner
megane42
1
200
How to Make "DJ giftee"
megane42
1
880
Rails 6 Upgrade "Practical" Guide
megane42
6
1.3k
updated_at に依存したら大変なことになった / Don't depend on updated_at
megane42
0
540
本当は怖い Rails の `build_xxx` / The Hard Facts of `build_xxx` of Rails
megane42
0
180
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
336
57k
Mobile First: as difficult as doing things right
swwweet
223
9.6k
The Language of Interfaces
destraynor
158
25k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
2.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.8k
Site-Speed That Sticks
csswizardry
6
570
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
129
19k
Side Projects
sachag
453
42k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.8k
Transcript
OSS コミットゴルフのすすめ 2023/10/06 giftee TechBash @megane42
自己紹介 @megane42 趣味: かっこいいワンタイムパスワード集め
今日の LT のねらい before OSS への貢献ってなんかハードル高そう やってみたい気持ちはあるけど、とっかかりがない after こんなしょぼい貢献もありえるのか 日々の業務の中でコントリビュートチャンスを探そう
概要 私の編み出した競技「OSS コミットゴルフ」をみんなでやりましょう(提案)
ルール 下記のスコア計算式が最も高かった人の優勝 ただし コントリビュート行数 は「実際にマージされた行数」とする ( コントリビュート対象の Github Star 数の総和)
/ ( コントリビュート行数の総和)
攻略法 より著名な OSS に、より少ない行数でコミットすると高得点! ( コントリビュート対象の Github Star 数の総和) /
( コントリビュート行数の総和)
私のスコア
Shot 1: bullet https://github.com/flyerhzm/bullet/pull/425 Star: 6881 Line: 2 Total: 6881
/ 2 = 3440
Shot 2: poke-api https://github.com/PokeAPI/pokeapi/pull/851 Star: 3700 Line: 4 Total: 10581
/ 6 = 1763 (前打比: -1677)
Shot 3: carrierwave https://github.com/carrierwaveuploader/carrierwave/pull/2642/ Star: 8776 Line: 6 Total: 19357
/ 12 = 1613 (前打比: -150)
Shot 4: nestjs-prisma https://github.com/notiz-dev/nestjs-prisma/pull/73 Star: 452 Line: 83 Total: 19898
/ 95 = 208 (前打比: -1405) 未マージなのでセーフ
結論 クソゲーだった 1 度でも大きめのコミットをしてしまうとスコアが悪化 ( コントリビュート対象の Github Star 数の総和) /
( コントリビュート行数の総和)
効能 俺は著名な OSS のコミッターなんだという自己肯定感が得られる 自分の修正によって、自分の担当プロダクトが理想的な状態になる
コツ ドキュメントの修正というコミット方法があることを知っておく OSS へのコミットというプロダクトの改修方法があることを知っておく コントリビュートチャンスへのアンテナを張っておく とりあえず git grep する とりあえず
printf debug する テストコードを読む
余談: 前職時代、とある先輩との会話 (超意訳) 自分: いつか OSS コミットとかやってみたいんスよね〜 先輩: なんか正直、やりたいって言う人って結局あんまやらないイメージあるんだよね、 本当にやる人は今日からもうやってるというか
自分: は?おもしれえ この日、私は github のアカウントを取りました <div style="text-align:center"> <a href="https://github.com/muddydixon"> https://github.com/muddydixon </a> </div>