Slide 1

Slide 1 text

Vladimir Dementyev Evil Martians

Slide 2

Slide 2 text

SPACE CONQUEST 7 0 -> 1 -> 2 1897 Rocket equation 1957 Sputnik launch 1961 1st man in space

Slide 3

Slide 3 text

IS YOUR PROJECT READY TO PUT HUMANS IN? 8

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

10 evilmartians.com 2017-... 2016-... 2015-... 2015-... Vamos nessa!

Slide 6

Slide 6 text

ONE PERSON FRAMEWORK 11 INTEGRATION BEATS COLLECTION

Slide 7

Slide 7 text

12

Slide 8

Slide 8 text

PRODUCT-MARKET FIT 13

Slide 9

Slide 9 text

PRODUCT-MARKET FIT 14

Slide 10

Slide 10 text

SOFTWARE- PRODUCT FIT 15

Slide 11

Slide 11 text

SOFTWARE-PRODUCT FIT 16

Slide 12

Slide 12 text

SPF Axiom YOUR PRODUCT CAN'T OUTGROW YOUR CODEBASE 17

Slide 13

Slide 13 text

Support for complex domain architectures and bigger teams GROWING PAINS 18 Clear prescription on where to put business logic; solutions for services, forms, policies... Observability default: JSON logs, tracing, metrics... What Rails developers at 1-2 want First-class native async support

Slide 14

Slide 14 text

GROWING PAINS 19 What Rails developers at 1-2 need Maintainability Scalability

Slide 15

Slide 15 text

MAINTAINABILITY BY EXAMPLE 20

Slide 16

Slide 16 text

Rails Inertia Svyat IT STARTS WITH ONE 21 thicket.com, a few days into the soft launch

Slide 17

Slide 17 text

Rails Inertia Svyat IT STARTS WITH ONE 21 thicket.com, a few days into the soft launch

Slide 18

Slide 18 text

22

Slide 19

Slide 19 text

TECH DEBT COMPOUNDS 23

Slide 20

Slide 20 text

TECH DEBT COMPOUNDS 23

Slide 21

Slide 21 text

TECH DEBT COMPOUNDS 24

Slide 22

Slide 22 text

FIGHTING TECH DEBT 25 A not illustrated guide

Slide 23

Slide 23 text

26

Slide 24

Slide 24 text

27 class Dashboard::CoursesController < InertiaController def index courses_scope = Current.user.enrolled_courses filtered_scope = CoursesFilter.filter(courses_scope, params) @pagy, @courses = pagy(filtered_scope) end end app/controllers/dashboard/courses_controller.rb EXAMPLE INTERFACE

Slide 25

Slide 25 text

28 class Dashboard::CoursesController < InertiaController def index @courses, @current_filter = filtery( Current.user.courses.not_removed ) @pagy, @courses = pagy(@courses) end end app/controllers/dashboard/courses_controller.rb ACTUAL INTERFACE

Slide 26

Slide 26 text

gem "rubanok" #sortable_by filter_spec.rb Types-ready class Dashboard::CoursesFilter < ApplicationFilter process :filters do map :states do |states:| raw.where(state: states) end end sortable_by :title, :completed_lessons_count, default: "title" do having "enrolled_at" do |sort_direction: "asc"| raw.order(enrollments: {purchased_at: sort_direction}) .order(id: :asc) end having "is_course_completed" do |sort_direction: "asc"| col = Course.arel_table[:finished_at] ordering = sort_direction == "desc" ? col.desc.nulls_last : col.asc.nulls_first raw.order(ordering).order(id: :asc) end end end app/controllers/dashboard/courses_filter.rb FILTER OBJECT 29 The Thicket Way

Slide 27

Slide 27 text

gem "rubanok" #sortable_by filter_spec.rb Types-ready describe Dashboard::CoursesFilter do context "sorting" do it "applies default sorting (title asc)" it "sorts by completed_lessons_count" it "sorts by enrolled_at via purchased_at" it "sorts by is_course_completed with NULLs" it "falls back to default for unknown fields" end context "filtering" do it "filters by state" it "ignores empty state arrays" end end spec/controllers/dashboard/courses_filter_spec.rb FILTER OBJECT 30 The Thicket Way

Slide 28

Slide 28 text

gem "rubanok" #sortable_by filter_spec.rb Types-ready describe Dashboard::CoursesFilter do context "sorting" do it "applies default sorting (title asc)" it "sorts by completed_lessons_count" it "sorts by enrolled_at via purchased_at" it "sorts by is_course_completed with NULLs" it "falls back to default for unknown fields" end context "filtering" do it "filters by state" it "ignores empty state arrays" end end spec/controllers/dashboard/courses_filter_spec.rb FILTER OBJECT 31 The Thicket Way describe "/dashboard/courses" do it "sorts by completed_lessons_count via CoursesFilter" d expect do get dashboard_courses_path( sort_field: "completed_lessons_count", sort_direction: "asc" ) end.to have_filtered(student.enrolled_courses) .with(Dashboard::CoursesFilter) expect(response).to have_http_status(:ok) expect(inertia.props).to include("sort_field" => "completed_lessons_count", "sort_direction" => "asc") end end spec/requests/dashboard/courses_spec.rb

Slide 29

