SlideShare ist ein Scribd-Unternehmen logo
1 von 26
riviera.rb 
This Talk Has No Title 
Yet 
Jean-Baptiste Mazon 
@jbmazon
May contain trace amounts of 
● ruby (twitter request) 
● beer 
● Java 8 
● one or two other 
obscure languages 
● no livecoding
GoF 
● abstract factory 
● builder 
● factory method 
● prototype 
● singleton 
● adapter 
● bridge 
● composite 
● decorator 
● facade 
● flyweight 
● proxy 
● chain of responsibility 
● command 
● interpreter 
● iterator 
● mediator 
● memento 
● observer 
● state 
● strategy 
● template method 
● visitor
Multiton
Multiton
RAII
RAII 
● Resource Acquisition Is Initialization 
● C++ 
● Perl, Python, PHP 
● CADR
Speaking of Lisp
Norvig 
● abstract factory 
● builder 
● factory method 
● prototype 
● singleton 
● adapter 
● bridge 
● composite 
● decorator 
● facade 
● flyweight 
● proxy 
● chain of responsibility 
● command 
● interpreter 
● iterator 
● mediator 
● memento 
● observer 
● state 
● strategy 
● template method 
● visitor
Wired 
● master/slave 
● CSMA/CD 
● token ring 
● sneakernet
Locking 
● acquire 
● release 
● read-write lock 
● deadlock 
● spinlock
Antipatterns 
● race hazard 
● input kludge 
● busy waiting 
● magic numbers 
● magic strings 
● action at a distance 
● error hiding 
● magic pushbutton 
● hard code 
● soft code 
● database-as-IPC 
● programming by 
permutation 
● copy and paste 
programming 
● cargo cult programming
Cargo Cult
Error Hiding 
begin 
ImportFile(filename) 
rescue 
raise SomeException, 'import 
failed' 
end
Modeling 
● anemic domain model 
● BaseBean 
● circle-ellipse 
● god class, god object
Design
Design 
● spaghetti code 
● ravioli code 
● lasagna code 
● big ball of mud 
● inner-platform effect 
● tester driven development
Maintenance 
● circular dependency 
● dependency hell 
● DLL hell 
● JAR hell 
● boat anchor
A few others 
● gold plating 
● golden hammer 
● silver bullet 
● not invented here 
● invented here 
● premature optimization 
● repeating yourself 
● reinventing the 
square wheel 
● abstraction inversion 
● pattern abuse and overuse
Consider this simple code 
[-]+++++++++++++++ 
+++++++++++++++++++ 
+++++++++++++++++++ 
+++++++++++++++++++ 
.---.+++++++..+++.
Simplifying 
def h 
puts 
'HELLO' 
end 
h 
h 
h 
h
A last one
Thank you!

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (14)

Go at Skroutz
Go at SkroutzGo at Skroutz
Go at Skroutz
 
It is easy contributing to open source - JCON 2020
It is easy contributing to open source - JCON 2020It is easy contributing to open source - JCON 2020
It is easy contributing to open source - JCON 2020
 
Laravel Nova: czy to się w ogóle opłaca?
Laravel Nova: czy to się w ogóle opłaca?Laravel Nova: czy to się w ogóle opłaca?
Laravel Nova: czy to się w ogóle opłaca?
 
Es fácil contribuir al open source - Bolivia JUG 2020
Es fácil contribuir al open source - Bolivia JUG 2020Es fácil contribuir al open source - Bolivia JUG 2020
Es fácil contribuir al open source - Bolivia JUG 2020
 
Its easy! contributing to open source - Devnexus 2020
Its easy! contributing to open source - Devnexus 2020Its easy! contributing to open source - Devnexus 2020
Its easy! contributing to open source - Devnexus 2020
 
Building the AO Tech Blog
Building the AO Tech BlogBuilding the AO Tech Blog
Building the AO Tech Blog
 
From Config Management Sucks to #cfgmgmtlove
From Config Management Sucks to #cfgmgmtlove From Config Management Sucks to #cfgmgmtlove
From Config Management Sucks to #cfgmgmtlove
 
From NodeJS to Rust
From NodeJS to RustFrom NodeJS to Rust
From NodeJS to Rust
 
Monitoring with ElasticSearch
Monitoring with ElasticSearch Monitoring with ElasticSearch
Monitoring with ElasticSearch
 
