Slide 1

Slide 1 text

RAILS Vladimir Dementyev Evil Martians

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

One can't build new tomorrow using yesterday's tools

Slide 4

Slide 4 text

3 github.com/palkan 2017-... 2016-... 2015-... 2015-...

Slide 5

Slide 5 text

Path to X Reflect Listen Observe Predict 4 What are the past decisions to reconsider? What do users want? What do competitors offer? How do we stay relevant?

Slide 6

Slide 6 text

Disclaimer: Sources Personal reflections Community surveys Social platforms Hallway tracks 5

Slide 7

Slide 7 text

REFLECT rails new --skip-javascript --skip-actiontext --skip-hotwire --skip-actionmailbox --skip-ci --skip-whatever BALLAST TYPES

Slide 8

Slide 8 text

7 CALLBACKS 29 RECONSIDER

Slide 9

Slide 9 text

8 github.com/evilmartians/callback_hell

Slide 10

Slide 10 text

9 CALLBACKS 29 RECONSIDER ACTIVE RECORD 21

Slide 11

Slide 11 text

–Anonymous Rails user with 10+ years of experience “ActiveRecord was an architectural failure since pre-1.0.” 10

Slide 12

Slide 12 text

11

Slide 13

Slide 13 text

12 CALLBACKS 29 RECONSIDER ACTIVE RECORD 21 ACTION MAILBOX 17

Slide 14

Slide 14 text

12 CALLBACKS 29 RECONSIDER ACTIVE RECORD 21 ACTION MAILBOX 17 ACTION TEXT 9

Slide 15

Slide 15 text

13 laravel.com

Slide 16

Slide 16 text

14 CALLBACKS 29 RECONSIDER ACTIVE RECORD 21 ACTION MAILBOX 17 IVARS IN VIEWS 11 ACTION TEXT 9

Slide 17

Slide 17 text

14 CALLBACKS 29 4 ACTION PATTERN (CONTROLLERS) RECONSIDER ACTIVE RECORD 21 ACTION MAILBOX 17 IVARS IN VIEWS 11 ACTION TEXT 9

Slide 18

Slide 18 text

module Store module Products class Create < Hanami::Action include Deps["repos.product_repo"] params do required(:name).filled(:string) end def handle(request, response) halt 422 unless request.params.valid? product = product_repo.create(name: request.params[:name]) response.redirect_to routes.path(:product, id: product.id) end end end end 15

Slide 19

Slide 19 text

module Store module Products class Create < Hanami::Action include Deps["repos.product_repo"] params do required(:name).filled(:string) end def handle(request, response) halt 422 unless request.params.valid? product = product_repo.create(name: request.params[:name]) response.redirect_to routes.path(:product, id: product.id) end end end end 15

Slide 20

Slide 20 text

16 CALLBACKS 29 42 JS/CSS MGMT 4 ACTION PATTERN (CONTROLLERS) RECONSIDER ACTIVE RECORD 21 ACTION MAILBOX 17 IVARS IN VIEWS 11 ACTION TEXT 9

Slide 21

Slide 21 text

–Reddit user “Bad: JS integration. Every new version comes with a different approach. Not solid, no consistent.” 17

Slide 22

Slide 22 text

18

Slide 23

Slide 23 text

19 propshaft

Slide 24

Slide 24 text

19 propshaft jsbundling-rails esbuild bun cssbundling-rails tailwindcss-rails + + +

Slide 25

Slide 25 text

19 propshaft jsbundling-rails esbuild bun cssbundling-rails tailwindcss-rails + + + Joyful developer experiences are about reducing friction

Slide 26

Slide 26 text

20 propshaft jsbundling-rails esbuild bun cssbundling-rails tailwindcss-rails hotwire-spark + + + +

Slide 27

Slide 27 text

–Ruby on Rails Community Survey 2024 “Better integration with front-end technologies.” 21

Slide 28

Slide 28 text

22 vite_rails

Slide 29

Slide 29 text

23 vite_rails

Slide 30

Slide 30 text

