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
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
110
Other Decks in Programming
See All in Programming
AIエージェントの隔離技術の徹底比較
kawayu
0
450
New "Type" system on PicoRuby
pocke
1
410
ユニットテストの先へ:テスト技法で要求・仕様を整理するJava開発実践 / Beyond_Unit_Testing_Practical_Java_Development_Techniques_for_Organizing_Requirements_and_Specifications
shimashima35
0
320
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
2.8k
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
120
初めてのRubyKaigiはこう見えた
jellyfish700
0
400
密結合なバックエンドから TypeScript のコードを生成する
kemuridama
1
580
次世代リンターで探る、tsgo 時代における型認識カスタムルールの現実解
ytakahashii
3
1.4k
運用エージェントは "作る" から "育てる" へ - 記憶と自己進化の3層設計パターン / self-evolving-agents-three-layer-agent-design
gawa
12
3.3k
CSC307 Lecture 17
javiergs
PRO
0
310
Lessons from Spec-Driven Development
simas
PRO
0
110
プラグインで拡張される Context をtype-safe にする難しさと設計判断
kazupon
2
530
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
225
10k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
840
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
130
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
320
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Ethics towards AI in product and experience design
skipperchong
2
290
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.1k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Technical Leadership for Architectural Decision Making
baasie
3
390
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
390
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…)