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
読みやすいコード クラスメソッド 2022 年度新卒研修
Search
januswel
July 13, 2022
Programming
9.9k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
読みやすいコード クラスメソッド 2022 年度新卒研修
januswel
July 13, 2022
Transcript
20 slides
読みやすいコード エンジニアリング統括室
読みやすい コードって どういうもの?
どういうものだと思いますか?
読みにくい コードの デメリット
何がありますか?
みんなの意見 解読に時間が かかる isMatcher とい う命名は bool 型を返す用に 見える 感覚と違う挙
動をするとバグ を仕込みやす い チームで対話 するときのコス ト増 ヒューマンエ ラーを誘発する 思考順番と別 の順番で書か れている 読む人間に順 序を強要する ものは脳がバ グる 時間たって見 てみるとわけ わからない エラーがすべて Unknown で具体 的なエラーが書か れてい 実行時エラーだけ だと追うのがつら い 関数つなぎすぎ メソッドチェーンが 多すぎるとつらい コメントのつけかた が統一されていな い 読みづらい
この講義での 読みやすさの 定義
保守性が高い
保守性ってなんですか?
ソフトウェア品質特性 https://www.iso.org/standard/35733.html
モジュール性 再利用性 解析性 修正性 試験性 保守性
読みやすくない コードを書くと どうなるか?
質とスピード
コードの 読みづらさを 探してみよう
bad.mjs
読みやすくするた めの観点
命名
文脈
文法
構造
More Decks by januswel
See All by januswel
今日からできる環境カイゼン
januswel
0
1k
Accelerate your business with React Native
januswel
0
2.6k
猫の手も借りたい引っ張りだこ企業による LINE API活用事例発表会! クラスメソッド編
januswel
0
220
現状確認
januswel
0
1k
BLE on React Native
januswel
2
1.6k
polyglot になろう !!
januswel
1
6.3k
React Native & monorepo
januswel
0
1.2k
What is React Native?
januswel
1
1.3k
discussion about the bridge
januswel
1
4.3k
Other Decks in Programming
See All in Programming
Performance Optimization With LLMs
xleitix
0
260
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
130
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
380
TanStack Vue Query と Pinia Colada から学ぶ非同期状態の型設計
aoshi
0
670
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
170
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
370
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
620
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
200
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
140
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
230
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
150
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
Raft: Consensus for Rubyists
vanstee
143
7.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
23k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
660
Navigating Weather and Climate Data
rabernat
0
590
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3.1k
Are puppies a ranking factor?
jonoalderson
2
4.2k
A Tale of Four Properties
chriscoyier
163
24k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
570