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
これならできる!個人開発のすゝめ
tinykitten
PRO
0
150
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
6
2.4k
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
1.4k
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
240
Python札幌 LT資料
t3tra
7
1.1k
Deno Tunnel を使ってみた話
kamekyame
0
320
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
630
PC-6001でPSG曲を鳴らすまでを全部NetBSD上の Makefile に押し込んでみた / osc2025hiroshima
tsutsui
0
210
Grafana:建立系統全知視角的捷徑
blueswen
0
280
Basic Architectures
denyspoltorak
0
190
從冷知識到漏洞,你不懂的 Web,駭客懂 - Huli @ WebConf Taiwan 2025
aszx87410
2
3.3k
Combinatorial Interview Problems with Backtracking Solutions - From Imperative Procedural Programming to Declarative Functional Programming - Part 2
philipschwarz
PRO
0
140
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.7k
Speed Design
sergeychernyshev
33
1.5k
Producing Creativity
orderedlist
PRO
348
40k
The SEO identity crisis: Don't let AI make you average
varn
0
47
Technical Leadership for Architectural Decision Making
baasie
0
200
Information Architects: The Missing Link in Design Systems
soysaucechin
0
740
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
My Coaching Mixtape
mlcsv
0
23
Deep Space Network (abreviated)
tonyrice
0
33
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
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…)