SlideShare uma empresa Scribd logo
1 de 60
OOP is not Dead
or why we should stop seeing FP as its opponent or as silver bullet
Hernán A. Wilkinson
@hernanwilkinson
agile software development & services
This will not be a war!
A little bit of
Context…
A little bit of
History…
Structured Programming,
when?
Object Oriented
Programming, when?
Simula 67
Ole-Johan Dahl y Kristen Nygaard
Simula 67
Ole-Johan Dahl y Kristen Nygaard
OOP before
Structured
Programming??
Functional Programming,
when?
John McCarthy
What does make Lisp great?
(always great! not, “great again”  )
LISP
(define (filtrar lista condicion)
(cond
((esta-vacia? lista) lista-vacia)
((condicion (primero-de lista)) (concatenar (primero-de lista) (filtrar (resto-de lista) condicion)))
(else (filtrar (resto-de lista) condicion))))
(filtrar ‘(1 4) (lambda (x) (< x 3)))
—> ‘(1)
(define smaller-than-three (lambda (x) (< x 3)))
(filtrar ‘(1 4) smaller-than-three)
—> ‘(1)
(define (smaller-than n) (lambda (x) (< x n)))
(filtrar ‘(1 4) (smaller-than 3))
—> ‘(1)
Lambda Functions
Meta-Circular
Meta-Circular
Meta-Circular
Meta-Circular
Meta-Circular
Dynamic! - REPL
What is Object Oriented
Programming?
Alan Kay
Dynabook (1970)
I invented the term
Object-Oriented and I
can tell you I did not
have C++ in mind.
Java and C++ make you
think that the new ideas are
like the old ones. Java is the
most distressing thing to hit
computing since MS-DOS
What is Object Oriented?
• MUST
• Everything is an Object (data is an object, code is an object, classes are
objects, everything is an object!)
• Computation is done sending messages
• EITHER OR BOTH
• Classes and Sub classification as means of knowledge organization
• Objects as prototypes as means of knowledge organization
• REALLY NICE TO HAVE
• Immediate feedback
• Completely Reflective Environment (Meta-Circular)
Dynamic! More than REPL, Inspectors!
What OO is not
• Data types - int, long, double, etc. They are not objects
• Statements - for, while, if, etc. They are not messages
• Static methods - There is no “self/this” on static methods
• Final/Seal methods – There is no message send when used
• When ”code” is not an Object – No Closure or no Lambda, i.e. Java previous
1.8
• JEE is no OO, it is structured programming in Java
• Anemic classes is not OO (Services with DTO, etc)
• Use of Inheritance for Code reuse is not good OO (i.e. ActiveRecord , white
box frameworks, etc)
• Dependency Injection abuse is not OO
• IoC abuse is not OO
This is not OO – Filter in Java
What is Functional
Programming?
Wikipedia’s definition
• […] treats computation as the evaluation of mathematical functions
and avoids changing-state and mutable data.
• It is a declarative programming paradigm, which means programming
is done with expressions[…]instead of statements.
• Missing concepts from Wikipedia:
• Lambda functions (which allow High Order functions)
• Runtime support for recursive implementations (aka: tail recursion
elimination)
• Arguable:
• Lazy evaluation (more or less)
• Macro
Good OO Design favors
Immutable Objects!
This is not OO!
This IS OO!
Real OO Languages represent
“Code” as an object
(Closure  High Order Functions)
• Smalltalk since the ‘70s
• ”Closures got famous because Java don’t have them” (Anonymous)
Some conclusions - Good OO implies:
• Immutable objects when representing immutable
entities
• Closure  “High order functions”
• Message sending all the way (expressions)
• Consistency (everything is an object)
• Knowledge representation and classification
(Programs are Models!)
Some conclusions about FP
• It is a mistake to think that FP is going to solve all the
software design problems.
• Design are made by humans, not by programming languages
(even though they influence design decisions)
• FP will suffer from the same “miss-used” problems as OO
suffers now
• FP does not provide a way to organize the knowledge
represented in the software  data structures are not
enough, we know that from Structured Programming
Some conclusions
•OOP vs. FP is an absurd dichotomy
•OOP and FP complement each other
•Do not act as a “Pop Programmer”
From where “language
programming paradigms shifts”
will come from?
For sure NOT from
• Performance improvements
• Less verbose languages
• Better type system (other complete topic to discuss)
• It is “normal science” (khun-onian way to say “more of
the same”)
They will come from
• Better tools to help human-machine communication
•Better environments to “augment” human intellect
•More dynamic environments to improve immediate
feedback
•…
•Let’s see some examples
For a new
definition of
Programming
Paradigm!
For better tools!
agile software development & services
¡Gracias!

