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
So you want to write a framework? Accidental le...
Search
Russell Keith-Magee
February 22, 2014
Programming
0
100
So you want to write a framework? Accidental lessons from a successful project
Opening keynote from PyCon PH 2014
Russell Keith-Magee
February 22, 2014
Tweet
Share
More Decks by Russell Keith-Magee
See All by Russell Keith-Magee
Python All The Things!
freakboy3742
2
330
Snakes in a browser
freakboy3742
1
120
Making a splash with your open source project
freakboy3742
0
360
Things your parents didn't teach you about sharing your toys
freakboy3742
0
370
A tale of two cellphones: Python on Android and iOS
freakboy3742
0
220
Beyond Web 2.0 - Django and Python in the modern web ecosystem
freakboy3742
0
250
Python on the move: The state of Mobile Python
freakboy3742
0
290
I am a doctor...
freakboy3742
0
140
Professional Yak Coiffure
freakboy3742
0
84
Other Decks in Programming
See All in Programming
マイグレーションコード自作して File-Based Routing に自動移行!! ~250 ページの歴史的経緯を添えて~
cut0
1
260
unique パッケージから学ぶ interning と weak reference @ Asakusa.go#3
karamaru
2
810
仮想ファイルシステムを導入して開発環境のストレージ課題を解消する
segadevtech
2
550
サーバーレスで負荷試験!Step Functions + Lambdaを使ったk6の分散実行
shuntakahashi
6
1.6k
はじめてみよう量子プログラミング
itokoichi01
0
210
マルチモジュールにおけるテスト最適化
fxwx23
0
210
From Idea to IDE: Developing Plugins for Android Studio
thisaay
1
220
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
420
How to Break into Reading Open Source
kaspth
2
210
意外とフォントが大事だった話 / Font Issues on Internationalization
fumi23
0
110
開発を加速する共有Swift Package実践
elmetal
PRO
0
420
Ebitengineの1vs1ゲーム WebRTCの活用
ponyo877
0
380
Featured
See All Featured
Designing for Performance
lara
604
68k
A Tale of Four Properties
chriscoyier
155
22k
WebSockets: Embracing the real-time Web
robhawkes
59
7.3k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
Visualization
eitanlees
142
15k
Music & Morning Musume
bryan
46
6k
Git: the NoSQL Database
bkeepers
PRO
425
64k
From Idea to $5000 a Month in 5 Months
shpigford
379
46k
How to train your dragon (web standard)
notwaldorf
85
5.6k
Designing for humans not robots
tammielis
248
25k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
248
20k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
45
4.8k
Transcript
So you want to write a framework? Accidental lessons from
a successful project Dr Russell Keith-Magee PyCon PH 2014
None
None
None
I've got fingerprints elsewhere.
This isn't about Python.
This isn't about web frameworks.
Best of Breed vs Batteries Included
"Batteries Included" Frameworks "Everything comes in the box" One package
to download/install Minimal dependencies No decisions to make Documentation on the parts
"Best of Breed" Frameworks Pick from existing selection of libraries
Glue logic to tie them together Many dependencies Multiple decisions may be required Documentation on integration
None
Hybrids are possible.
Why pick one over the other?
History matters.
It's hard to be best of breed when the breed
doesn't exist yet.
Ian Bicking and SQLObject http://bit.ly/bicking-goodbye
Picking "best of breed" early can be detrimental.
History matters.
Backwards compatibility
Time is relative.
“ A rule of thumb that has worked for me
is that if I'm excited to play around with something it probably doesn't belong in production ” Maciej Ceglowski (Pinboard)
Backwards compatibility has a price.
Batteries Included can still be backwards incompatible.
Best of breed encourages you to pick and choose.
Is a choice of batteries really what is required?
"Batteries included" doesn't mean "Can't use other batteries".
Messaging matters.
Timing matters.
The 90% framework.
Out of the box experience matters.
http://goo.gl/Epzms
None
Implicit documentation
Models and Forms class MyUser(models.Model): name = models.CharField(max_length=100) age =
models.IntegerField() date_of_birth = models.DateField() class MyForm(forms.Form): name = forms.CharField(max_length=100) age = forms.IntegerField() date_of_birth = forms.DateField()
Tools vs ecosystems
Jacob's Tractor
Tools vs ecosystems
Metcalfe's Law: The utility of a network increases with the
square of it's participants.
Ecosystems
Microframeworks
Remember to share with the other children.
Sending the wrong signals.
Packaging systems matter.
Community matters.
Outreach is important.
Absent friends
http://bit.ly/malcolm-monkey-hat
http://bit.ly/malcolm-plays-spassky
Requiem in pace
“ A society grows great when old men plant trees
whose shade they know they shall never sit in. ” Greek proverb
Kid, you can move mountains. (98 and ¾ percent guaranteed)
He's not the messiah....
Thanks!
[email protected]
@freakboy3742 cecinestpasun.com djangoproject.com