Submit Search
Upload
リーダブルコード : このコード、読み易くなくなくない?
•
Download as KEY, PDF
•
5 likes
•
3,201 views
Yoshiyuki MIYAGI
Follow
2012/11/01 社内セクションLTでのプレゼン資料
Read less
Read more
Technology
Report
Share
Report
Share
1 of 20
Download now
Recommended
第1回クラウドソーシングサミット freelancer.com体験記
第1回クラウドソーシングサミット freelancer.com体験記
Kyosuke Yoshimura
リファクタリング?
リファクタリング?
Yoshiyuki Miyagawa
テストコードのリファクタリング
テストコードのリファクタリング
Shuji Watanabe
Real World PHP in pixiv
Real World PHP in pixiv
Kenta USAMI
未来のプログラミング技術をUnityで -UniRx-
未来のプログラミング技術をUnityで -UniRx-
torisoup
テスト自動化とアーキテクチャ
テスト自動化とアーキテクチャ
Toru Koido
MacRuby を使ってみました
MacRuby を使ってみました
Yoshiyuki MIYAGI
Apache Mahout お手軽レコメンド
Apache Mahout お手軽レコメンド
Yoshiyuki MIYAGI
Recommended
第1回クラウドソーシングサミット freelancer.com体験記
第1回クラウドソーシングサミット freelancer.com体験記
Kyosuke Yoshimura
リファクタリング?
リファクタリング?
Yoshiyuki Miyagawa
テストコードのリファクタリング
テストコードのリファクタリング
Shuji Watanabe
Real World PHP in pixiv
Real World PHP in pixiv
Kenta USAMI
未来のプログラミング技術をUnityで -UniRx-
未来のプログラミング技術をUnityで -UniRx-
torisoup
テスト自動化とアーキテクチャ
テスト自動化とアーキテクチャ
Toru Koido
MacRuby を使ってみました
MacRuby を使ってみました
Yoshiyuki MIYAGI
Apache Mahout お手軽レコメンド
Apache Mahout お手軽レコメンド
Yoshiyuki MIYAGI
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
リーダブルコード : このコード、読み易くなくなくない?
1.
リーダブルコード ∼ このコード、読み易くなくなくない? ∼ Yoshiyuki
MIYAGI dwango mobile
2.
読みました リーダブルコード
http://www.oreilly.co.jp/books/9784873115658/
3.
読んだ?
4.
命名大事 否定形の表現はやめよう コードも文章も同じ
5.
命名大事
6.
名前に情報を詰め込む
7.
名は体を表す 「お前は何者だ?」 わかりにくい名前・単語 = わからない 具体的な名前をつける
8.
getSize → getFileSize() getSentenseLength() height
→ pageHeight, blockHeight, imgHeight id → userId, orderId, productId
9.
否定形の表現はやめよう
10.
否定形の表現はやめよう 「このラーメン 美味しくなくなくない?」
11.
美味しくなくなくない? ramen = new
Ramen if !!ramen.delicious? # どっちだ? end 否定の否定の疑問形なのか?
12.
それとも?
13.
美味しくなくなくない? if agree(ramen, ‘delicious’)
say ‘soudane’ else say ‘No, mazui’ end 同意を求めてるのか?
14.
コードも文章も同じ
15.
第三者に伝えること
16.
読みやすい == 理解しやすい
17.
1つのブロックでは1つの話題 数字には単位をつける 金額?時間?重さ?日付? 具体的な名前・内容 あれ これ それ
どれ?
18.
コードに限らず チケット
メール コミットログ サイト上の文章 アプリケーションログ メモ wiki 物語 ドキュメント 会話
19.
ぜひ読んで反省しましょう
20.
Enjoy coding!!
Editor's Notes
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Download now