phoenix for rubyists
TRANSCRIPT
Deccan RubyConf 2016
Mike North Levanto Financial
@MichaelLNorth
FOR ISTS
Yes No
????
I <3 RUBY
HERE’S SOMETHING IMPORTANT THAT COULDN’T HAVE BEEN
DONE WITHOUT RUBY & RAILS
OPINIONS & PRODUCTIVITY
1. THE STORY
1. THE STORY
2. PHOENIX IS LIKE RAILS
1. THE STORY
2. PHOENIX IS LIKE RAILS
3. PHOENIX IS NOT LIKE RAILS
1. THE STORY
2. PHOENIX IS LIKE RAILS
3. PHOENIX IS NOT LIKE RAILS
4. HOWTO
THE STORY
@chris_mccord dockyard.com Inventor of Phoenix
Chris Mccord
THE STORY
@chris_mccord dockyard.com Inventor of Phoenix
Chris Mccord
THE STORY
@josevalim plataformatec.com Rails Core Alum Inventor of Elixir
Jose Valim
MOORE’S LAWComputing power doubles ~ every two years
MOORE’S LAWComputing power doubles ~ every two years
Erlang Ruby
!
!
!
!
"
#
!
$☁
☁
[info] Sent 200 in 31µs
THE STORY
@chris_mccord dockyard.com Inventor of Phoenix
Chris Mccord
1. THE STORY
2. PHOENIX IS LIKE RAILS
RakeBundler
MIX
Model Table Schema
ROUTER
CONTROLLERS
MIGRATIONS
TESTS
TEMPLATES
ERRORS
1. THE STORY
2. PHOENIX IS LIKE RAILS
3. PHOENIX IS NOT LIKE RAILS
PIPE FORWARD |>
•Shorthand for “send return along as first value of next function”
IMMUTABILITY
Think of variables as “labels for values”
IMMUTABILITY
Think of variables as “labels for values”
MODELS
ActiveRecord & Making your life easy one N+1
query at a time
MODELS
1. THE STORY
2. PHOENIX IS LIKE RAILS
3. PHOENIX IS NOT LIKE RAILS
4. HOWTO
HOWTO
•One-shot rewrites are expensive and dangerous
•You suffer, your company suffers, your users suffer
•Incremental change makes everyone happier
REVERSE PROXY
Rails Phoenix
REVERSE PROXY
RailsPhoenix
ELIXIR & PHOENIX
•Performant
•Productive
•Functional
•You’re already halfway there
SOME IMAGES & DIAGRAMS AND OTHER STUFF FROM…•https://www.toptal.com/erlang/a-cloud-at-the-lowest-level-built-in-erlang
•https://en.wikipedia.org/wiki/Moore%27s_law •https://theerlangelist.blogspot.in/2013/05/working-with-immutable-data.html
•https://www.amberbit.com/blog/2014/2/14/putting-ruby-on-rails-on-a-diet/
•https://www.technologyreview.com/s/601441/moores-law-is-dead-now-what/
THANKS!