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 Topology Notation
Search
Ivan Nemytchenko
September 12, 2024
Programming
0
140
Code Topology Notation
Ivan Nemytchenko
September 12, 2024
Tweet
Share
More Decks by Ivan Nemytchenko
See All by Ivan Nemytchenko
The Shape of a Service Object
inem
0
1.2k
The Curse of Service Object
inem
0
330
Modern Make for modern (Rails) programmers
inem
0
110
Откуда берется сложность в Rails-проектах и куда бы её деть?
inem
0
300
Rails без боли и оверинжиниринга
inem
0
550
Painless Rails: наводим порядок в контроллерах
inem
0
290
Less Abstract! Surprising effects of expressing OOP in pictures
inem
1
640
Pure functions and side effects
inem
0
57
Solving architectural problems with OOP in pictures
inem
1
6.1k
Other Decks in Programming
See All in Programming
ユーザーも開発者も悩ませない TV アプリ開発 ~Compose の内部実装から学ぶフォーカス制御~
taked137
0
190
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
290
Performance for Conversion! 分散トレーシングでボトルネックを 特定せよ
inetand
0
2.4k
ぬるぬる動かせ! Riveでアニメーション実装🐾
kno3a87
1
230
基礎から学ぶ大画面対応(Learning Large-Screen Support from the Ground Up)
tomoya0x00
0
3.2k
知っているようで知らない"rails new"の世界 / The World of "rails new" You Think You Know but Don't
luccafort
PRO
1
180
OSS開発者という働き方
andpad
5
1.7k
AI Coding Agentのセキュリティリスク:PRの自己承認とメルカリの対策
s3h
0
230
RDoc meets YARD
okuramasafumi
4
170
Zendeskのチケットを Amazon Bedrockで 解析した
ryokosuge
3
310
楽して成果を出すためのセルフリソース管理
clipnote
0
180
Processing Gem ベースの、2D レトロゲームエンジンの開発
tokujiros
2
130
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
Context Engineering - Making Every Token Count
addyosmani
3
54
Designing Experiences People Love
moore
142
24k
Statistics for Hackers
jakevdp
799
220k
Side Projects
sachag
455
43k
Producing Creativity
orderedlist
PRO
347
40k
Code Review Best Practice
trishagee
71
19k
Writing Fast Ruby
sferik
628
62k
GraphQLとの向き合い方2022年版
quramy
49
14k
The Cost Of JavaScript in 2023
addyosmani
53
8.9k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Cult of Friendly URLs
andyhume
79
6.6k
Transcript
CODE TOPOLOGY NOTATION
Kettle components (objects) small dudes == objects
Objects with methods! hands == methods
A method number of fi ngers == number of arguments
Instance variables Stored inside the brain
Instance variables Can be reused later
Returning results
Private methods
Exception
Anti-patterns
Too many arguments
Too many methods
Too long methods
Too many instance variables
Too much conditional logic in methods Swallen arms
Too much of everything!!!
Classes A spawning platform
Classes A spawning platform
same topology Object & classes have the
Dependencies have to remember about classes to use them
Dependency Injection Instead of remembering thing we pass them as
arguments
Visual representation of code complexity
None
None
None
None
None
None