Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Code Trails
Martin Van Aken
March 04, 2014
Programming
1
160
Code Trails
Talk given at Paris.rb about seeing code as trail signs for future developers.
Martin Van Aken
March 04, 2014
Tweet
Share
More Decks by Martin Van Aken
See All by Martin Van Aken
vanakenm
0
140
vanakenm
0
130
vanakenm
0
53
Other Decks in Programming
See All in Programming
lilobase
PRO
0
100
ktgrstsh
1
240
o0h
PRO
0
370
karosuwindam
0
110
progate
3
960
kubode
2
200
naototty
1
180
kazuhei0108
3
970
quannt
1
110
bamboooo
1
130
devinjeon
2
890
bkuhlmann
4
300
Featured
See All Featured
hatefulcrawdad
257
17k
dotmariusz
94
5.5k
philhawksworth
192
17k
aarron
258
36k
holman
462
280k
malarkey
193
8.7k
jrom
116
7.2k
chrislema
231
16k
afnizarnur
178
14k
holman
448
140k
malarkey
392
61k
roundedbygravity
84
7.9k
Transcript
Code Signs Code as a Trail
About.me • Co-founder at 8th color • http://pullreview.com • @martinvanaken
• blog.8thcolor.com (Ruby, Code Reviews) Learning, reading, laughing
Martin: J’ai une idée de petit talk, intéressé? Sylvain: Toujours,
le CFP permanent est là Martin: Chouette, soumis. … Martin: Tiens, quand/comment faites-vous la sélection? Sylvain: Pas besoin. De facto pour le prochain :) Martin: Et le prochain c’est… Mardi. Ah. Bon, je vais prendre mes billets de train.
What is code?
None
None
None
Another vision
None
None
Why?
You’ll need to get back Maintenance: up to 80%
Other people will need to get back You Are Not
Alone
It will be at night
None
It will rain
None
The trail will be old
None
Avoid being misleading
None
Misleading names
Misleading comments
Dead code
Drop your stones
Name things
Name things
Name things
Put code where it belongs
Put code where it belongs
Put code where it belongs
Be stylish
Be stylish
Avoid complexity
None
None
Test your trail
Test your trail Q: How to know if your code
is readable?
Test your trail A: Read it yourself A: Have it
read by someone → Code Reviews
Always code as if the guy who ends up maintaining
your code will be a violent psychopath who knows where you live
Code for Humans
Thanks for us!