Overcome a Frontier
Overcome a FrontierOvercome a Frontier
Overcome a Frontier
 
Exploring Ruby on Rails and PostgreSQL
Exploring Ruby on Rails and PostgreSQLExploring Ruby on Rails and PostgreSQL
Exploring Ruby on Rails and PostgreSQL
 
Building the AO tech blog
Building the AO tech blogBuilding the AO tech blog
Building the AO tech blog
 
Pavimentando el camino con Jakarta EE 9 y Apache TomEE
Pavimentando el camino con Jakarta EE 9 y Apache TomEE Pavimentando el camino con Jakarta EE 9 y Apache TomEE
Pavimentando el camino con Jakarta EE 9 y Apache TomEE
 
Paving the road with Jakarta EE and Apache TomEE - JCON 2021
Paving the road with Jakarta EE  and Apache TomEE - JCON 2021Paving the road with Jakarta EE  and Apache TomEE - JCON 2021
Paving the road with Jakarta EE and Apache TomEE - JCON 2021
 

Ähnlich wie Untitled talk at Riviera.rb

Deployments with rails
Deployments with railsDeployments with rails
Deployments with rails
Gourav Tiwari
 
Random tips that will save your project's life
Random tips that will save your project's lifeRandom tips that will save your project's life
Random tips that will save your project's life
Mariano Iglesias
 
NODE JS OC Meetup 1
NODE JS OC Meetup 1NODE JS OC Meetup 1
NODE JS OC Meetup 1
eddify
 
Creating a mature puppet system
Creating a mature puppet systemCreating a mature puppet system
Creating a mature puppet system
rkhatibi
 

Ähnlich wie Untitled talk at Riviera.rb (20)

Dev + DevOps для PHP розробника
Dev + DevOps для PHP розробникаDev + DevOps для PHP розробника
Dev + DevOps для PHP розробника
 
Unsafe Java
Unsafe JavaUnsafe Java
Unsafe Java
 
Managing and Visualizing your Replication Topologies with Orchestrator
Managing and Visualizing your Replication Topologies with OrchestratorManaging and Visualizing your Replication Topologies with Orchestrator
Managing and Visualizing your Replication Topologies with Orchestrator
 
Writing mruby Debugger
Writing mruby DebuggerWriting mruby Debugger
Writing mruby Debugger
 
Deployments with rails
Deployments with railsDeployments with rails
Deployments with rails
 
Docker. Does it matter for Java developer ?
Docker. Does it matter for Java developer ?Docker. Does it matter for Java developer ?
Docker. Does it matter for Java developer ?
 
Python Static Site Generator in Pelican
Python Static Site Generator in  PelicanPython Static Site Generator in  Pelican
Python Static Site Generator in Pelican
 
Random tips that will save your project's life
Random tips that will save your project's lifeRandom tips that will save your project's life
Random tips that will save your project's life
 
Pseudo GTID and Easy MySQL Replication Topology Management
Pseudo GTID and Easy MySQL Replication Topology ManagementPseudo GTID and Easy MySQL Replication Topology Management
Pseudo GTID and Easy MySQL Replication Topology Management
 
Web Assembly
Web AssemblyWeb Assembly
Web Assembly
 
Kotlin REST & GraphQL API
Kotlin REST & GraphQL APIKotlin REST & GraphQL API
Kotlin REST & GraphQL API
 
Using FXML on Clojure
Using FXML on ClojureUsing FXML on Clojure
Using FXML on Clojure
 
A quick introduction to go
A quick introduction to  goA quick introduction to  go
A quick introduction to go
 
NODE JS OC Meetup 1
NODE JS OC Meetup 1NODE JS OC Meetup 1
NODE JS OC Meetup 1
 
Creating a Mature Puppet System
Creating a Mature Puppet SystemCreating a Mature Puppet System
Creating a Mature Puppet System
 
Creating a mature puppet system
Creating a mature puppet systemCreating a mature puppet system
Creating a mature puppet system
 
AOT-compilation of JavaScript with V8
AOT-compilation of JavaScript with V8AOT-compilation of JavaScript with V8
AOT-compilation of JavaScript with V8
 
It's a Breeze to develop Apache Airflow (Apache Con Berlin)
It's a Breeze to develop Apache Airflow (Apache Con Berlin)It's a Breeze to develop Apache Airflow (Apache Con Berlin)
It's a Breeze to develop Apache Airflow (Apache Con Berlin)
 
