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
3
1.3k
HOW TO WRITE GOOD CODE
HOW TO WRITE GOOD CODE / 怎么写良好的代码
Salimane Adjao Moustapha
November 28, 2012
Tweet
Share
More Decks by Salimane Adjao Moustapha
See All by Salimane Adjao Moustapha
Puppet
salimane
0
150
Enterprise Cloud Computing
salimane
0
110
Other Decks in Programming
See All in Programming
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
0
910
CSC307 Lecture 08
javiergs
PRO
0
670
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
110
Unicodeどうしてる? PHPから見たUnicode対応と他言語での対応についてのお伺い
youkidearitai
PRO
1
1.1k
Patterns of Patterns
denyspoltorak
0
1.4k
2026年 エンジニアリング自己学習法
yumechi
0
130
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
250
CSC307 Lecture 06
javiergs
PRO
0
680
Fluid Templating in TYPO3 14
s2b
0
130
Oxlintはいいぞ
yug1224
5
1.3k
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
250
「ブロックテーマでは再現できない」は本当か?
inc2734
0
550
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.2k
A Soul's Torment
seathinner
5
2.2k
Code Review Best Practice
trishagee
74
20k
Paper Plane (Part 1)
katiecoart
PRO
0
4k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
250
How to make the Groovebox
asonas
2
1.9k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
820
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
72
4 Signs Your Business is Dying
shpigford
187
22k
Un-Boring Meetings
codingconduct
0
200
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
430
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…)