DEV Community

Cover image for Object Oriented Programming : for self taught developers.

Object Oriented Programming : for self taught developers.

Midas/XIV on January 11, 2020

Hey guys so I've been reading about design patterns and I had a lot of difficultly picking it up. I later realized it might be because my primary ...
Collapse
 
79man profile image
MANOJ PILLAI

Check out this old article I wrote about object oriented thinking way back in 2005. I guess it's still relevant and would help newcomers.

walk2rem.blogspot.com/2005/10/what...

Collapse
 
midasxiv profile image
Midas/XIV • Edited

Thanks Manoj, I was looking for good resources to learn about UML, this article has the important 5 concepts I was looking for.

  • Encapsulation
  • Abstraction and Generalization.
  • Inheritance
  • Polymorphism
Collapse
 
79man profile image
MANOJ PILLAI

Thx for the good words. Am happy you found it useful.

Collapse
 
wangvnn profile image
wangvnn • Edited

if you want to learn OOP stay away from classes..classes are just a mechanism to create objects. Focus on objects and their interactions first...then think about classes later on. Design pattern is too much about classes..A good book for OOP is OOP roles, responsibility design by Rebecca which focus on objects and their roles, then design pattern for flow control...after that you can pick up DCI to rethink about the use of classes (less important).
happy OOP, always !!!

Collapse
 
techhorizon profile image
Tech-Horizon

Would also like to get the corresponding pseudo code of the 6 points below, say in c# that will help to relate it more precisely.
Start the control program.
Instantiate the collection of students in the classroom.
Tell the collection to have the students go to their next class.
The collection tells each student to go to their next class.
Each student:
Finds where his next class is
Determines how to get there
Goes there
Done.

Collapse
 
midasxiv profile image
Midas/XIV

Will do later today. (it's a rainy morning in the UAE 😁).

Collapse
 
webbes profile image
webbes

Some dude created a TypeScript Design Patterns course a long time ago. Includes the code and YouTube Videos explaining it. mertarauh.com/tutorials/typescript...

Collapse
 
midasxiv profile image
Midas/XIV

His videos are excellent. The code snippets are great too. Thanks for sharing :D

Collapse
 
vinayakhub profile image
Vin

It would be nice to see in the form or code what you mentioned above in the article.
I enjoyed reading it. Thank you and All the best.