SlideShare a Scribd company logo
1 of 46
THE BRIEF SEEDS OF
    PADRINO
      by id:aereal
WHO AM I?


@aereal

id:aereal

GitHub: aereal

Application Engineer at Hatena

see also: aereal.org
WORKS

Padrino::Validation::HTML5

  Add supports HTML5 form validations to Padrino

  github.com/aereal/padrino-validation-html5

Hated

  mocking server which can be utilized for Hatena Diary

  github.com/aereal/hated
TABLE OF CONTENTS

The essentials of developing a Web Application

The History of Web Application Frameworks

Padrino and Sinatra

Padrino and Rails

Padrino and Others
THE ESSENTIALS OF
  DEVELOPING
WEB APPLICATION
THE ESSENTIALS OF
   DEVELOPING A WEB APP.


Fast

Compact

Portable
FAST?


Reading

Coding

Setting-up

Loading

Deploying
COMPACT?


Application Code

Framework Code

Dependencies

Architecture
PORTABLE?



Dependencies

Hosting Services

Size of Application (and Framework)
“Less is more.”
  Ludwig Mies van der Rohe (1886-1969)
I MEAN


Keep developing a web app:

  Fast

  Compact

  Portable

Then you take a delight in!
THE HISTORY OF
WEB APPLICATION
FRAMEWORK
History repeats itself
DRY =
 Don’t
 Repeat
 Yourself
We should learn from the History
THE HISTORY OF
    WEB APP. FRAMEWORK


(CGI, Common Gateway Interface)

Full-stack

(Minimal)

Micro-framework
FULL-STACK FRAMEWORK



Rails (Ruby)

Django (Python)

Catalyst (Perl)
FULL-STACK FRAMEWORK



Forms the big cultural sphere

Relieves your mind by hiding what you mind

  You’ll never know them unless you will
MICRO-FRAMEWORK


Sinatra (Ruby)

Juno (Python)

Mojolicious::Lite, Amon2 (Perl)

Loli (!) -> Miku (!!!) (Haskell)

Scalatra (Scala)
MICRO-FRAMEWORK



Forms small/open cultural sphere

Relieves your mind by showing what you do

  You should write/know only what you do
!!! Rails vs. Sinatra !!!
IMAGINE!
生存戦略∼
SURVIVING STRATEGY


Rails doesn’t kill Sinatra

  Rails doesn’t have small spin-up

Sinatra doesn’t kill Rails

  Sinatra doesn’t have the order
your_desires << small spin-up
your_desires << fast spin-up
your_desires << the order
your_desires << scaling
Padrino.include?(your_desire)
          # -> true
PADRINO
AND
SINATRA
PADRINO IS BUFFET
PADRINO IS BUFFET

Routing (Named, Multiple Format)

Helpers

Logger

Admin Apps (like Django)

Reloader (It’s smart!)

see also: www.padrinorb.com/#introduction
PADRINO IS FXXKIN’ SHIT?


Extending Sinatra through Public / Safe API

  but Padrino::Routing is like a abyss ...

use (Rack Middleware)

register (Sinatra Extension)
Sinatra’s World?
THE DOMAIN OF SINATRA



    = HTTP
KEEP IT LESS



No DBs

No helpers

No anything luxurious
LESS IS NOT IMPOSSIBLE



DB / ORM

View Helpers

  You can use it with Sinatra!
ON THE SINATRA



Sinatra discovered potential / real needs

Sinatra built them

Specifications beat Conventions
PADRINO
AND
RAILS
PADRINO AND RAILS



Rails is full-stack

Padrino can be full-stack

  This means you can use Padrino as not full-stack
RAILS IS THE INNOVATOR


Discovered many important things

  Spirit of DRY, or CoC

  ActiveRecord, ActiveSupport, etc.

Sometimes it makes a detour

The innovation involves pains
PADRINO IS THE GODFATHER
PADRINO IS THE GODFATHER


He glues the components of Web Applications

  Test Frameworks

  ORM

  etc.

He guards Sinatra’s World
ROUTING


Rails

  config/routes.rb

  resource[s] (>= 3.0)

Padrino & Sinatra

  HTTP Verbs (get, post, etc ...)
VIEW


Rails

  ActionView

Padrino & Sinatara

  Tilt (>= 1.0)
HERITAGES


Architectures and Spirits

  MVC

  DRY

Luxuoriousness
CONCLUSIONS



Padrino is on the Sinatra’s World

