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
Nestor G Pestelos Jr
July 18, 2013
Programming
0
79
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
150
Development Using Virtualization
ngpestelos
0
51
Other Decks in Programming
See All in Programming
try! Swift Tokyo 2024 参加報告 / try! Swift Tokyo 2024 Report
hironytic
0
210
使ってみよう Azure AI Document Intelligence
kosmosebi
2
350
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
670
Ruby GitHub Packages
bkuhlmann
0
630
Introducing Kotlin Multiplatform in an existing mobile app - Workshop Edition | AndroidMakers Paris
prof18
0
140
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
850
Node.js v22 で変わること
yosuke_furukawa
PRO
11
3.8k
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
4
890
AWS CDKコントリビュートTIPS / aws-cdk-contribution-tips
gotok365
3
310
AmperとFleetを使ったAndroidアプリ
yoppie
0
240
スクラムガイドのスプリントレトロスペクティブを改めて読みかえしてみた / Re-reading the Sprint Retrospective Section in the Scrum Guide
mackey0225
3
470
Tailwind CSSを本気でカスタマイズする方法
fsubal
14
5.4k
Featured
See All Featured
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Side Projects
sachag
451
41k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
117
18k
Music & Morning Musume
bryan
41
5.6k
A Tale of Four Properties
chriscoyier
152
22k
Building Your Own Lightsaber
phodgson
100
5.7k
Infographics Made Easy
chrislema
238
18k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
Writing Fast Ruby
sferik
622
60k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
33
6k
Designing the Hi-DPI Web
ddemaree
276
33k
The MySQL Ecosystem @ GitHub 2015
samlambert
244
12k
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