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
Ruby On Rails coding conventions, standards and...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
David Paluy
August 22, 2012
How-to & DIY
1.5k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Ruby On Rails coding conventions, standards and best practices
David Paluy
August 22, 2012
More Decks by David Paluy
See All by David Paluy
Your LLM Changed. Did it Get Better?
dpaluy
0
10
LLM Telemetry & Evals as First Class Rails Concerns - BlueRidgeRuby 2026
dpaluy
0
82
Tools to help you better understand the code
dpaluy
0
160
Debugging and Profiling Rails App
dpaluy
3
260
Faster on Rails
dpaluy
2
250
How to Prepare 3 min Fundraising Presentation
dpaluy
0
1k
Other Decks in How-to & DIY
See All in How-to & DIY
透析という名の登山:元SEが挑む、週3回のリアル・クエスト
ohbayukio2026
0
130
不安を「改善のためのシグナル」と捉える-「感情」をセンサーで検知して、少しずつ前に進む方法 - / phpcon_ehime2026
blue_goheimochi
1
180
高校生の時にLINEDCに出会って、 気づけば大学を卒業します!!
inoue2002
0
130
RustでもVJしたい!
taiseiue
0
110
なぜISPでオリジナルカードゲームを作ったのか?制作者と対談 - NIFTY Tech Talk #25
niftycorp
PRO
0
150
JAWS-UG初心者支部 JAWS-UG Updates
awsjcpm
4
170
Optional<Bar>うらばなし
ryomm
2
430
スイングやカードをいい感じに立てるスタンドの話
niccolli
1
550
JAWS-UG/AWS Community Update 2026年6月20日JAWS-UG FUKUOKA #26 JAWS DAYS 2026 re:Cap! おつかれせいけしろー
awsjcpm
0
200
JAWS-UG 山梨 第10回 勉強会 Community Update
awsjcpm
0
1.2k
ライブ感を生む 巻き込み型スライドの作り方/Create your slide like a heavy metal concert
ikuodanaka
5
1.8k
JAWS-UG くまもと #18 KiroによるAI駆動開発
awsjcpm
0
110
Featured
See All Featured
The Cult of Friendly URLs
andyhume
79
7.1k
エンジニアに許された特別な時間の終わり
watany
109
250k
The Invisible Side of Design
smashingmag
301
52k
Mind Mapping
helmedeiros
1
430
Designing for Timeless Needs
cassininazir
1
550
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
680
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
We Are The Robots
honzajavorek
0
440
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
320
What's in a price? How to price your products and services
michaelherold
247
13k
RailsConf 2023
tenderlove
30
1.6k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
630
Transcript
Ruby On Rails coding conventions, standards and best practices David
Paluy August 2012
Philosophy (from Rails) • DRY – Don't Repeat Yourself •
Convention over Configuration • YAGNI - You ain't gonna need it
Source code Style • Two spaces, no tabs • Boolean
tests: don't use “and” and “or”, always use “&&” and “| |”
Go Easy on the Comments • If it's obvious –
don't explain it • Remove old commented code • “How to” comments
Camels for Classes, Snakes Everywhere Else • “Snake case”: lowercasse_words_separated_by_underscore
• “Camel case”: ClassName good Class_name bad • Constants: (my own preference) ALL_UPPERCASE = true
Parentheses (Optional)
Parentheses (Do & Don't)
Folding Up Lines
Folding Up Blocks
if vs unless
while vs until
Use Modifier Forms
each, NOT for
In the Wild
Use Symbols to Stand for Something
Composing Methods for Humans
Make the code a little more articulate
Readable Code
Readable code makes your classes easier to test
Git the diff says what you did; your commit message
should tell me why you did this
Summary Good code is like a good joke: It needs
no explanation
Credentials