Rapid Prototyping FTW!!!

C
Rapid Prototyping with Rails
            isn’t
           Rapid
Rapid Prototyping with Rails
            isn’t
       Collaborative
Rapid Prototyping with Rails
           isn’t
           Easy
$ rails new protoypeapp
$ rails generate scaffold ...
Models and Controllers
Architecting =/= Prototyping
$ vi config/database.yml
$ mysql -uroot
NO
A database shouldn’t be
required to brainstorm
         ideas
Don’t even get me
started on migrations
Only Rails
Programmers can
   contribute
Prototyping should be
     All inclusive
Rapid Prototyping FTW!!!
$ serve create app
$ serve create app -j jquery

 # Works with jquery jquery-ui Prototype etc.
app/
    |
    +--   config.ru
    +--   public/                 # Directories for static assets
    |      +-- stylesheets/       # Compiled stylesheets
    |      +-- images/
    |      `-- javascripts/
    +--   sass/                   # Store Sass source files here
    |      `-- application.sass
    +--   tmp/
    |      `-- restart.txt        #   Needed for Passenger
    `--   views/                  #   Store your ERB, Haml, etc. here
           +-- _layout.html.erb   #   Example layout
           +-- hello.html.erb     #   Example view
           +-- view_helpers.rb    #   Example view helpers
           `-- stan.html          #   PLAIN HTML ALSO WORKS!
No Models
No Controllers
All views
No Routes Either
View folders
    are
Your Routes
All the simplicity of
  circa 2004 PHP
View Helpers
make it modern
$ gem install factory_girl
$ gem install faker
$ gem install factory_girl_extensions
# views/view_helper.rb
FactoryGirl.define do
  factory :user do
    first_name Faker::Name.first_name #=> John
    last_name Faker::Name.last_name #=> Smith
  end
end
# views/view_helper.rb
class Numeric
   def of &block
     Array.new(to_i).map &block
   end
end


@users = 50.of.User.build

           Cheap and easy Data Model
# /config.ru




     Serve is a Rack app!
Rapid Prototyping FTW!!!
$ curl get.pow.cx | sh
$ cd ~/.pow
$ ln -s /path/to/myapp
http://myapp.dev/
But, wait
Alt-⌘ + ⌘R
takes too long!
Guard
Guard




$ gem install guard
Guard




$ gem install guard-livereload
Guard



LiveReload refreshes the
  browser so you don’t
        have to
Guard



Available for Windows, Mac, Linux
                on
   Firefox, Chrome and Safari

 github.com/mockko/livereload
Guard




$ guard init livereload
Guard


# /Guardfile
guard 'livereload' do
  watch(%r{views/.+.(erb|haml|html)})
  watch(%r{views/helpers_.rb})
  watch(%r{public/.+.(css|js|html)})
end
Rapid Prototyping FTW!!!
Serve projects are rack apps
             so
    Heroku likes them
Front-End/Designer’s
    Perspective
Rails is a tool for
backend developers
Design in the Browser
Contribute more than
    sliced PSDs
Command-line is
becoming expected as
skill for front-end devs
Git isn’t that hard
Github & Heroku
          =
Great Reasons to Learn
Entreprenurs,
Get your ideas done
 faster and cheaper
Let people who love
  HTML do HTML
Let Rubyists wrestle
     with Rails
Empower front-end devs
          to
make the backend easier
Empower front-end devs
           to
make the backend easier
be a part of the process
Thank You
One more thing...
Rails 3 is
       a
Rack Application
Rack::Cascade
[Enter Stage Left]
Rack::Cascade




run Rack::Cascade.new([
  MyRailsApp::Application,
  serve_polished_protoype,
  serve_rough_wireframes
])
Rack::Cascade




   Reuse
 your mockups
and wireframes
This has been
Rapid Prototyping FTW!!!
       Emmanuel Mwangi
      Senior QA Engineer
           SendGrid
1 von 63

Recomendados

3 ways-to-create-sprites-in-rails von
3 ways-to-create-sprites-in-rails3 ways-to-create-sprites-in-rails
3 ways-to-create-sprites-in-railsNico Hagenburger
9.4K views37 Folien
3 Steps to Make Better & Faster Frontends von
3 Steps to Make Better & Faster Frontends3 Steps to Make Better & Faster Frontends
3 Steps to Make Better & Faster FrontendsNico Hagenburger
4K views37 Folien
Big Frontends Made Simple von
Big Frontends Made SimpleBig Frontends Made Simple
Big Frontends Made SimpleNico Hagenburger
3.3K views51 Folien
Revolver von
RevolverRevolver
RevolverMichelle Lim
106 views11 Folien
Modern Perl Web Development with Dancer von
Modern Perl Web Development with DancerModern Perl Web Development with Dancer
Modern Perl Web Development with DancerDave Cross
2.5K views137 Folien
Build your website with awestruct and publish it on the cloud with git von
Build your website with awestruct and publish it on the cloud with gitBuild your website with awestruct and publish it on the cloud with git
Build your website with awestruct and publish it on the cloud with gitXavier Coulon
1.2K views27 Folien

Más contenido relacionado

Was ist angesagt?

JSON and the APInauts von
JSON and the APInautsJSON and the APInauts
JSON and the APInautsWynn Netherland
5.1K views84 Folien
Web Site Tune-Up - Improve Your Googlejuice von
Web Site Tune-Up - Improve Your GooglejuiceWeb Site Tune-Up - Improve Your Googlejuice
Web Site Tune-Up - Improve Your GooglejuiceDave Cross
1.1K views113 Folien
Accelerated Stylesheets von
Accelerated StylesheetsAccelerated Stylesheets
Accelerated StylesheetsWynn Netherland
1.3K views147 Folien
Vagrant WordCamp Hamilton von
Vagrant  WordCamp HamiltonVagrant  WordCamp Hamilton
Vagrant WordCamp HamiltonPaul Bearne
739 views39 Folien
Big Design Conference: CSS3 von
Big Design Conference: CSS3 Big Design Conference: CSS3
Big Design Conference: CSS3 Wynn Netherland
1.7K views141 Folien
Mehr Performance für WordPress - WordCamp Köln von
Mehr Performance für WordPress - WordCamp KölnMehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp KölnWalter Ebert
3.8K views57 Folien

Was ist angesagt?(20)

Web Site Tune-Up - Improve Your Googlejuice von Dave Cross
Web Site Tune-Up - Improve Your GooglejuiceWeb Site Tune-Up - Improve Your Googlejuice
Web Site Tune-Up - Improve Your Googlejuice
Dave Cross1.1K views
Vagrant WordCamp Hamilton von Paul Bearne
Vagrant  WordCamp HamiltonVagrant  WordCamp Hamilton
Vagrant WordCamp Hamilton
Paul Bearne739 views
Mehr Performance für WordPress - WordCamp Köln von Walter Ebert
Mehr Performance für WordPress - WordCamp KölnMehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp Köln
Walter Ebert3.8K views
WordPress as the Backbone(.js) von Beau Lebens
WordPress as the Backbone(.js)WordPress as the Backbone(.js)
WordPress as the Backbone(.js)
Beau Lebens4.9K views
WordCamp Ann Arbor 2015 Introduction to Backbone + WP REST API von Brian Hogg
WordCamp Ann Arbor 2015 Introduction to Backbone + WP REST APIWordCamp Ann Arbor 2015 Introduction to Backbone + WP REST API
WordCamp Ann Arbor 2015 Introduction to Backbone + WP REST API
Brian Hogg1.8K views
Monitoring web application behaviour with cucumber-nagios von Lindsay Holmwood
Monitoring web application behaviour with cucumber-nagiosMonitoring web application behaviour with cucumber-nagios
Monitoring web application behaviour with cucumber-nagios
Lindsay Holmwood4.3K views
Capybara von Mona Soni
CapybaraCapybara
Capybara
Mona Soni1.9K views
Node.js & Twitter Bootstrap Crash Course von Aaron Silverman
Node.js & Twitter Bootstrap Crash CourseNode.js & Twitter Bootstrap Crash Course
Node.js & Twitter Bootstrap Crash Course
Aaron Silverman28.7K views
Learn Sass and Compass quick von Billy Shih
Learn Sass and Compass quickLearn Sass and Compass quick
Learn Sass and Compass quick
Billy Shih7.9K views
Accelerated Native Mobile Development with the Ti gem von Wynn Netherland
Accelerated Native Mobile Development with the Ti gemAccelerated Native Mobile Development with the Ti gem
Accelerated Native Mobile Development with the Ti gem
Wynn Netherland954 views
Building a PWA - For Everyone Who Is Scared To von Raymond Camden
Building a PWA - For Everyone Who Is Scared ToBuilding a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared To
Raymond Camden844 views
WordPress mit Composer und Git verwalten von Walter Ebert
WordPress mit Composer und Git verwaltenWordPress mit Composer und Git verwalten
WordPress mit Composer und Git verwalten
Walter Ebert1.6K views
Bigger Stronger Faster von Chris Love
Bigger Stronger FasterBigger Stronger Faster
Bigger Stronger Faster
Chris Love465 views
PyCon Russia 2014 - Auto Scale in the Cloud von Simone Soldateschi
PyCon Russia 2014 - Auto Scale in the CloudPyCon Russia 2014 - Auto Scale in the Cloud
PyCon Russia 2014 - Auto Scale in the Cloud
Simone Soldateschi1.7K views

Similar a Rapid Prototyping FTW!!!

Toolbox of a Ruby Team von
Toolbox of a Ruby TeamToolbox of a Ruby Team
Toolbox of a Ruby TeamArto Artnik
422 views38 Folien
Building web framework with Rack von
Building web framework with RackBuilding web framework with Rack
Building web framework with Racksickill
3.6K views63 Folien
Sprockets von
SprocketsSprockets
SprocketsChristophe Porteneuve
12.2K views80 Folien
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby von
Consegi 2010 - Dicas de Desenvolvimento Web com RubyConsegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com RubyFabio Akita
1.3K views160 Folien
Crossing the Bridge: Connecting Rails and your Front-end Framework von
Crossing the Bridge: Connecting Rails and your Front-end FrameworkCrossing the Bridge: Connecting Rails and your Front-end Framework
Crossing the Bridge: Connecting Rails and your Front-end FrameworkDaniel Spector
1.3K views65 Folien
End-to-end web-testing in ruby ecosystem von
End-to-end web-testing in ruby ecosystemEnd-to-end web-testing in ruby ecosystem
End-to-end web-testing in ruby ecosystemAlex Mikitenko
608 views31 Folien

Similar a Rapid Prototyping FTW!!!(20)

Toolbox of a Ruby Team von Arto Artnik
Toolbox of a Ruby TeamToolbox of a Ruby Team
Toolbox of a Ruby Team
Arto Artnik422 views
Building web framework with Rack von sickill
Building web framework with RackBuilding web framework with Rack
Building web framework with Rack
sickill3.6K views
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby von Fabio Akita
Consegi 2010 - Dicas de Desenvolvimento Web com RubyConsegi 2010 - Dicas de Desenvolvimento Web com Ruby
Consegi 2010 - Dicas de Desenvolvimento Web com Ruby
Fabio Akita1.3K views
Crossing the Bridge: Connecting Rails and your Front-end Framework von Daniel Spector
Crossing the Bridge: Connecting Rails and your Front-end FrameworkCrossing the Bridge: Connecting Rails and your Front-end Framework
Crossing the Bridge: Connecting Rails and your Front-end Framework
Daniel Spector1.3K views
End-to-end web-testing in ruby ecosystem von Alex Mikitenko
End-to-end web-testing in ruby ecosystemEnd-to-end web-testing in ruby ecosystem
End-to-end web-testing in ruby ecosystem
Alex Mikitenko608 views
Container (Docker) Orchestration Tools von Dhilipsiva DS
Container (Docker) Orchestration ToolsContainer (Docker) Orchestration Tools
Container (Docker) Orchestration Tools
Dhilipsiva DS441 views
Introduction to Rails - presented by Arman Ortega von arman o
Introduction to Rails - presented by Arman OrtegaIntroduction to Rails - presented by Arman Ortega
Introduction to Rails - presented by Arman Ortega
arman o522 views
DiUS Computing Lca Rails Final von Robert Postill
DiUS  Computing Lca Rails FinalDiUS  Computing Lca Rails Final
DiUS Computing Lca Rails Final
Robert Postill587 views
Ruby on Rails survival guide of an aged Java developer von gicappa
Ruby on Rails survival guide of an aged Java developerRuby on Rails survival guide of an aged Java developer
Ruby on Rails survival guide of an aged Java developer
gicappa1.2K views
Lean Php Presentation von Alan Pinstein
Lean Php PresentationLean Php Presentation
Lean Php Presentation
Alan Pinstein13.7K views
Fisl 11 - Dicas de Desenvolvimento Web com Ruby von Fabio Akita
Fisl 11 - Dicas de Desenvolvimento Web com RubyFisl 11 - Dicas de Desenvolvimento Web com Ruby
Fisl 11 - Dicas de Desenvolvimento Web com Ruby
Fabio Akita877 views
Deploying Symfony | symfony.cat von Pablo Godel
Deploying Symfony | symfony.catDeploying Symfony | symfony.cat
Deploying Symfony | symfony.cat
Pablo Godel2.8K views
Phoenix for Rails Devs von Diacode
Phoenix for Rails DevsPhoenix for Rails Devs
Phoenix for Rails Devs
Diacode1K views
PSGI and Plack from first principles von Perl Careers
PSGI and Plack from first principlesPSGI and Plack from first principles
PSGI and Plack from first principles
Perl Careers2K views
Scaling up development of a modular code base von Robert Munteanu
Scaling up development of a modular code baseScaling up development of a modular code base
Scaling up development of a modular code base
Robert Munteanu345 views
DevOps in PHP environment von Evaldo Felipe
DevOps in PHP environment DevOps in PHP environment
DevOps in PHP environment
Evaldo Felipe160 views
JRuby + Rails = Awesome Java Web Framework at Jfokus 2011 von Nick Sieger
JRuby + Rails = Awesome Java Web Framework at Jfokus 2011JRuby + Rails = Awesome Java Web Framework at Jfokus 2011
JRuby + Rails = Awesome Java Web Framework at Jfokus 2011
Nick Sieger3.6K views

Último

STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf von
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdfDr. Jimmy Schwarzkopf
19 views29 Folien
Scaling Knowledge Graph Architectures with AI von
Scaling Knowledge Graph Architectures with AIScaling Knowledge Graph Architectures with AI
Scaling Knowledge Graph Architectures with AIEnterprise Knowledge
30 views15 Folien
The Research Portal of Catalonia: Growing more (information) & more (services) von
The Research Portal of Catalonia: Growing more (information) & more (services)The Research Portal of Catalonia: Growing more (information) & more (services)
The Research Portal of Catalonia: Growing more (information) & more (services)CSUC - Consorci de Serveis Universitaris de Catalunya
80 views25 Folien
SAP Automation Using Bar Code and FIORI.pdf von
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdfVirendra Rai, PMP
23 views38 Folien
Igniting Next Level Productivity with AI-Infused Data Integration Workflows von
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Safe Software
263 views86 Folien
Ransomware is Knocking your Door_Final.pdf von
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfSecurity Bootcamp
55 views46 Folien

Último(20)

STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf von Dr. Jimmy Schwarzkopf
STKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdfSTKI Israeli Market Study 2023   corrected forecast 2023_24 v3.pdf
STKI Israeli Market Study 2023 corrected forecast 2023_24 v3.pdf
Igniting Next Level Productivity with AI-Infused Data Integration Workflows von Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software263 views
Business Analyst Series 2023 - Week 3 Session 5 von DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10248 views
Unit 1_Lecture 2_Physical Design of IoT.pdf von StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec12 views
Empathic Computing: Delivering the Potential of the Metaverse von Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst478 views
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... von Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
Data Integrity for Banking and Financial Services von Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely21 views
Five Things You SHOULD Know About Postman von Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman33 views

Rapid Prototyping FTW!!!

Hinweis der Redaktion

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. Models and Controllers are architecting. They make you think about how the app should work rather than what the app should do or what it should look like or how it will interact with users.\n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. View_helpers are ruby files in each directory to execute in the context of the the views in each directory.\n
  24. \n
  25. \n
  26. \n
  27. Auto-generate random names, addresses, companies, slogans, etc with Faker.\n
  28. User.build comes from factory_girl_extensions\n
  29. \n
  30. \n
  31. That’s the install!\n
  32. That’s how to link an app to project\n
  33. That’s how to link an app to project\n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. Browser plugin for all the major modern browsers.\n
  41. \n
  42. \n
  43. \n
  44. \n
  45. Easy to install Pow, Serve and even Push to Heroku with a little help.\n
  46. Easy to install Pow, Serve and even Push to Heroku with a little help.\n
  47. Easy to install Pow, Serve and even Push to Heroku with a little help.\n
  48. Easy to install Pow, Serve and even Push to Heroku with a little help.\n
  49. Easy to install Pow, Serve and even Push to Heroku with a little help.\n
  50. Easy to install Pow, Serve and even Push to Heroku with a little help.\n
  51. Easy to install Pow, Serve and even Push to Heroku with a little help.\n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n
  58. Always wanted to do a deck with one of these slides...\n
  59. \n
  60. \n
  61. From top to bottom, Rack::Cascade will try and serve pages from the first app and if that page returns a 404, automatically serves from the next app down the list. Each of the apps on that list can be different projects, with different teams and different states of readiness.\n
  62. \n
  63. \n