Mais conteúdo relacionado

Mais procurados

Zend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20DocumentZend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20Document
tutorialsruby
 

Mais procurados (20)

Zend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20DocumentZend%20Certification%20REVIEW%20Document
Zend%20Certification%20REVIEW%20Document
 
Prolog
PrologProlog
Prolog
 
Yes scala can!
Yes scala can!Yes scala can!
Yes scala can!
 
Framework Design Guidelines
Framework Design GuidelinesFramework Design Guidelines
Framework Design Guidelines
 
OOPS Advanced
OOPS AdvancedOOPS Advanced
OOPS Advanced
 
Stairway to scala flyer
Stairway to scala flyerStairway to scala flyer
Stairway to scala flyer
 
Value Objects
Value ObjectsValue Objects
Value Objects
 
CS152 Programming Paradigm
CS152 Programming Paradigm CS152 Programming Paradigm
CS152 Programming Paradigm
 
Java – lexical issues
Java – lexical issuesJava – lexical issues
Java – lexical issues
 
Java tokens
Java tokensJava tokens
Java tokens
 
Aaa ped-3. Pythond: advanced concepts
Aaa ped-3. Pythond: advanced conceptsAaa ped-3. Pythond: advanced concepts
Aaa ped-3. Pythond: advanced concepts
 
Value Types
Value TypesValue Types
Value Types
 
Type theory in practice
Type theory in practiceType theory in practice
Type theory in practice
 
Keep Code Left - How to write better code in almost any language
Keep Code Left - How to write better code in almost any languageKeep Code Left - How to write better code in almost any language
Keep Code Left - How to write better code in almost any language
 
Flow control in Python
Flow control in PythonFlow control in Python
Flow control in Python
 
A Review of Deep Contextualized Word Representations (Peters+, 2018)
A Review of Deep Contextualized Word Representations (Peters+, 2018)A Review of Deep Contextualized Word Representations (Peters+, 2018)
A Review of Deep Contextualized Word Representations (Peters+, 2018)
 
Java data types, variables and jvm
Java data types, variables and jvm Java data types, variables and jvm
Java data types, variables and jvm
 
Lecture 1 oop
Lecture 1 oopLecture 1 oop
Lecture 1 oop
 
Scala’s implicits
Scala’s implicitsScala’s implicits
Scala’s implicits
 
Functional programming ruby mty
Functional programming   ruby mtyFunctional programming   ruby mty
Functional programming ruby mty
 

Destaque

Destaque (6)

Desarrollo equipos basado en Modelo tuckman #Agiles2017
Desarrollo equipos basado en Modelo tuckman   #Agiles2017Desarrollo equipos basado en Modelo tuckman   #Agiles2017
Desarrollo equipos basado en Modelo tuckman #Agiles2017
 
Energia y Motivacion
Energia y MotivacionEnergia y Motivacion
Energia y Motivacion
 
Deployment Groups con VSTS
Deployment Groups con VSTSDeployment Groups con VSTS
Deployment Groups con VSTS
 
Developing Scrum Masters
Developing Scrum MastersDeveloping Scrum Masters
Developing Scrum Masters
 
En búsqueda del DevOps perdido
En búsqueda del DevOps perdidoEn búsqueda del DevOps perdido
En búsqueda del DevOps perdido
 
