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
ログラスを支える設計標準について / loglass-design-standards
urmot
10
2.1k
甘い香りに誘われてVanilla Extractを1年間運用してみた
miyahkun
1
110
CircleCIを活用して AWSへの継続的デリバリーを 実践する
coconala_engineer
1
230
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
25
7.7k
ゆるい個人開発のススメ
kuroppe1819
10
930
Semantic search with Django and pgvector
pauloxnet
0
230
1인 개발자로 행복하게 살기 - GDG 송도 헬로월드 2024
benjaminkim
1
5.6k
App Router への移行は「改善」となり得るのか?/ Can migration to App Router be an improvement
takefumiyoshii
8
2.1k
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
350
SwiftUI Performance 不要なViewの再描画と更新を抑える
bigamitiongit
1
150
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
250
0→1と1→10の狭間で Javaという技術選定を振り返る/Reflecting on the Decision to Choose Java Between Scaling from 0 to 1 and 1 to 10
jaguar_imo
2
360
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
42
6.7k
Six Lessons from altMBA
skipperchong
19
3k
How to Ace a Technical Interview
jacobian
272
22k
Side Projects
sachag
451
41k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
Infographics Made Easy
chrislema
237
18k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
YesSQL, Process and Tooling at Scale
rocio
162
13k
Fantastic passwords and where to find them - at NoRuKo
philnash
36
2.5k
How to train your dragon (web standard)
notwaldorf
71
5.1k
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
What’s in a name? Adding method to the madness
productmarketing
PRO
15
2.6k
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