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
Code Metrics
Search
Tim Ruffles
July 22, 2013
Technology
0
280
Code Metrics
Lightning talk given at London Web Standards July 2013
Tim Ruffles
July 22, 2013
Tweet
Share
More Decks by Tim Ruffles
See All by Tim Ruffles
CoffeeScript - Rescuing JS from the accidents of its birth
timruffles
1
90
Other Decks in Technology
See All in Technology
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.2k
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
5
2.8k
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
420
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
170
(金融庁共催)第4回金融データ活用チャレンジ勉強会資料
takumimukaiyama
0
140
月間数億レコードのアクセスログ基盤を無停止・低コストでAWS移行せよ!アプリケーションエンジニアのSREチャレンジ💪
miyamu
0
820
Digitization部 紹介資料
sansan33
PRO
1
6.8k
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
2.6k
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3.8k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
GSIが複数キー対応したことで、俺達はいったい何が嬉しいのか?
smt7174
3
150
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
Featured
See All Featured
Google's AI Overviews - The New Search
badams
0
900
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
64
GraphQLとの向き合い方2022年版
quramy
50
14k
Building Adaptive Systems
keathley
44
2.9k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
54
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
110
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
320
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
53
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
180
The SEO Collaboration Effect
kristinabergwall1
0
350
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
200
Design in an AI World
tapps
0
140
Transcript
Allergy statement: certified meme-free Code metrics @timruffles sidekickjs.com
Code is a liability
Functionality is an asset
Metrics?
Method length
Coverage
Cyclomatic
Decisions + 1
if x: ... else: ... if y: ... else: ...
Cylcomatic 3 Lines 2 Paths 4 Test for 100% coverage
Measured == managed?
Weight the airplane
Gaming
How?
Responsibly
∞-junior, idiot-savant
Conversation starter
Wall o’metrics
Stay proud of your team’s code
You’re the expert