OOP - Back to Basic

  • 750 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
750
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
22
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. OOP – Back to Basic! Gøran Hansen Seniorkonsulent, Capgemini http://blog.goeran.no [email_address] Twitter.com/goeran
  • 2.  
  • 3.  
  • 4.  
  • 5.  
  • 6.
    • ” Vi kan unngå spagettikode ved å bry oss om kvaliteten på koden vi skriver !”
  • 7.
    • What does these have in common?
    .NET VB.NET C# Ruby Python Silverlight Flash Java ASP.NET MVC Ruby on Rails WPF Azure
  • 8.  
  • 9.
    • Object Orientation!
  • 10.
    • Encapsulation, Inheritance, Polymorphism
  • 11.
    • Loose Coupling
  • 12.  
  • 13.  
  • 14.
    • Cohesion
  • 15.  
  • 16.  
  • 17.
    • Design Principles
  • 18.
    • Single Responsibility Principle – SRP ”There should never be more than one reason for the class to change ” – Tom DeMarco
    • http://www.objectmentor.com/resources/articles/srp.pdf
  • 19.
    • Dependency Inversion Principle – DIP ”High level modules should not depend upon low level modules. Both should depend upon asbtractions ”
    • ” Abstractions should not depend upon details. Details should depend upon abstractions ”
    • - Robert C. Martin (Unclebobmartin)
    • http://www.objectmentor.com/resources/articles/dip.pdf
  • 20.
    • Open-Closed Principle – OCP
    • ” Should be open for extensions but closed for modification ” – Bertand Meyer (1988)
    • http://www.objectmentor.com/resources/articles/ocp.pdf
  • 21.
    • SRP
    • DIP
    • OCP
  • 22.
    • S . O .L.I. D
  • 23.
    • ” Vi kan unngå spagettikode ved å bry oss om kvaliteten på koden vi skriver !”
  • 24.  
  • 25.
    • Recommended reading
  • 26.
    • http://www.objectmentor.com/resources/publishedArticles.html
    • http://msdn.microsoft.com/en-us/magazine/cc546578.aspx
    • http://blog.objectmentor.com/
    • http://codebetter.com/blogs/jeremy.miller/
  • 27. OOP – Back to Basic! Gøran Hansen Seniorkonsulent, Capgemini http://blog.goeran.no [email_address] Twitter.com/goeran