24 vite_rails But now I need a JS runtime :(

Slide 31

Slide 31 text

25 vite_rails bundlebun +

Slide 32

Slide 32 text

26 github.com/yaroslav/bundlebun

Slide 33

Slide 33 text

28 vite_rails bundlebun + Yes-Build Future For All, No Deps Attached!

Slide 34

Slide 34 text

Future For All—? 29

Slide 35

Slide 35 text

ONE PERSON FRAMEWORK GETTING FROM ZERO TO ONE

Slide 36

Slide 36 text

31 rails new 0 IPO 1 ∞ 2 ··· New users Makers Growing startups Big Rails

Slide 37

Slide 37 text

32 rails new 0 IPO 1 ∞ 2 ··· New users Makers Growing startups Big Rails "Listen" target audiences

Slide 38

Slide 38 text

LISTEN TO USERS AT ±0

Slide 39

Slide 39 text

–Anonymous Rails user with 5+ years of experience “rails new generates something closer to a fully functional SaaS app with the right flag configurations.” 34

Slide 40

Slide 40 text

–Another anonymous Rails user with 5+ years of experience “The prebuilt modules you see teams using in the Laravel community... there's a lot of convention only provided by gems or private libraries, eg Jumpstart” 35

Slide 41

Slide 41 text

36 laravel.com

Slide 42

Slide 42 text

37 railsbytes.com

Slide 43

Slide 43 text

38 railsbytes.com

Slide 44

Slide 44 text

39

Slide 45

Slide 45 text

39

Slide 46

Slide 46 text

My "starter kit" 40

Slide 47

Slide 47 text

41

Slide 48

Slide 48 text

42

Slide 49

Slide 49 text

43

Slide 50

Slide 50 text

44

Slide 51

Slide 51 text

45

Slide 52

Slide 52 text

LISTEN TO USERS BETWEEN ONE AND TWO 1

Slide 53

Slide 53 text

“Official abstractions for service classes and conventions on when to use them vs using background jobs or models.” 47

Slide 54

Slide 54 text

“Being opinionated it still lacks a clear prescription on where to put business logic code and architectural guidelines on how to interact with other external systems appart from the database” 48

Slide 55

Slide 55 text

“Out-of-the-box solutions for service objects, form objects, and policy objects would be generally useful” 49

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

Layered Rails 2ED is out this December RUBY30 for 30% off (valid till Nov, 23rd)

Slide 58

Slide 58 text

“Clearer paths for transitioning architecture for Big Rails.” 52

Slide 59

Slide 59 text

53 github.com/rubyatscale

Slide 60

Slide 60 text

53 github.com/rubyatscale Clearer paths, please

Slide 61

Slide 61 text

55 github.com/rubyatscale No setup, low config!

Slide 62

Slide 62 text

56 github.com/palkan/engems $!#(

Slide 63

Slide 63 text

“Workflow orchestration” 57

Slide 64

Slide 64 text

Active Job Continuation class CloudGenerationJob < ApplicationJob include ActiveJob::Continuable def perform(cloud) @cloud = cloud step :moderate, isolated: true step :generate, isolated: true unless cloud.failed? end end 58 https://github.com/evilmartians/sfruby-clouds

Slide 65

Slide 65 text

Active Job Continuation New in Rails 8.1 No durability (Temporal?) No parallel steps Good foundation => build on top! 59

Slide 66

Slide 66 text

“First-class native async support” 60

Slide 67

Slide 67 text

# Supported since 8.0 (almost) config.active_support.isolation_level = :fiber 61

Slide 68

Slide 68 text

62 Puma Action Cable Server Rails Executor Connection Channel Web Socket Channel Channel Thread Pool rack.hijack #connect #subscribed #receive #disconnect #unsubscribed I/O loop Client Socket #send

Slide 69

Slide 69 text

63 github.com/anycable/actioncable-next

Slide 70

Slide 70 text

64 Puma Action Cable Server Rails Executor Connection Channel Web Socket Channel Channel Thread Pool rack.hijack #connect #subscribed #receive #disconnect #unsubscribed I/O loop Client Socket #send

Slide 71

Slide 71 text

65 Puma Action Cable Server I/O loop Rails Executor Connection Channel Web Socket Channel Channel Worker Pool rack.hijack #connect #subscribed #receive #disconnect #unsubscribed Falcon Async Cable AnyCable RPC AnyCable

Slide 72

Slide 72 text

66 github.com/anycable/actioncable-next github.com/socketry/async-cable

Slide 73

Slide 73 text

67

Slide 74

Slide 74 text

67 That’s all you need for scale!

Slide 75

Slide 75 text

67 That’s all you need for scale! ...and AnyCable!

Slide 76

Slide 76 text

68 That’s all you need for AI scale! ...and AnyCable!

Slide 77

Slide 77 text

PREDICT YESTERDAY'S TOMORROW IS TODAY 1

Slide 78

Slide 78 text

Predictions 70

Slide 79

Slide 79 text

Predictions DX is more important than ever 70

Slide 80

Slide 80 text

Predictions DX is more important than ever 70 For developers sake, for community's sake, for better world, I want you to enjoy programming

Slide 81

Slide 81 text

Predictions DX is more important than ever AI-readiness is the must 71

Slide 82

Slide 82 text

Predictions DX is more important than ever AI-readiness is the must 71 This is Ruby's time to shine in AI!

Slide 83

Slide 83 text

Predictions DX is more important than ever AI-readiness is the must Hotwire hits its limits 72

Slide 84

Slide 84 text

Predictions DX is more important than ever AI-readiness is the must Hotwire hits its limits 72 => more frontend options

Slide 85

Slide 85 text

“Inertia js support should be done first class” 73

Slide 86

Slide 86 text

“Rails will solve the view layer better than React ever could” 74

Slide 87

Slide 87 text

Frontend options ReActionView LiveComponent Inertia Rails (and Inertia Native) 75

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

In 2025, the frontend landscape for Rails isn’t about choosing a single solution—it’s about having the right tool for each job

Slide 90

Slide 90 text

Future DX 77

Slide 91

Slide 91 text

Future DX Better LSPs and such (Herb ! ") 77

Slide 92

Slide 92 text

“I want Rails to point out what's missing, which design patterns, gems, capabilities of the framework we're not using the way we should. Act as true and careful GuardRails for our application.” 78

Slide 93

Slide 93 text

GuardRails Strict loading Prosopite Strong migrations Isolator, TestProf 79

Slide 94

Slide 94 text

Future DX Better LSPs and such (Herb ! ") GuardRails (linters, runtime guards, doctors) Types (?) 80

Slide 95

Slide 95 text

81

Slide 96

Slide 96 text

–Stan Lo, RubyWorld 2025 “Not for typecheker, for tools.” 82

Slide 97

Slide 97 text

Future with AI 83

Slide 98

Slide 98 text

Future with AI AI-enhanced templates / starter kits / AGENT.md 83

Slide 99

Slide 99 text

Future with AI AI-enhanced templates / starter kits / AGENT.md First-class AI concepts (RubyLLM, Active Agent) 83

Slide 100

Slide 100 text

Future with AI AI-enhanced templates / starter kits / AGENT.md First-class AI concepts (RubyLLM, Active Agent) Code & runtime intelligence 83

Slide 101

Slide 101 text

Intelligence MCP and such (Tidewave) More introspection (callback_hell, chatwerk, detailed view annotations) 84

Slide 102

Slide 102 text

Future with AI AI-enhanced templates / starter kits First-class AI concepts Code & runtime intelligence Vibe coders onboarding 85

Slide 103

Slide 103 text

Future with AI AI-enhanced templates / starter kits First-class AI concepts Code & runtime intelligence Vibe-boarding 86

Slide 104

Slide 104 text

87 github.com/palkan/rails-tutorial-template

Slide 105

Slide 105 text

No content

Slide 106

Slide 106 text

No content

Slide 107

Slide 107 text

No content

Slide 108

Slide 108 text

No content

Slide 109

Slide 109 text

Vibe-boarding From zero to one without leaving the browser Claude Code, Tidewave => only for coders Next step => lightweight deployments 92

Slide 110

Slide 110 text

ARE WE RAILS X YET? DREAM UNTIL THE DREAMS COME TRUE 1

Slide 111

Slide 111 text

Rails X Beginner-friendly Developer-friendly AI-native Ready to scale 94 Docs, starter kits, UI kits, vibe-boarding LSPs, guardrails, linters AI concepts, augmentation Maintainable architecture, performance-oriented extensions

Slide 112

Slide 112 text

95 Who's in charge? Core team? Rails X may happen.. or may not

Slide 113

Slide 113 text

Rails X != rails/rails 96

Slide 114

Slide 114 text

Rails X Safe & sound Beginner-friendly Developer-friendly AI-native Ready to scale 97 Docs, starter kits, UI kits, vibe-boarding LSPs, guardrails, linters AI concepts, augmentation Maintainable architecture, performance-oriented extensions Stable, robust, and secure foundation # rails/rails

Slide 115

Slide 115 text

98

Slide 116

Slide 116 text

Future 101 Do this Try this Keep that in mind 99

Slide 117

Slide 117 text

Rails X 101 Keep building software systems, keep sharing Adopt new ideas within the community and get inspired by the world outside of Rails Remember that Rails is not a single, perfect idea (rails/rails), it's a messy quilt 100

Slide 118

Slide 118 text

Rails X 101 Keep building software systems, keep sharing Adopt new ideas within the community and get inspired by the world outside of Rails Remember that Rails is not a single, perfect idea (rails/rails), it's a messy quilt 100 THANK YOU!