Professional Documents
Culture Documents
The Rails 3.1 Leap - 2011
The Rails 3.1 Leap - 2011
1 Leap
@nathanbertram
O.K its not that kind of a leap. But there is lots of improvements & awesome new stuff!
GIST
~~ Quick Poll ~~
When you upgrade to Rails 3.1 its going to feel much the same ... Recognizable
jQuery
is now default
INTO THIS:
Turns out you can remove that line from your Gemle.
To everyone ...
Dealt
Sprokets Sprokets uses manifest les to determine which assets to include and serve.
Asset Pipeline Assets are optimized out of the box when you deploy. Saving precious KBs and less les for the browser to download - faster load time.
HTTP Streaming
- Send content to the browser before its nished processing. Been around for ages in php, asp, etc. - Chunked Responses Eg. Page takes 5 seconds to process. Stream the <head> ... </head> part; so the browser can start loading js/css assets.
HTTP Streaming
BCrypt (BRUTE force resistant) With every request to hash - it gets slower and slower ...
Identity Map
- Ensures that each object gets loaded only once by keeping every loaded object in a map. Looks up objects using the map. - Disabled by default due to a couple recent discoveries. https://github.com/rails/rails/blob/master/activerecord/ lib/active_record/identity_map.rb
Reversible Migrations
Thanks!
Thursday, October 27, 2011