Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Code: from Procedural toObject OrientedRon Kleinhttp://heblog.ronklein.co.ilhttp://tinyurl.com/ronklein
What is procedural code? Program flow is focused on methods Methods are also..   Functions   Sub (VB notation)   Proc...
What is procedural code? Implementation details are exposed to programmers Example: Fetching data from an external resou...
What is OOP code? Program flow is focused on interfaces and events Implementation details are hidden from the programmer...
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...
OOP – The Bad Over engineering   Lots of files   We might end up with nano services Modeling might be hard, or difficu...
Is this OOP? In general – yes C# is a static language.. .. and so is Java.. We get class oriented programming:   Lots...
Thank You!
Upcoming SlideShare
Loading in …5
×

Code: from Procedural to Object Oriented

7,828 views

Published on

The differences between procedural code to object oriented code.
Indicators to procedural code.
OOP - advantages and disadvantages.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Code: from Procedural to Object Oriented

  1. 1. Code: from Procedural toObject OrientedRon Kleinhttp://heblog.ronklein.co.ilhttp://tinyurl.com/ronklein
  2. 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. 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. 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. 5. Procedural Code Indicators Static methods Singletons Code heavily relies on configuration
  6. 6. OOP – The Good Maintainability Testability Programmers focus on interfaces and not on implementation  Program flow is clear Loose coupling
  7. 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. 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
  9. 9. Thank You!

×