Hablemos de Contratos Ágiles
Hablemos de Contratos ÁgilesHablemos de Contratos Ágiles
Hablemos de Contratos Ágiles
 

Semelhante a Oop is not Dead

Trends in programming languages
Trends in programming languagesTrends in programming languages
Trends in programming languages
Antya Dev
 

Semelhante a Oop is not Dead (20)

Java Closures
Java ClosuresJava Closures
Java Closures
 
Functional programming
Functional programmingFunctional programming
Functional programming
 
Are High Level Programming Languages for Multicore and Safety Critical Conver...
Are High Level Programming Languages for Multicore and Safety Critical Conver...Are High Level Programming Languages for Multicore and Safety Critical Conver...
Are High Level Programming Languages for Multicore and Safety Critical Conver...
 
Object-Oriented Programming in Java (Module 1)
Object-Oriented Programming in Java (Module 1)Object-Oriented Programming in Java (Module 1)
Object-Oriented Programming in Java (Module 1)
 
Introduction to Software - Coder Forge - John Mulhall
Introduction to Software - Coder Forge - John MulhallIntroduction to Software - Coder Forge - John Mulhall
Introduction to Software - Coder Forge - John Mulhall
 
Chapter1_ObjectOrientedProgramming.pptx
Chapter1_ObjectOrientedProgramming.pptxChapter1_ObjectOrientedProgramming.pptx
Chapter1_ObjectOrientedProgramming.pptx
 
Presentation
PresentationPresentation
Presentation
 
introduction of Object oriented programming
introduction of Object oriented programmingintroduction of Object oriented programming
introduction of Object oriented programming
 
The Rise of Functional Programming
The Rise of Functional ProgrammingThe Rise of Functional Programming
The Rise of Functional Programming
 
Fp for the oo programmer
Fp for the oo programmerFp for the oo programmer
Fp for the oo programmer
 
Trends in programming languages
Trends in programming languagesTrends in programming languages
Trends in programming languages
 
Introduction to functional programming (In Arabic)
Introduction to functional programming (In Arabic)Introduction to functional programming (In Arabic)
Introduction to functional programming (In Arabic)
 
Polyglot and Functional Programming (OSCON 2012)
Polyglot and Functional Programming (OSCON 2012)Polyglot and Functional Programming (OSCON 2012)
Polyglot and Functional Programming (OSCON 2012)
 
PARADIGM IT.pptx
PARADIGM IT.pptxPARADIGM IT.pptx
PARADIGM IT.pptx
 
Metamorphic Domain-Specific Languages
Metamorphic Domain-Specific LanguagesMetamorphic Domain-Specific Languages
Metamorphic Domain-Specific Languages
 
Natural Language Processing
Natural Language ProcessingNatural Language Processing
Natural Language Processing
 
Into the Land of lambda, One Programmer's Journey Into Functional Programming
Into the Land of lambda, One Programmer's Journey Into Functional ProgrammingInto the Land of lambda, One Programmer's Journey Into Functional Programming
Into the Land of lambda, One Programmer's Journey Into Functional Programming
 
LISP: How I Learned To Stop Worrying And Love Parantheses
LISP: How I Learned To Stop Worrying And Love ParanthesesLISP: How I Learned To Stop Worrying And Love Parantheses
LISP: How I Learned To Stop Worrying And Love Parantheses
 
Functional solid
Functional solidFunctional solid
Functional solid
 
Scala Days NYC 2016
Scala Days NYC 2016Scala Days NYC 2016
Scala Days NYC 2016
 

Mais de Hernan Wilkinson

Mais de Hernan Wilkinson (20)

Hacia una síntesis de diseño a partir de entender qué es modelar con software
Hacia una síntesis de diseño a partir de entender qué es modelar con softwareHacia una síntesis de diseño a partir de entender qué es modelar con software
Hacia una síntesis de diseño a partir de entender qué es modelar con software
 
Live Typing - California Smalltalkers
Live Typing - California SmalltalkersLive Typing - California Smalltalkers
Live Typing - California Smalltalkers
 