Rails’ heritages are behind

Padrino, Sinatra, and Rails should be all in harmony
SEE ALSO

Padrino 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)
SEE ALSO



@udzura’s Blog (blog.udzura.jp/)



and, my blog :) (aereal.hateblo.jp)

More Related Content

Similar to The brief seeds of Padrino

Web Frameworks of the Future
Web Frameworks of the FutureWeb Frameworks of the Future
Web Frameworks of the Future
elliando dias
 
Fronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid PrototypingFronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid Prototyping
Stephen Hay
 
Ruby On Rails Seminar Basis Softexpo Feb2010
Ruby On Rails Seminar Basis Softexpo Feb2010Ruby On Rails Seminar Basis Softexpo Feb2010
Ruby On Rails Seminar Basis Softexpo Feb2010
arif44
 

Similar to The brief seeds of Padrino (20)

Ruby - The Hard Bits
Ruby - The Hard BitsRuby - The Hard Bits
Ruby - The Hard Bits
 
Viridians on Rails
Viridians on RailsViridians on Rails
Viridians on Rails
 
Rails in the bowels
Rails in the bowelsRails in the bowels
Rails in the bowels
 
Web Frameworks of the Future
Web Frameworks of the FutureWeb Frameworks of the Future
Web Frameworks of the Future
 
Sparklife - Life In The Trenches With Spark
Sparklife - Life In The Trenches With SparkSparklife - Life In The Trenches With Spark
Sparklife - Life In The Trenches With Spark
 
Ruby On Rails Presentation
Ruby On Rails PresentationRuby On Rails Presentation
Ruby On Rails Presentation
 
Fronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid PrototypingFronteers Workshop: Rabid Prototyping
Fronteers Workshop: Rabid Prototyping
 
Finding Frank - Spotify API.pdf
Finding Frank - Spotify API.pdfFinding Frank - Spotify API.pdf
Finding Frank - Spotify API.pdf
 
Development: What They Don't Teach You in College
Development: What They Don't Teach You in CollegeDevelopment: What They Don't Teach You in College
Development: What They Don't Teach You in College
 
Development: What they don't teach you in college
Development: What they don't teach you in collegeDevelopment: What they don't teach you in college
Development: What they don't teach you in college
 
Strangers In The Night: Ruby, Rack y Sinatra - Herramientas potentes para con...
Strangers In The Night: Ruby, Rack y Sinatra - Herramientas potentes para con...Strangers In The Night: Ruby, Rack y Sinatra - Herramientas potentes para con...
Strangers In The Night: Ruby, Rack y Sinatra - Herramientas potentes para con...
 
Why Django
Why DjangoWhy Django
Why Django
 
Ror Seminar With agilebd.org on 23 Jan09
Ror Seminar With agilebd.org on 23 Jan09Ror Seminar With agilebd.org on 23 Jan09
Ror Seminar With agilebd.org on 23 Jan09
 
Ruby On Rails
Ruby On RailsRuby On Rails
Ruby On Rails
 
FOSDEM 2021 - Infrastructure as Code Drift & Driftctl
FOSDEM 2021 - Infrastructure as Code Drift & DriftctlFOSDEM 2021 - Infrastructure as Code Drift & Driftctl
FOSDEM 2021 - Infrastructure as Code Drift & Driftctl
 
Ruby On Rails Seminar Basis Softexpo Feb2010
Ruby On Rails Seminar Basis Softexpo Feb2010Ruby On Rails Seminar Basis Softexpo Feb2010
Ruby On Rails Seminar Basis Softexpo Feb2010
 
Libraries Frameworks And Cms
Libraries Frameworks And CmsLibraries Frameworks And Cms
Libraries Frameworks And Cms
 
An Automated Laser Pointer for Your Dog : Aws IoT & Lambda
An Automated Laser Pointer for Your Dog : Aws IoT & Lambda An Automated Laser Pointer for Your Dog : Aws IoT & Lambda
An Automated Laser Pointer for Your Dog : Aws IoT & Lambda
 
SoundCloud API Do:s and Don't:s
SoundCloud API Do:s and Don't:sSoundCloud API Do:s and Don't:s
SoundCloud API Do:s and Don't:s
 
WebKit, why it matters (PDF version)
WebKit, why it matters (PDF version)WebKit, why it matters (PDF version)
WebKit, why it matters (PDF version)
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 

The brief seeds of Padrino

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \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. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n