Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
オブジェクト指向で挫折する初学者へ
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
deepoli
June 29, 2022
Programming
620
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
オブジェクト指向で挫折する初学者へ
deepoli
June 29, 2022
Other Decks in Programming
See All in Programming
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
280
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
680
Lambda durable functionsでHuman in the Loopを楽に…楽に……
har1101
0
100
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
230
sbt 2.0: takeoff
eed3si9n
0
160
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
400
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
Leo the Paperboy
mayatellez
10
2.4k
WENDY [Excerpt]
tessaabrams
14
40k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.8k
The browser strikes back
jonoalderson
0
1.8k
Skip the Path - Find Your Career Trail
mkilby
1
260
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Practical Orchestrator
shlominoach
192
12k
BBQ
matthewcrist
90
10k
GitHub's CSS Performance
jonrohan
1033
470k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Transcript
オブジェクト指向で挫折する初学者へ 株式会社ラクス 山口 良輔
自己紹介 山口 良輔(ryosuke yamaguchi) Twitter: @13_guchi 経歴 - 生粋の文系出身 -
5年前にプログラミング楽しいな〜ってなってこの業界に転職 - 4年間SIerに勤め、客先で揉まれてました - 2021年7月ラクスに入社 - 現在は楽楽電子保存のバックエンド開発担当 好きなもの - バックエンド - Java / Go - OSS - Rebuild - 趣味プログラミング - 写真の加工
なぜオブジェクト指向で 挫折するほど最初から理解しようとするのか
オブジェクト指向を考えない - Javaに関しては入門段階で出てくることもあり、初心者には理解がもやっとする →自分のコードに落とせない、あるいは目的のはっきりしないオブジェクトが沢山できる - まずはオブジェクト指向を頭の片隅に追いやり純粋にコードを書いてみる →スパゲティにでも重複処理になってもOK - 自分の知識だけでコーディングしない まずは言語に慣れる・コードを書く感覚を育てることが大事。
テストコードを書く - 学びはじめはテストコードを書くということが後回し・あるいは書かない - テストが書きにくいと感じることが大事 - テストコードが汚くても正常系・異常系パターンのテストケースが通るようにする - テストのしやすさを意識することがオブジェクト指向を意識することにつながる
リファクタリングしてみる - 学んだことを少しずつ自分のコードに適用してみる ※あまり全てに目を向けると嫌になるのでスコープを絞る →責務を1つに絞るとか重複処理をまとめるなどなど - 可読性を意識する - 必要最低限を意識する ※Java8以降はラムダが使えることを忘れてはいけない
訳もわからず「オブジェクト指向だから」と どんどんクラスやインターフェースを作って迷宮化しがちなので気を付けましょう
OSSから学ぶ - 学習もしくは業務からだけの知識では 一般的ではないあるいは古いパターンもあり知識に偏りが出ることが多い - OSSにある比較的メジャーでメンテナンスされているコードを見てみると感覚を養える - 使っているライブラリやフレームワークがあればそれを見るのが一石二鳥 - 隙があれば色々確認(色々な意味含む)してPR出してみるのもあり
兎にも角にもまずはたくさんコード を書きましょう
End