Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SOLID - Dependency inversion principle
Search
Amanda
October 09, 2018
Technology
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SOLID - Dependency inversion principle
Amanda
October 09, 2018
Transcript
17 slides
SOLID Dependency Inversion Principle
O que é? Onde vive?
Falando um pouco de SOLID...
Imagine um cenário
Temos um software novo para escrever
No começo é aquela alegria
None
As mudanças são simples, a velocidade é boa
None
None
Fragilidade "Tendência do software de quebrar em vários lugares sempre
que é alterado. Geralmente em lugares não relacionados conceitualmente com o local da mudança."
Rigidez "Tendência do software de ser difícil de mudar. Qualquer
mudança gera várias mudanças em sequência." https://fi.ort.edu.uy/innovaportal/file/2032/1/design_principles.pdf
"Abstrações não devem depender de detalhes. Detalhes devem depender de
abstrações."
None
class Copier def self.copy reader = KeyboardReader.new writer = Printer.new
keystrokes = reader.read_until_eof writer.write(keystrokes) end end
class Copier def initialize(reader, writer) @reader = reader @writer =
writer end def copy @writer.write(@reader.read_until_eof) end end
None
More Decks by Amanda
See All by Amanda
Lessons Learned From an Elixir OTP Project
amandasposito
2
110
Aprendizados de um projeto Elixir OTP
amandasposito
4
660
Como concorrência funciona em Elixir?
amandasposito
1
250
Programação Funcional & Elixir
amandasposito
3
150
Ecto, você sabe o que é ?
amandasposito
4
260
Novidades no Rails 5
amandasposito
0
110
Rails Engines & RSpec
amandasposito
0
260
Elixir e Phoenix
amandasposito
3
600
Elixir em 5 minutos
amandasposito
1
110
Other Decks in Technology
See All in Technology
個人ASを取得して、自宅Kubernetes上のVMをグローバルIPで公開した話
munenick
0
140
これからのデータエンジニアの役割について考える / Rethinking the Role of Data Engineers in the AI Era
okiyuki99
0
530
ぼくのClaude Codeの使い方
falken
PRO
5
7.4k
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
120
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
17
120k
市販IoT機器や自作IoT機器とHomeAssistantを駆使して家の電気代をできる限り見える化する方法の考案
harutiro
0
330
Sonnetだけで業務はまわる?
kintotechdev
1
140
MCPでネットワーク障害調査を自動化する前に直すべき3つのこと
yama3133
0
490
2026-11-11 Tamachi.sre#7 PaCにインフラリソースの命を救われました。 / PaC saves the infra resource life
masasuzu
1
200
少ない人手 限られた予算 それでも守る 消せない・見つける・戻れる オールハザード型BCP on AWS / 20261107 Mitsutoshi Matsuo
shift_evolve
PRO
0
400
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
1
160
Agent Harnessはどう作る?事例から学ぶAI Agentの設計思想
sergicalsix
0
330
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
540
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
580
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.3k
Design in an AI World
tapps
1
390
Visualization
eitanlees
153
17k
Faster Mobile Websites
deanohume
310
32k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
400
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
Ruling the World: When Life Gets Gamed
codingconduct
0
440