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
Complex is better than complicated
Search
Oursky Limited
July 10, 2015
Programming
0
250
Complex is better than complicated
Oursky Limited
July 10, 2015
Tweet
Share
More Decks by Oursky Limited
See All by Oursky Limited
UI Automation
oursky
1
440
SSH Can
oursky
1
270
HTTP/2
oursky
0
300
watchOS2
oursky
0
260
Common QA issues
oursky
0
170
Clean code again
oursky
3
320
KiriKiri x O2 x NVLMarker
oursky
0
180
Flux + React
oursky
1
340
git_workflow.pdf
oursky
0
250
Other Decks in Programming
See All in Programming
RDBの世界をぬりかえていくモデルグラフDB〜truncus graphによるモデルファースト開発〜
jurabi
0
170
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
1.2k
ポケモンで考えるコミュニケーション / Communication Lessons from Pokémon
mackey0225
4
170
文化が生産性を作る
jimpei
3
560
Memory API: Patterns, Use Cases, and Performance
josepaumard
1
160
VS Code extension: ドラッグ&ドロップでファイルを並び替える
ttrace
0
170
タイミーにおけるデータの利用シーンと データ基盤の挑戦
marufeuille
4
3.2k
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
530
フロントエンドの現在地とこれから
koba04
10
4.5k
デバッグの話 / Debugging for Beginners
kaityo256
PRO
7
510
CSC509 Lecture 04
javiergs
PRO
0
140
AWS CDKを用いたセキュアなCI/CDパイプラインの構築 / Build a secure CI/CD pipeline using AWS CDK
seike460
PRO
3
610
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
31
1.4k
The Brand Is Dead. Long Live the Brand.
mthomps
53
38k
Designing for Performance
lara
604
68k
Writing Fast Ruby
sferik
626
60k
Producing Creativity
orderedlist
PRO
341
39k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
167
49k
For a Future-Friendly Web
brad_frost
174
9.3k
The Mythical Team-Month
searls
218
43k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
What's new in Ruby 2.0
geeforr
341
31k
The Pragmatic Product Professional
lauravandoore
31
6.2k
Facilitating Awesome Meetings
lara
49
6k
Transcript
Complex is better than complicated
We build complex software
We don’t want complicated code
Cyclomatic complexity • M = E − N + 2P
• E = the number of edges of the graph. • N = the number of nodes of the graph. • P = the number of connected components. • https://en.wikipedia.org/wiki/Cyclomatic_complexity
Limiting complicated code • National Institute of Standards and Technology
- 10 • Either • Under the limit • Provide a written explanation of why it become so complicated
Software • C/C++/Objective C - https://github.com/terryyin/ lizard • golang -
https://github.com/fzipp/gocyclo • Python - https://github.com/rubik/radon • Javascript - https://github.com/es-analysis/plato
It can’t help • Stupid architect design • Human readability
• Software Quality