Buenos Aires vs. (London vs. Chicago) Agiles 2020
Buenos Aires vs. (London vs. Chicago) Agiles 2020Buenos Aires vs. (London vs. Chicago) Agiles 2020
Buenos Aires vs. (London vs. Chicago) Agiles 2020
 
LiveTyping - Anotación automática de tipos para lenguajes dinámicos
LiveTyping - Anotación automática de tipos para lenguajes dinámicosLiveTyping - Anotación automática de tipos para lenguajes dinámicos
LiveTyping - Anotación automática de tipos para lenguajes dinámicos
 
LiveTyping: Update and What is next
LiveTyping: Update and What is nextLiveTyping: Update and What is next
LiveTyping: Update and What is next
 
Cuis smalltalk past present and future
Cuis smalltalk past present and futureCuis smalltalk past present and future
Cuis smalltalk past present and future
 
Live Typing - Automatic Type Annotation that improves the Programming eXperie...
Live Typing- Automatic Type Annotation that improves the Programming eXperie...Live Typing- Automatic Type Annotation that improves the Programming eXperie...
Live Typing - Automatic Type Annotation that improves the Programming eXperie...
 
El Desarrollo de Software como debería Ser - PyConAr 2018
El Desarrollo de Software como debería Ser - PyConAr 2018El Desarrollo de Software como debería Ser - PyConAr 2018
El Desarrollo de Software como debería Ser - PyConAr 2018
 
Lessons Learned Implementing Refactorings
Lessons Learned Implementing RefactoringsLessons Learned Implementing Refactorings
Lessons Learned Implementing Refactorings
 
Dynamic Type Information
Dynamic Type InformationDynamic Type Information
Dynamic Type Information
 
El Desarrollo de Software como debería Ser - Nerdear.la 2018
El Desarrollo de Software como debería Ser - Nerdear.la 2018El Desarrollo de Software como debería Ser - Nerdear.la 2018
El Desarrollo de Software como debería Ser - Nerdear.la 2018
 
El Desarrollo de Software como debería Ser
El Desarrollo de Software como debería SerEl Desarrollo de Software como debería Ser
El Desarrollo de Software como debería Ser
 
TDD & Refactoring
TDD & RefactoringTDD & Refactoring
TDD & Refactoring
 
Go/Ruby/Java: What's next?
Go/Ruby/Java: What's next?Go/Ruby/Java: What's next?
Go/Ruby/Java: What's next?
 
Exceptions: Why, When, How and Where!
Exceptions: Why, When, How and Where!Exceptions: Why, When, How and Where!
Exceptions: Why, When, How and Where!
 
CuisUniversity
CuisUniversityCuisUniversity
CuisUniversity
 
Augmenting Smalltalk Syntax
Augmenting Smalltalk SyntaxAugmenting Smalltalk Syntax
Augmenting Smalltalk Syntax
 
Growing an open participative horizontal and based on trust company
Growing an open participative horizontal and based on trust companyGrowing an open participative horizontal and based on trust company
Growing an open participative horizontal and based on trust company
 
Como escribir buenos tests al hacer TDD
Como escribir buenos tests al hacer TDDComo escribir buenos tests al hacer TDD
Como escribir buenos tests al hacer TDD
 
Desarrollando sistemas con metodologías y técnicas agiles
Desarrollando sistemas con metodologías y técnicas agilesDesarrollando sistemas con metodologías y técnicas agiles
Desarrollando sistemas con metodologías y técnicas agiles
 

Último

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Último (20)

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 

