Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Refactoring_with_LightService.pdf
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Nestor G Pestelos Jr
July 18, 2013
Programming
0
95
Refactoring_with_LightService.pdf
Nestor G Pestelos Jr
July 18, 2013
Tweet
Share
More Decks by Nestor G Pestelos Jr
See All by Nestor G Pestelos Jr
How_to_Bring_Up_GitLab.pdf
ngpestelos
0
160
Development Using Virtualization
ngpestelos
0
60
Other Decks in Programming
See All in Programming
CSC307 Lecture 08
javiergs
PRO
0
670
Basic Architectures
denyspoltorak
0
680
AI によるインシデント初動調査の自動化を行う AI インシデントコマンダーを作った話
azukiazusa1
1
740
ぼくの開発環境2026
yuzneri
0
230
AtCoder Conference 2025
shindannin
0
1.1k
CSC307 Lecture 03
javiergs
PRO
1
490
例外処理とどう使い分ける?Result型を使ったエラー設計 #burikaigi
kajitack
16
6.1k
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
110
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
Fragmented Architectures
denyspoltorak
0
160
Smart Handoff/Pickup ガイド - Claude Code セッション管理
yukiigarashi
0
140
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
300
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
0
230
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.3k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
730
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
140
Discover your Explorer Soul
emna__ayadi
2
1.1k
Claude Code のすすめ
schroneko
67
210k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
78
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
Chasing Engaging Ingredients in Design
codingconduct
0
110
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
270
Music & Morning Musume
bryan
47
7.1k
Transcript
Refactoring with LightService Nestor Pestelos, Jr. @ngpestelos
None
• Old way: object graphs, fields, nouns • New way:
pipelines, context, verbs • LS provides Actions and Organizers • Tests tl;dr
Problem (Data Synchronization) 1. create web service clients 2. pull
data from an API (A) 3. pull data from another API (B) 4. compare A and B then create/update/delete 5. do it again
Object Graph
LightService Actions and Organizer Organizer Action Action Action Action
Testing • rspec • Organizers (actions called in sequence) •
Actions (requirements not met/met)
Salamat! https://pinboard.in/u:ngpestelos/t:phrug_201307