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
HOW TO WRITE GOOD CODE
Search
Salimane Adjao Moustapha
November 28, 2012
Programming
1.3k
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
HOW TO WRITE GOOD CODE
HOW TO WRITE GOOD CODE / 怎么写良好的代码
Salimane Adjao Moustapha
November 28, 2012
More Decks by Salimane Adjao Moustapha
See All by Salimane Adjao Moustapha
Puppet
salimane
0
160
Enterprise Cloud Computing
salimane
0
120
Other Decks in Programming
See All in Programming
Swift愛好会と私(ウホーイ) / Swift Fan Club and Uhooi
uhooi
0
140
まずはプロンプトガイドを読もう、話はそれからだ
kiakiraki
1
260
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
110
型解析で実現する Go の言語内 DSL / Conference に Go! タイムテーブルの歩き方 for Gophers
mazrean
0
130
Seeing Through Serverless: Observability for AWS Lambda with ADOT and CloudWatch Application Signals
seike460
PRO
1
120
AIに既存システムを理解させる技術 ~レガシーを見捨てないハーネスエンジニアリング入門~
ochtum
0
210
MIZARU@SPAJAM2026 第二回予選
1901drama
0
110
이 함수, 실패하면 어떻게 되나요? null부터 Rich Errors까지, Kotlin 에러 처리 15년
haeti2
0
140
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
220
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
450
Press start. Python's next generation.
willingc
PRO
3
310
高専キャリア LT 発表内容
crysta1221
6
5.5k
Featured
See All Featured
Odyssey Design
rkendrick25
PRO
2
800
AI: The stuff that nobody shows you
jnunemaker
PRO
9
970
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
840
We Are The Robots
honzajavorek
0
340
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
It's Worth the Effort
3n
188
29k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
430
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
410
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Transcript
HOW TO 怎么 WRITE 写 GOOD CODE 良好的代码 Salimane adjao
moustapha s a l i m a n e . c o m g i t h u b . c o m / s a l i m a n e
我 是 谁 ? WHO AM I ?
15 个国家 (11 %的国 家 ) 所以 ... 我很不 同
个 人 的 开 源 项 目 github.com/salimane
WHY DO YOU NEED TO WRITE GOOD CODE? 为什么你需要编写良好的代码?
为你的工作感到自豪
我 不 知 道 我 在 做 什 么
我不知道我 在做什么 GOOD CODE 良好的代码
WHAT IS GOOD CODE? 什么是好代码?
我不知道我 在做什么 BAD CODE GOOD CODE
它 的 工 作 原 理
CAN BE READ 可以读取
CAN BE MAINTAINED 可保持
CAN BE TESTED 可以测试
HOW TO WRITE GOOD CODE? 怎么写良好的代码 ?
健康快乐
CODE, CODE, CODE 写代码, 写代码,写代码 TEST, TEST, TEST 测试,测试,测试
PROFILE, PROFILE, PROFILE 事件探查,探查,探查
KISS (Keep It Simple Stupid) 保持简单愚蠢 YAGNI (You Ain’t Gonna
Need It) 你不会需要它 DRY (Do Not Repeat Yourself) 不重复自己
THINK BEFORE YOU WRITE ANY CODE 三思而后编写任何代码 DO NOT CODE
BY LUCK 一次偶然的机会不编码 USE TOOLS TO HELP YOU 使用工具来帮助你
MVP (Most Valuable Parts) 最有价值的地方 KEEP LEARNING & PRACTICING 不断的学习和实践
MASTER DATA STRUCTURE 精通数据结构
谈话是廉价 , 只是写出好 的代码
SALIMANE ADJAO MOUSTAPHA salimane.com github.com/salimane @salimane (weibo, twitter…)