SlideShare a Scribd company logo
Code: from Procedural to
Object Oriented
Ron Klein
http://heblog.ronklein.co.il
http://tinyurl.com/ronklein
What is procedural code?
 Program flow is focused on methods
 Methods are also..
   Functions
   Sub (VB notation)
   Procedures
 Public methods must get all their needed parameters:
   Mostly by arguments
   Sometimes as configuration


 Demo...
What is procedural code?
 Implementation details are exposed to programmers
 Example: Fetching data from an external resource:
   Transport: HTTP? FTP? POP3?
   Username, password?
What is OOP code?
 Program flow is focused on interfaces and events
 Implementation details are hidden from the programmer
 Changing the implementation is (or should be) easy
 The hard part: Modeling
 Demo...
Procedural Code Indicators
 Static methods
 Singletons
 Code heavily relies on configuration
OOP – The Good
 Maintainability
 Testability
 Programmers focus on interfaces and not on implementation
   Program flow is clear
 Loose coupling
OOP – The Bad
 Over engineering
   Lots of files
   We might end up with nano services
 Modeling might be hard, or difficult to change
   We sometimes need for an architect or seniors
Is this OOP?
 In general – yes
 C# is a static language..
 .. and so is Java..
 We get class oriented programming:
   Lots of classes to handle
Thank You!

More Related Content

PPT
Programming language
PPTX
Unit1 principle of programming language
PPTX
Guerrero rullan ppt
PPTX
Programming Paradigm & Languages
PPTX
Monolithic and Procedural Programming
PPT
PDF
POLITEKNIK MALAYSIA
PDF
POLITEKNIK MALAYSIA
Programming language
Unit1 principle of programming language
Guerrero rullan ppt
Programming Paradigm & Languages
Monolithic and Procedural Programming
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA

What's hot (20)

PDF
Graphical programming
PDF
POLITEKNIK MALAYSIA
PPTX
9. control statement
PPT
Programming Methodology
PPTX
PDF
POLITEKNIK MALAYSIA
PDF
Decision Making Statements, Arrays, Strings
PPT
Unit 3 principles of programming language
PDF
POLITEKNIK MALAYSIA
PPTX
Unit 1. Problem Solving with Computer
PDF
Java chapter 5
PPT
Logic Formulation 2
PPTX
Std 10 computer chapter 10 introduction to c language (part1)
PPTX
Algorithms and flow charts
PPTX
Week10 final
PPTX
Calculation of Cyclomatic complexity
PPTX
Programming Fundamentals
PPT
Steps for Developing a 'C' program
Graphical programming
POLITEKNIK MALAYSIA
9. control statement
Programming Methodology
POLITEKNIK MALAYSIA
Decision Making Statements, Arrays, Strings
Unit 3 principles of programming language
POLITEKNIK MALAYSIA
Unit 1. Problem Solving with Computer
Java chapter 5
Logic Formulation 2
Std 10 computer chapter 10 introduction to c language (part1)
Algorithms and flow charts
Week10 final
Calculation of Cyclomatic complexity
Programming Fundamentals
Steps for Developing a 'C' program
Ad

Similar to Code: from Procedural to Object Oriented (20)

PDF
Throwing Laravel into your Legacy App™
PPTX
Ncrafts.io - Refactor your software architecture
PDF
So You Just Inherited a $Legacy Application...
PPT
Intro To AOP
PDF
Joomla Code Quality Control and Automation Testing
PDF
So You Just Inherited a $Legacy Application… NomadPHP July 2016
PPT
Software Development Process and Models.ppt
PPT
Comp102 lec 1
PPTX
T3_Embedded programing_07072022T3_Embedded programing_07072022.pptx
PPTX
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
PPT
The software management and engineering in the AI-oriented projects tutorial
PPTX
Dev Ops for systems of record - Talk at Agile Australia 2015
PDF
Do DevOps Engineers Code? Find Out in This Guide
PDF
Chapter-1-1 object oriented programing pdf.pdf
PDF
Object Pascal Clean Code Guidelines Proposal (at EKON 22)
PPT
Rhapsody Software
ODP
Passing The Joel Test In The PHP World
PPTX
Debbuging
PPTX
Jak aspekty uporządkują twój kod.
PDF
WoMakersCode 2016 - Shit Happens
Throwing Laravel into your Legacy App™
Ncrafts.io - Refactor your software architecture
So You Just Inherited a $Legacy Application...
Intro To AOP
Joomla Code Quality Control and Automation Testing
So You Just Inherited a $Legacy Application… NomadPHP July 2016
Software Development Process and Models.ppt
Comp102 lec 1
T3_Embedded programing_07072022T3_Embedded programing_07072022.pptx
2R-3KS03-OOP_UNIT-I (Part-A)_2023-24.pptx
The software management and engineering in the AI-oriented projects tutorial
Dev Ops for systems of record - Talk at Agile Australia 2015
Do DevOps Engineers Code? Find Out in This Guide
Chapter-1-1 object oriented programing pdf.pdf
Object Pascal Clean Code Guidelines Proposal (at EKON 22)
Rhapsody Software
Passing The Joel Test In The PHP World
Debbuging
Jak aspekty uporządkują twój kod.
WoMakersCode 2016 - Shit Happens
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Electronic commerce courselecture one. Pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Electronic commerce courselecture one. Pdf
Unlocking AI with Model Context Protocol (MCP)
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
sap open course for s4hana steps from ECC to s4
Dropbox Q2 2025 Financial Results & Investor Presentation
Chapter 3 Spatial Domain Image Processing.pdf
cuic standard and advanced reporting.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Understanding_Digital_Forensics_Presentation.pptx
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
Building Integrated photovoltaic BIPV_UPV.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Digital-Transformation-Roadmap-for-Companies.pptx

Code: from Procedural to Object Oriented

  • 1. Code: from Procedural to Object Oriented Ron Klein http://heblog.ronklein.co.il http://tinyurl.com/ronklein
  • 2. What is procedural code?  Program flow is focused on methods  Methods are also..  Functions  Sub (VB notation)  Procedures  Public methods must get all their needed parameters:  Mostly by arguments  Sometimes as configuration  Demo...
  • 3. What is procedural code?  Implementation details are exposed to programmers  Example: Fetching data from an external resource:  Transport: HTTP? FTP? POP3?  Username, password?
  • 4. What is OOP code?  Program flow is focused on interfaces and events  Implementation details are hidden from the programmer  Changing the implementation is (or should be) easy  The hard part: Modeling  Demo...
  • 5. Procedural Code Indicators  Static methods  Singletons  Code heavily relies on configuration
  • 6. OOP – The Good  Maintainability  Testability  Programmers focus on interfaces and not on implementation  Program flow is clear  Loose coupling
  • 7. OOP – The Bad  Over engineering  Lots of files  We might end up with nano services  Modeling might be hard, or difficult to change  We sometimes need for an architect or seniors
  • 8. Is this OOP?  In general – yes  C# is a static language..  .. and so is Java..  We get class oriented programming:  Lots of classes to handle