Slide 29 text

TYPED FILTER 32

Slide 30

Slide 30 text

MISSION COMPLETE Extracted an abstraction layer Introduced a convention Improved stability and DX 33 One small step toward maintainability

Slide 31

Slide 31 text

MORE SMALL STEPS 34 You've learned at Tropical on Rails 2026 Migrate from STI before it's too late Reordering using int columns can only get you so far Write stronger migrations to stop being scared

Slide 32

Slide 32 text

ARCHITECTURE DETERMINES HOW FAST YOU CAN GO 35

Slide 33

Slide 33 text

36 CARA, 20 MINUTES AND NO AI. NÃO AGUENTO MAIS!

Slide 34

Slide 34 text

37

Slide 35

Slide 35 text

AI IS AN AMPLIFIER 38 A IA ecoa a qualidade do seu código Garbage in, garbage out

Slide 36

Slide 36 text

Context compression ARCHITECTURE × AI 39 But does it even matter with 1M context windows?

Slide 37

Slide 37 text

40

Slide 38

Slide 38 text

41

Slide 39

Slide 39 text

Context compression Implicit harness ARCHITECTURE × AI 42 Extra layers, non-vanilla Rails. Do agents benefit?

Slide 40

Slide 40 text

EXPERIMENTS 43

Slide 41

Slide 41 text

EXPERIMENTS 43 DeepSeek sucks!

Slide 42

Slide 42 text

Re-implement filtering Same prompt/process Unlayered vs. Layered EXPERIMENT 44 thicket.com × AI rails-app — zsh ▐▛███▜▌ Código Claude v10.04.2026 ▝▜█████▛▘ Vovas 3.7 (1M context) · Claude M ▘▘ ▝▝ > Add filtering and sorting to the student' Requirements: 1. Add a category filter. Param: filters[ca When present, only courses in that categ When absent or blank, all enrolled cours 2. Add sorting. The existing default sort i sort fields: - "completed_lessons_count" — sorts by t count (the completed_lessons_count col

Slide 43

Slide 43 text

EXPERIMENT 45 UNLAYERED LAYERED Bugs 0 0 Mistakes 3 0 Contoller LOC 33 2 Net LOC 215 128

Slide 44

Slide 44 text

TECH DEBT, GENERATED 46

Slide 45

Slide 45 text

TECH DEBT, GENERATED 47

Slide 46

Slide 46 text

48 DIMENSION UNLAYERED LAYERED Discoverability 3–4 hops 2 hops Isolation Shared controller namespace, instance vars Standalone object, returns data Predictability Inconsistent inline patterns, invented a new variant Uniform DSL, matches all existing filters Blast radius 2 files / 33 controller LOC 4 files / 2 controller LOC

Slide 47

Slide 47 text

The layer didn't make the agent smarter It made the agent's mistakes smaller and its correct code cheaper 49

Slide 48

Slide 48 text

IMPLICIT HARNESS IS NOT ENOUGH 50

Slide 49

Slide 49 text

ARCHITECTURE × AI 51 Pattern-oriented architecture Architectural patterns Design patterns Idioms

Slide 50

Slide 50 text

AI orchestration patterns Architectural patterns Design patterns Idioms ARCHITECTURE × AI 52 Pattern-oriented architecture 2026

Slide 51

Slide 51 text

!!! "!! ""! """ AI orchestration patterns Architectural patterns Design patterns Idioms ARCHITECTURE × AI 53 Pattern-oriented architecture 2026

Slide 52

Slide 52 text

GUIDE THE AMPLIFIER Processes # compound-engineering Skills # palkan/skills, superpowers-ruby Context enrichment # Tidewave, ruby-lsp Trusted references 54 Quality code and context in, quality code out

Slide 53

Slide 53 text

55

Slide 54

Slide 54 text

SPF CHECKLIST Architecture that doesn't slow you down AI-rchitecture that keeps quality high 56 What makes up point 2?

Slide 55

Slide 55 text

Platform that scales and stay resilient Processes that let the team deliver SPF CHECKLIST 57 What makes up point 2? Consistent dev environment!

Slide 56

Slide 56 text

SPF CHECKLIST Architecture AI-rchitecture Platform Processes 58 What makes up point 2?

Slide 57

Slide 57 text

SPACE CONQUEST 59 1897 Rocket equation 1957 Sputnik launch 1961 1st man in space

Slide 58

Slide 58 text

SPACE CONQUEST 60 1897 Rocket equation 1957 Sputnik launch 1961 1st man in space 1969 Moon landing 1971 1st space station 2026 Just checking in 2126 Welcome!

Slide 59

Slide 59 text

SPF Axiom YOUR PRODUCT CAN'T OUTGROW YOUR CODEBASE 61

Slide 60

Slide 60 text

SPF Axiom YOUR PRODUCT CAN'T OUTGROW YOUR CODEBASE CUIDADO COM O VÃO! 61

Slide 61

Slide 61 text

PREVENT THE GAP Analyze # /layered-rails:analyze Reflect # fixed bugs and stale PRs Monitor # know your hot and weak paths Follow Evil Martians 62 Measuring the software-product fit

Slide 62

Slide 62 text

OBRIGADO! x.com/palkan_tula x.com/evil_martians