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
Refactoring Re-education
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Terry
February 25, 2013
Programming
990
5
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Refactoring Re-education
Summarize the work for refactoring Re-education project.
Terry
February 25, 2013
More Decks by Terry
See All by Terry
Building API For The REST of Us
poshboytl
8
750
RubyConf China Welcome Slides
poshboytl
1
95
Rails Girls Chengdu 2014
poshboytl
2
340
How we test our projects
poshboytl
29
1.9k
Other Decks in Programming
See All in Programming
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
210
New "Type" system on PicoRuby
pocke
1
970
エージェンティックRAGにAWSで入門しよう!
har1101
8
1.7k
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.7k
例外の正しい扱い方 そのエラー try-catchして大丈夫?
jinwatanabe
0
260
OSもどきOS
arkw
0
570
A2UI という光を覗いてみる
satohjohn
1
140
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
270
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.4k
気づいたらRubyで100作品 ー クリエイティブコーディングが生活の一部になるまで / 100 Ruby Sketches Later: How Creative Coding Became Part of My Life
chobishiba
3
590
スマートグラスで並列バイブコーディング
hyshu
0
160
ふつうのFeature Flag実践入門
irof
8
4k
Featured
See All Featured
Joys of Absence: A Defence of Solitary Play
codingconduct
1
400
From π to Pie charts
rasagy
0
210
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
230
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
210
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
340
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
170
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
Embracing the Ebb and Flow
colly
88
5.1k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.2k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.1k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
950
Transcript
Refactoring re-education Terry Tai
who am i
太檑
Terry
@poshboytl
Co-founder of Pragmatic.ly
None
Creator of railscasts-china.com
None
What refactoring is
Refactoring is improving the design of codes without changing it’s
behaviour.
How to begin
Run tests
How about if there is no test
Write integration tests to protect the user heavier
Unit tests might be change when doing refactor
I choose Rspec/Capybara
Code Conventions
Use spaces instead of tabs
None
None
Do not use unless ... else...
None
Don’t require things several times
None
Conventions might be different in different teams
Code design
None
None
Put filter method in private/protected
None
None
Slim controllers Fat models
None
None
None
None
None
Refactor in your daily work
Write tests
It’s better if you do TDD
Pair with your friends sometimes
Almost never push codes to master straightly
Create branch for every ticket
Send Pull Request And do code review
Make sure running tests before you push
Treat every piece of your codes as open source codes
About README • Explain why your code exists. • Tell
people how to use it • Declare copyright and licensing • Describe how to conribute
Keep Rocking!!