The brief seeds of Padrino

2,285 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,285
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • The brief seeds of Padrino

    1. 1. THE BRIEF SEEDS OF PADRINO by id:aereal
    2. 2. WHO AM I?@aerealid:aerealGitHub: aerealApplication Engineer at Hatenasee also: aereal.org
    3. 3. WORKSPadrino::Validation::HTML5 Add supports HTML5 form validations to Padrino github.com/aereal/padrino-validation-html5Hated mocking server which can be utilized for Hatena Diary github.com/aereal/hated
    4. 4. TABLE OF CONTENTSThe essentials of developing a Web ApplicationThe History of Web Application FrameworksPadrino and SinatraPadrino and RailsPadrino and Others
    5. 5. THE ESSENTIALS OF DEVELOPINGWEB APPLICATION
    6. 6. THE ESSENTIALS OF DEVELOPING A WEB APP.FastCompactPortable
    7. 7. FAST?ReadingCodingSetting-upLoadingDeploying
    8. 8. COMPACT?Application CodeFramework CodeDependenciesArchitecture
    9. 9. PORTABLE?DependenciesHosting ServicesSize of Application (and Framework)
    10. 10. “Less is more.” Ludwig Mies van der Rohe (1886-1969)
    11. 11. I MEANKeep developing a web app: Fast Compact PortableThen you take a delight in!
    12. 12. THE HISTORY OFWEB APPLICATIONFRAMEWORK
    13. 13. History repeats itself
    14. 14. DRY = Don’t Repeat Yourself
    15. 15. We should learn from the History
    16. 16. THE HISTORY OF WEB APP. FRAMEWORK(CGI, Common Gateway Interface)Full-stack(Minimal)Micro-framework
    17. 17. FULL-STACK FRAMEWORKRails (Ruby)Django (Python)Catalyst (Perl)
    18. 18. FULL-STACK FRAMEWORKForms the big cultural sphereRelieves your mind by hiding what you mind You’ll never know them unless you will
    19. 19. MICRO-FRAMEWORKSinatra (Ruby)Juno (Python)Mojolicious::Lite, Amon2 (Perl)Loli (!) -> Miku (!!!) (Haskell)Scalatra (Scala)
    20. 20. MICRO-FRAMEWORKForms small/open cultural sphereRelieves your mind by showing what you do You should write/know only what you do
    21. 21. !!! Rails vs. Sinatra !!!
    22. 22. IMAGINE!
    23. 23. 生存戦略∼
    24. 24. SURVIVING STRATEGYRails doesn’t kill Sinatra Rails doesn’t have small spin-upSinatra doesn’t kill Rails Sinatra doesn’t have the order
    25. 25. your_desires << small spin-upyour_desires << fast spin-upyour_desires << the orderyour_desires << scaling
    26. 26. Padrino.include?(your_desire) # -> true
    27. 27. PADRINOANDSINATRA
    28. 28. PADRINO IS BUFFET
    29. 29. PADRINO IS BUFFETRouting (Named, Multiple Format)HelpersLoggerAdmin Apps (like Django)Reloader (It’s smart!)see also: www.padrinorb.com/#introduction
    30. 30. PADRINO IS FXXKIN’ SHIT?Extending Sinatra through Public / Safe API but Padrino::Routing is like a abyss ...use (Rack Middleware)register (Sinatra Extension)
    31. 31. Sinatra’s World?
    32. 32. THE DOMAIN OF SINATRA = HTTP
    33. 33. KEEP IT LESSNo DBsNo helpersNo anything luxurious
    34. 34. LESS IS NOT IMPOSSIBLEDB / ORMView Helpers You can use it with Sinatra!
    35. 35. ON THE SINATRASinatra discovered potential / real needsSinatra built themSpecifications beat Conventions
    36. 36. PADRINOANDRAILS
    37. 37. PADRINO AND RAILSRails is full-stackPadrino can be full-stack This means you can use Padrino as not full-stack
    38. 38. RAILS IS THE INNOVATORDiscovered many important things Spirit of DRY, or CoC ActiveRecord, ActiveSupport, etc.Sometimes it makes a detourThe innovation involves pains
    39. 39. PADRINO IS THE GODFATHER
    40. 40. PADRINO IS THE GODFATHERHe glues the components of Web Applications Test Frameworks ORM etc.He guards Sinatra’s World
    41. 41. ROUTINGRails config/routes.rb resource[s] (>= 3.0)Padrino & Sinatra HTTP Verbs (get, post, etc ...)
    42. 42. VIEWRails ActionViewPadrino & Sinatara Tilt (>= 1.0)
    43. 43. HERITAGESArchitectures and Spirits MVC DRYLuxuoriousness
    44. 44. CONCLUSIONSPadrino is on the Sinatra’s WorldRails’ heritages are behindPadrino, Sinatra, and Rails should be all in harmony
    45. 45. SEE ALSOPadrino Official Web (www.padrinorb.com)Padrino Official Web (ja) (jp.padrinorb.com)Padrino on GitHub (github.com/padrino/padrino-framework)Padrino Recipes (github.com/padrino/padrino-recipes)Sinatra The Book (sinatra-book.gittr.com)
    46. 46. SEE ALSO@udzura’s Blog (blog.udzura.jp/)and, my blog :) (aereal.hateblo.jp)

    ×