Suche senden
Hochladen
Ruby On Rails coding conventions, standards and best practices
•
16 gefällt mir
•
15,608 views
David Paluy
Folgen
Weiterbildung und Persönlichkeitsentwicklung
Technologie
Melden
Teilen
Melden
Teilen
1 von 22
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Is it CrossFit or JavaScript?
Is it CrossFit or JavaScript?
Ara Pehlivanian
Code analyzer: FindBugs and PMD
Code analyzer: FindBugs and PMD
Kan-Han (John) Lu
Ruby on rails. Best practices
Ruby on rails. Best practices
Vladimir Tkach
Rails Best Practices
Rails Best Practices
Icalia Labs
Principles of MVC for Rails Developers
Principles of MVC for Rails Developers
Edureka!
Rails Best Practices
Rails Best Practices
Wen-Tien Chang
walkmod: An open source tool for coding conventions
walkmod: An open source tool for coding conventions
walkmod
AngularJS Best Practices
AngularJS Best Practices
Betclic Everest Group Tech Team
Empfohlen
Is it CrossFit or JavaScript?
Is it CrossFit or JavaScript?
Ara Pehlivanian
Code analyzer: FindBugs and PMD
Code analyzer: FindBugs and PMD
Kan-Han (John) Lu
Ruby on rails. Best practices
Ruby on rails. Best practices
Vladimir Tkach
Rails Best Practices
Rails Best Practices
Icalia Labs
Principles of MVC for Rails Developers
Principles of MVC for Rails Developers
Edureka!
Rails Best Practices
Rails Best Practices
Wen-Tien Chang
walkmod: An open source tool for coding conventions
walkmod: An open source tool for coding conventions
walkmod
AngularJS Best Practices
AngularJS Best Practices
Betclic Everest Group Tech Team
Clean code
Clean code
Duc Nguyen Quang
Clean code
Clean code
NadiiaVlasenko
Best practices for JavaScript RIAs
Best practices for JavaScript RIAs
Carlos Ble
Hardcore JavaScript – Write it Right
Hardcore JavaScript – Write it Right
Mike Wilcox
Rails Development That Doesn't Hurt
Rails Development That Doesn't Hurt
Akira Matsuda
Principled And Clean Coding
Principled And Clean Coding
Metin Ogurlu
TDD - Test Driven Development
TDD - Test Driven Development
Tung Nguyen Thanh
C# Good practices
C# Good practices
Charlin Agramonte
Clean code coding like a professional
Clean code coding like a professional
Nhật Nguyễn Khắc
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
Gavin Pickin
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
Ortus Solutions, Corp
C# Best Practices
C# Best Practices
Charlin Agramonte
Good coding-style, a talk made in 2008 to encourage changes in MySQL coding s...
Good coding-style, a talk made in 2008 to encourage changes in MySQL coding s...
Kostja Osipov
Writing Readable Code
Writing Readable Code
eddiehaber
클린 테스트
클린 테스트
Jin Seoung Lee
CLEAN WEB
CLEAN WEB
Seda Yalçın
TDD in Python With Pytest
TDD in Python With Pytest
Eddy Reyes
Testing gone-right
Testing gone-right
Jesse Wolgamott
Grooming with Groovy
Grooming with Groovy
Dhaval Dalal
Intro to Smart Contracts
Intro to Smart Contracts
David Paluy
Decentralizing Everything with Blockchain
Decentralizing Everything with Blockchain
David Paluy
Testing with Rspec 3
Testing with Rspec 3
David Paluy
Weitere ähnliche Inhalte
Ähnlich wie Ruby On Rails coding conventions, standards and best practices
Clean code
Clean code
Duc Nguyen Quang
Clean code
Clean code
NadiiaVlasenko
Best practices for JavaScript RIAs
Best practices for JavaScript RIAs
Carlos Ble
Hardcore JavaScript – Write it Right
Hardcore JavaScript – Write it Right
Mike Wilcox
Rails Development That Doesn't Hurt
Rails Development That Doesn't Hurt
Akira Matsuda
Principled And Clean Coding
Principled And Clean Coding
Metin Ogurlu
TDD - Test Driven Development
TDD - Test Driven Development
Tung Nguyen Thanh
C# Good practices
C# Good practices
Charlin Agramonte
Clean code coding like a professional
Clean code coding like a professional
Nhật Nguyễn Khắc
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
Gavin Pickin
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
Ortus Solutions, Corp
C# Best Practices
C# Best Practices
Charlin Agramonte
Good coding-style, a talk made in 2008 to encourage changes in MySQL coding s...
Good coding-style, a talk made in 2008 to encourage changes in MySQL coding s...
Kostja Osipov
Writing Readable Code
Writing Readable Code
eddiehaber
클린 테스트
클린 테스트
Jin Seoung Lee
CLEAN WEB
CLEAN WEB
Seda Yalçın
TDD in Python With Pytest
TDD in Python With Pytest
Eddy Reyes
Testing gone-right
Testing gone-right
Jesse Wolgamott
Grooming with Groovy
Grooming with Groovy
Dhaval Dalal
Ähnlich wie Ruby On Rails coding conventions, standards and best practices
(19)
Clean code
Clean code
Clean code
Clean code
Best practices for JavaScript RIAs
Best practices for JavaScript RIAs
Hardcore JavaScript – Write it Right
Hardcore JavaScript – Write it Right
Rails Development That Doesn't Hurt
Rails Development That Doesn't Hurt
Principled And Clean Coding
Principled And Clean Coding
TDD - Test Driven Development
TDD - Test Driven Development
C# Good practices
C# Good practices
Clean code coding like a professional
Clean code coding like a professional
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
AN EXERCISE IN CLEANER CODE - FROM LEGACY TO MAINTAINABLE - CFObjective() 2017
C# Best Practices
C# Best Practices
Good coding-style, a talk made in 2008 to encourage changes in MySQL coding s...
Good coding-style, a talk made in 2008 to encourage changes in MySQL coding s...
Writing Readable Code
Writing Readable Code
클린 테스트
클린 테스트
CLEAN WEB
CLEAN WEB
TDD in Python With Pytest
TDD in Python With Pytest
Testing gone-right
Testing gone-right
Grooming with Groovy
Grooming with Groovy
Mehr von David Paluy
Intro to Smart Contracts
Intro to Smart Contracts
David Paluy
Decentralizing Everything with Blockchain
Decentralizing Everything with Blockchain
David Paluy
Testing with Rspec 3
Testing with Rspec 3
David Paluy
Continuous integration for Ruby on Rails
Continuous integration for Ruby on Rails
David Paluy
Tdd - Test Driven Development
Tdd - Test Driven Development
David Paluy
Knowledge sharing at MESH
Knowledge sharing at MESH
David Paluy
Juicy Ruby 2.1
Juicy Ruby 2.1
David Paluy
The Secret: How Programmers Develop Code
The Secret: How Programmers Develop Code
David Paluy
Tools to help you understand other people's code
Tools to help you understand other people's code
David Paluy
Debugging and Profiling Rails Application
Debugging and Profiling Rails Application
David Paluy
Security on Rails
Security on Rails
David Paluy
Git flow Introduction
Git flow Introduction
David Paluy
Faster on Rails
Faster on Rails
David Paluy
Howto prepare fund raising presentation
Howto prepare fund raising presentation
David Paluy
Test driven-development
Test driven-development
David Paluy
Mehr von David Paluy
(15)
Intro to Smart Contracts
Intro to Smart Contracts
Decentralizing Everything with Blockchain
Decentralizing Everything with Blockchain
Testing with Rspec 3
Testing with Rspec 3
Continuous integration for Ruby on Rails
Continuous integration for Ruby on Rails
Tdd - Test Driven Development
Tdd - Test Driven Development
Knowledge sharing at MESH
Knowledge sharing at MESH
Juicy Ruby 2.1
Juicy Ruby 2.1
The Secret: How Programmers Develop Code
The Secret: How Programmers Develop Code
Tools to help you understand other people's code
Tools to help you understand other people's code
Debugging and Profiling Rails Application
Debugging and Profiling Rails Application
Security on Rails
Security on Rails
Git flow Introduction
Git flow Introduction
Faster on Rails
Faster on Rails
Howto prepare fund raising presentation
Howto prepare fund raising presentation
Test driven-development
Test driven-development
Kürzlich hochgeladen
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
Delhi Call girls
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
Shivain97
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
Call Girls in Nagpur High Profile Call Girls
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
Call Girls in Nagpur High Profile Call Girls
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
anilsa9823
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
PsychicRuben LoveSpells
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
Delhi Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
Pooja Nehwal
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
anilsa9823
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
Delhi Call girls
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
anilsa9823
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Call Girls in Nagpur High Profile
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
drae5
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
vikas rana
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
anilsa9823
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
pastor83
Introducing to billionaire brain wave.pdf
Introducing to billionaire brain wave.pdf
noumannajam04
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
dollysharma2066
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
anilsa9823
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptx
ABMWeaklings
Kürzlich hochgeladen
(20)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Palam (Delhi)
The Selfspace Journal Preview by Mindbrush
The Selfspace Journal Preview by Mindbrush
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Aarini) Russian Call Girls Surat Call Now 8250077686 Surat Escorts 24x7
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
(Anamika) VIP Call Girls Navi Mumbai Call Now 8250077686 Navi Mumbai Escorts ...
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
Lucknow 💋 High Class Call Girls Lucknow 10k @ I'm VIP Independent Escorts Gir...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
$ Love Spells^ 💎 (310) 882-6330 in West Virginia, WV | Psychic Reading Best B...
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Mukherjee Nagar (Delhi)
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
9892124323, Call Girls in mumbai, Vashi Call Girls , Kurla Call girls
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Mahanagar Lucknow best sexual service
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
2k Shots ≽ 9205541914 ≼ Call Girls In Dashrath Puri (Delhi)
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
CALL ON ➥8923113531 🔝Call Girls Adil Nagar Lucknow best Female service
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Tingre Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Pokemon Go... Unraveling the Conspiracy Theory
Pokemon Go... Unraveling the Conspiracy Theory
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
call Now 9811711561 Cash Payment乂 Call Girls in Dwarka Mor
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Aliganj Lucknow best sexual service
LC_YouSaidYes_NewBelieverBookletDone.pdf
LC_YouSaidYes_NewBelieverBookletDone.pdf
Introducing to billionaire brain wave.pdf
Introducing to billionaire brain wave.pdf
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
8377087607 Full Enjoy @24/7-CLEAN-Call Girls In Chhatarpur,
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Rajajipuram Lucknow best sexual service
Lilac Illustrated Social Psychology Presentation.pptx
Lilac Illustrated Social Psychology Presentation.pptx
Ruby On Rails coding conventions, standards and best practices
1.
Ruby On Rails
coding conventions, standards and best practices David Paluy August 2012
2.
Philosophy (from Rails) ●
DRY – Don't Repeat Yourself ● Convention over Configuration ● YAGNI - You ain't gonna need it
3.
Source code Style ●
Two spaces, no tabs ● Boolean tests: don't use “and” and “or”, always use “&&” and “| |”
4.
Go Easy on
the Comments ● If it's obvious – don't explain it ● Remove old commented code ● “How to” comments
5.
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
6.
Parentheses (Optional)
7.
Parentheses (Do &
Don't)
8.
Folding Up Lines
9.
Folding Up Blocks
10.
if vs unless
11.
while vs until
12.
Use Modifier Forms
13.
each, NOT for
14.
In the Wild
15.
Use Symbols to
Stand for Something
16.
Composing Methods for
Humans
17.
Make the code
a little more articulate
18.
Readable Code
19.
Readable code makes
your classes easier to test
20.
Git the diff says
what you did; your commit message should tell me why you did this
21.
Summary Good code is
like a good joke: It needs no explanation
22.
Credentials
Jetzt herunterladen