Go, meet Lua
Go, meet LuaGo, meet Lua
Go, meet Lua
 
Android app to the challenge
Android   app to the challengeAndroid   app to the challenge
Android app to the challenge
 

Kürzlich hochgeladen

Abortion pills in Saudi RIYADH (+919707899604 } Get Cytotec
Abortion pills in Saudi RIYADH (+919707899604 } Get CytotecAbortion pills in Saudi RIYADH (+919707899604 } Get Cytotec
Abortion pills in Saudi RIYADH (+919707899604 } Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Deira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in DeiraDeira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in Deira
Monica Sydney
 
Haridwar Call Girls, 8699214473 Hot Girls Service Haridwar
Haridwar Call Girls, 8699214473 Hot Girls Service HaridwarHaridwar Call Girls, 8699214473 Hot Girls Service Haridwar
Haridwar Call Girls, 8699214473 Hot Girls Service Haridwar
ranekokila
 
Pakistani Call girls in Deira 0567006274 Deira Call girls
Pakistani Call girls in Deira 0567006274 Deira Call girlsPakistani Call girls in Deira 0567006274 Deira Call girls
Pakistani Call girls in Deira 0567006274 Deira Call girls
Monica Sydney
 
Dubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in DubaiDubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in Dubai
Monica Sydney
 
Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...
Nitya salvi
 

Kürzlich hochgeladen (20)

Mandvi (Ahemdabad) Escorts 6367492432 with Real Phone number and Model
Mandvi (Ahemdabad) Escorts 6367492432 with Real Phone number and ModelMandvi (Ahemdabad) Escorts 6367492432 with Real Phone number and Model
Mandvi (Ahemdabad) Escorts 6367492432 with Real Phone number and Model
 
Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
 
Deira Call girl 0506129535 Independent Call girl in Deira
Deira Call girl 0506129535  Independent Call girl in DeiraDeira Call girl 0506129535  Independent Call girl in Deira
Deira Call girl 0506129535 Independent Call girl in Deira
 
Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
 
Call Girls in Nizampet / 8250092165 Genuine Call girls with real Photos and N...
Call Girls in Nizampet / 8250092165 Genuine Call girls with real Photos and N...Call Girls in Nizampet / 8250092165 Genuine Call girls with real Photos and N...
Call Girls in Nizampet / 8250092165 Genuine Call girls with real Photos and N...
 
Abortion pills in Saudi RIYADH (+919707899604 } Get Cytotec
Abortion pills in Saudi RIYADH (+919707899604 } Get CytotecAbortion pills in Saudi RIYADH (+919707899604 } Get Cytotec
Abortion pills in Saudi RIYADH (+919707899604 } Get Cytotec
 
Hire 💕 8617370543 Kushinagar Call Girls Service Call Girls Agency
Hire 💕 8617370543 Kushinagar Call Girls Service Call Girls AgencyHire 💕 8617370543 Kushinagar Call Girls Service Call Girls Agency
Hire 💕 8617370543 Kushinagar Call Girls Service Call Girls Agency
 
Hire 💕 8617370543 Auraiya Call Girls Service Call Girls Agency
Hire 💕 8617370543 Auraiya Call Girls Service Call Girls AgencyHire 💕 8617370543 Auraiya Call Girls Service Call Girls Agency
Hire 💕 8617370543 Auraiya Call Girls Service Call Girls Agency
 
Deira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in DeiraDeira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in Deira
 
Haridwar Call Girls, 8699214473 Hot Girls Service Haridwar
Haridwar Call Girls, 8699214473 Hot Girls Service HaridwarHaridwar Call Girls, 8699214473 Hot Girls Service Haridwar
Haridwar Call Girls, 8699214473 Hot Girls Service Haridwar
 
Call Girls in Ernakulam - 9332606886 Our call girls are sure to provide you w...
Call Girls in Ernakulam - 9332606886 Our call girls are sure to provide you w...Call Girls in Ernakulam - 9332606886 Our call girls are sure to provide you w...
Call Girls in Ernakulam - 9332606886 Our call girls are sure to provide you w...
 
Pakistani Call girls in Deira 0567006274 Deira Call girls
Pakistani Call girls in Deira 0567006274 Deira Call girlsPakistani Call girls in Deira 0567006274 Deira Call girls
Pakistani Call girls in Deira 0567006274 Deira Call girls
 
