Skip to content

Commit 4177ead

Browse files
committedMay 18, 2011
add notes for Keeping Rails on Tracks presentation
1 parent 17928e3 commit 4177ead

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
 

‎keeping_rails_on_tracks.txt

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
Keeping Rails on Tracks presentation
2+
3+
slides: http://speakerrate.com/talks/7575
4+
5+
What does on th Tracks mean?
6+
* working code?
7+
* sexy code?
8+
* maintainable code? (can other people read it?)
9+
* a product is only a product when it is delivered. What is the product?
10+
* budget matters - don't waste time on code if it won't be a product, and spend time wisely
11+
* trade-offs are part of life - not all ugly code needs refactoring
12+
* you are not selling code - you sell a solution
13+
* deployment is a first class citizen
14+
* document how to do this in README
15+
* server setup needs to have a repeatable configuration
16+
* use bundler
17+
* be explicit in versions
18+
* only lock to git repos you own. Fork the ones you don't own, make a branch, and then depend on your branch of your fork.
19+
* repeatable deployment - use common deployment methods
20+
* make a db/seeds.rb file
21+
* link in security - no passwords stored in source control
22+
* document:
23+
* steps to deploy
24+
* are SSH keys necessary
25+
* db seeding and setup
26+
* fast page == happy client
27+
* minify js and css; use css sprites
28+
* use rails caching: fragment cache, action cache, page cache
29+
* big session == slow site
30+
* session values, not session objects
31+
* store only strings or numbers
32+
* don't create a session for every visitor, only do it for visitors that become customers
33+
* less code == less bugs
34+
* being smart can be stupid
35+
* keep tests simple
36+
* use test helpers to keep blocks of code from getting too big to read
37+
* simple is better than complex - what you leave out is almost more important than what you put in
38+
* good code is easy to read - The harder it is to read, the more likely it will have to be rewritten
39+
* reinvention is overrated
40+
* use the write tool for the job
41+
* databases have feelings too - you don't need database agnostic code if db isn't going to change
42+
* raw SQL is OK to use if it drastically saves time
43+
* don't share the db - refactor into API calls
44+
45+
How to stay on track?
46+
* apps that work, are easy to maintain, and bug-free
47+
* MAKE RAILS CODE MAINTAINABLE
48+
* get your code inspected. many consultants do it. ask for a sample.
49+

0 commit comments

Comments
 (0)
Please sign in to comment.