← All slides

Intro to Design & Refactoring — Slides

30 lessons, 490 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-07)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

命名(意図を名前で表す)

16 slides

2

関数の長さ(段階に分ける)

20 slides

3

コメントの要否(なぜを残す)

14 slides

4

早期リターン(ガード節)

14 slides

5

コードの臭い(マジックナンバー・重複)

18 slides

6

関数の抽出(計算に名前を付ける)

14 slides

7

重複の除去(違うところだけを引数にする)

14 slides

8

引数オブジェクト(緯度と経度を Point にまとめる)

15 slides

9

副作用の切り離し(計算と表示を分ける)

15 slides

10

問い合わせと更新の分離(コマンド・クエリ分離)

13 slides

11

単一責任の原則(SRP)

16 slides

12

開放閉鎖の原則(OCP)

18 slides

13

リスコフの置換原則(LSP)

17 slides

14

インターフェース分離の原則(ISP)

17 slides

15

依存性逆転の原則(DIP)

15 slides

16

SOLID を組み合わせる

17 slides

17

依存性注入(時計を外から渡す)

17 slides

18

ポートとアダプタ(中心のルールを外から守る)

19 slides

19

レイヤの分け方(entity・usecase・gateway)

19 slides

20

テストしやすい設計(継ぎ目を作る)

13 slides

21

グローバル状態を避ける

14 slides

22

【実践】依存を切ったミニアプリ

22 slides

23

特性テスト(今の答えを写し取る)

16 slides

24

レガシーの継ぎ目(送信を引数で受け取る)

15 slides

25

小さく安全に変える(1 手ごとに緑を確かめる)

16 slides

26

説明変数と問い合わせ(条件式に名前を付ける)

14 slides

27

【実践】テストで守りながら直す

23 slides

28

コードレビューの観点(よく付く 4 つの指摘)

15 slides

29

技術的負債(新旧を並べて安全に返す)

16 slides

30

設計判断の記録(ADR)

18 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.