Call Girls in Kollam - 9332606886 Our call girls are sure to provide you with...
Call Girls in Kollam - 9332606886 Our call girls are sure to provide you with...Call Girls in Kollam - 9332606886 Our call girls are sure to provide you with...
Call Girls in Kollam - 9332606886 Our call girls are sure to provide you with...
 
Call Girls in Perumbavoor / 9332606886 Genuine Call girls with real Photos an...
Call Girls in Perumbavoor / 9332606886 Genuine Call girls with real Photos an...Call Girls in Perumbavoor / 9332606886 Genuine Call girls with real Photos an...
Call Girls in Perumbavoor / 9332606886 Genuine Call girls with real Photos an...
 
Call Girls Bijapur - 9332606886 Rs 3000 Free Pickup & Drop Services 24x448
Call Girls Bijapur - 9332606886 Rs 3000 Free Pickup & Drop Services 24x448Call Girls Bijapur - 9332606886 Rs 3000 Free Pickup & Drop Services 24x448
Call Girls Bijapur - 9332606886 Rs 3000 Free Pickup & Drop Services 24x448
 
Dubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in DubaiDubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in Dubai
 
Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...
Just Call Vip call girls Palghar Escorts ☎️8617370543 Two shot with one girl ...
 
Deira Call girls 0507330913 Call girls in Deira
Deira Call girls 0507330913 Call girls in DeiraDeira Call girls 0507330913 Call girls in Deira
Deira Call girls 0507330913 Call girls in Deira
 
Gonda Nitya salvi 8617370543 VIP model college girls ...
Gonda Nitya salvi 8617370543 VIP model college girls ...Gonda Nitya salvi 8617370543 VIP model college girls ...
Gonda Nitya salvi 8617370543 VIP model college girls ...
 
Codes and conventions of film magazines.pptx
Codes and conventions of film magazines.pptxCodes and conventions of film magazines.pptx
Codes and conventions of film magazines.pptx
 

Untitled talk at Riviera.rb

  • 1. riviera.rb This Talk Has No Title Yet Jean-Baptiste Mazon @jbmazon
  • 2. May contain trace amounts of ● ruby (twitter request) ● beer ● Java 8 ● one or two other obscure languages ● no livecoding
  • 3.
  • 4.
  • 5. GoF ● abstract factory ● builder ● factory method ● prototype ● singleton ● adapter ● bridge ● composite ● decorator ● facade ● flyweight ● proxy ● chain of responsibility ● command ● interpreter ● iterator ● mediator ● memento ● observer ● state ● strategy ● template method ● visitor
  • 9.
  • 10. RAII ● Resource Acquisition Is Initialization ● C++ ● Perl, Python, PHP ● CADR
  • 12. Norvig ● abstract factory ● builder ● factory method ● prototype ● singleton ● adapter ● bridge ● composite ● decorator ● facade ● flyweight ● proxy ● chain of responsibility ● command ● interpreter ● iterator ● mediator ● memento ● observer ● state ● strategy ● template method ● visitor
  • 13. Wired ● master/slave ● CSMA/CD ● token ring ● sneakernet
  • 14. Locking ● acquire ● release ● read-write lock ● deadlock ● spinlock
  • 15. Antipatterns ● race hazard ● input kludge ● busy waiting ● magic numbers ● magic strings ● action at a distance ● error hiding ● magic pushbutton ● hard code ● soft code ● database-as-IPC ● programming by permutation ● copy and paste programming ● cargo cult programming
  • 17. Error Hiding begin ImportFile(filename) rescue raise SomeException, 'import failed' end
  • 18. Modeling ● anemic domain model ● BaseBean ● circle-ellipse ● god class, god object
  • 20. Design ● spaghetti code ● ravioli code ● lasagna code ● big ball of mud ● inner-platform effect ● tester driven development
  • 21. Maintenance ● circular dependency ● dependency hell ● DLL hell ● JAR hell ● boat anchor
  • 22. A few others ● gold plating ● golden hammer ● silver bullet ● not invented here ● invented here ● premature optimization ● repeating yourself ● reinventing the square wheel ● abstraction inversion ● pattern abuse and overuse
  • 23. Consider this simple code [-]+++++++++++++++ +++++++++++++++++++ +++++++++++++++++++ +++++++++++++++++++ .---.+++++++..+++.
  • 24. Simplifying def h puts 'HELLO' end h h h h