Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
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
AI が書く Go コードの品質を劇的に向上させる Linter: “declscope”
mpyw
0
480
Agents on Rails - Rails at Scale 2026
irinanazarova
0
340
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
110
20260914 AIエージェント時代のPlatform Engineering LLM基盤とプロダクトの責務境界線
kanfab1
7
2.4k
SREの越境 / SRE Collaboration
y0hgi
2
300
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
130
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
160
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
450
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
120
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
4.9k
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
310
RAG の “R” を Swift で覗いてみる 〜「意味から探す」検索の仕組み〜
nao_randd
0
120
Featured
See All Featured
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.1k
Deep Space Network (abreviated)
tonyrice
0
360
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Designing for humans not robots
tammielis
254
26k
Paper Plane (Part 1)
katiecoart
PRO
2
11k
Utilizing Notion as your number one productivity tool
mfonobong
4
610
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
550
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
31k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
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…)