Oop is not Dead

  • 1. OOP is not Dead or why we should stop seeing FP as its opponent or as silver bullet Hernán A. Wilkinson @hernanwilkinson agile software development & services
  • 2. This will not be a war!
  • 3. A little bit of Context…
  • 4.
  • 5.
  • 6. A little bit of History…
  • 8.
  • 9.
  • 10.
  • 12. Simula 67 Ole-Johan Dahl y Kristen Nygaard
  • 13. Simula 67 Ole-Johan Dahl y Kristen Nygaard
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 23.
  • 24.
  • 25.
  • 26. What does make Lisp great? (always great! not, “great again”  ) LISP
  • 27. (define (filtrar lista condicion) (cond ((esta-vacia? lista) lista-vacia) ((condicion (primero-de lista)) (concatenar (primero-de lista) (filtrar (resto-de lista) condicion))) (else (filtrar (resto-de lista) condicion)))) (filtrar ‘(1 4) (lambda (x) (< x 3))) —> ‘(1) (define smaller-than-three (lambda (x) (< x 3))) (filtrar ‘(1 4) smaller-than-three) —> ‘(1) (define (smaller-than n) (lambda (x) (< x n))) (filtrar ‘(1 4) (smaller-than 3)) —> ‘(1) Lambda Functions
  • 34. What is Object Oriented Programming?
  • 37.
  • 38. I invented the term Object-Oriented and I can tell you I did not have C++ in mind. Java and C++ make you think that the new ideas are like the old ones. Java is the most distressing thing to hit computing since MS-DOS
  • 39. What is Object Oriented? • MUST • Everything is an Object (data is an object, code is an object, classes are objects, everything is an object!) • Computation is done sending messages • EITHER OR BOTH • Classes and Sub classification as means of knowledge organization • Objects as prototypes as means of knowledge organization • REALLY NICE TO HAVE • Immediate feedback • Completely Reflective Environment (Meta-Circular)
  • 40. Dynamic! More than REPL, Inspectors!
  • 41. What OO is not • Data types - int, long, double, etc. They are not objects • Statements - for, while, if, etc. They are not messages • Static methods - There is no “self/this” on static methods • Final/Seal methods – There is no message send when used • When ”code” is not an Object – No Closure or no Lambda, i.e. Java previous 1.8 • JEE is no OO, it is structured programming in Java • Anemic classes is not OO (Services with DTO, etc) • Use of Inheritance for Code reuse is not good OO (i.e. ActiveRecord , white box frameworks, etc) • Dependency Injection abuse is not OO • IoC abuse is not OO
  • 42. This is not OO – Filter in Java
  • 44. Wikipedia’s definition • […] treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data. • It is a declarative programming paradigm, which means programming is done with expressions[…]instead of statements. • Missing concepts from Wikipedia: • Lambda functions (which allow High Order functions) • Runtime support for recursive implementations (aka: tail recursion elimination) • Arguable: • Lazy evaluation (more or less) • Macro
  • 45. Good OO Design favors Immutable Objects!
  • 46. This is not OO!
  • 48. Real OO Languages represent “Code” as an object (Closure  High Order Functions) • Smalltalk since the ‘70s • ”Closures got famous because Java don’t have them” (Anonymous)
  • 49.
  • 50. Some conclusions - Good OO implies: • Immutable objects when representing immutable entities • Closure  “High order functions” • Message sending all the way (expressions) • Consistency (everything is an object) • Knowledge representation and classification (Programs are Models!)
  • 51. Some conclusions about FP • It is a mistake to think that FP is going to solve all the software design problems. • Design are made by humans, not by programming languages (even though they influence design decisions) • FP will suffer from the same “miss-used” problems as OO suffers now • FP does not provide a way to organize the knowledge represented in the software  data structures are not enough, we know that from Structured Programming
  • 52. Some conclusions •OOP vs. FP is an absurd dichotomy •OOP and FP complement each other •Do not act as a “Pop Programmer”
  • 53. From where “language programming paradigms shifts” will come from?
  • 54. For sure NOT from • Performance improvements • Less verbose languages • Better type system (other complete topic to discuss) • It is “normal science” (khun-onian way to say “more of the same”)
  • 55. They will come from • Better tools to help human-machine communication •Better environments to “augment” human intellect •More dynamic environments to improve immediate feedback •… •Let’s see some examples
  • 56.
  • 57.
  • 58.
  • 59. For a new definition of Programming Paradigm! For better tools!
  • 60. agile software development & services ¡Gracias!