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.

Racist syndrome (composition over inheritance)

239 views

Published on

A very light session about Software design principle Composition Over Inheritance.
By AlSayed Gamal | part of Cognitev Design Talks

Published in: Software
  • Be the first to like this

Racist syndrome (composition over inheritance)

  1. 1. THE RACIST DEVELOPER SYNDROME DESIGN TALKS #1
  2. 2. DESIGN TALK #1 DEC 2017 DISCLAIMER ▸ Events and names in this presentation may sounds very familiar and it’s meant to be that way. ▸ This talk may drive you angry/crazy and well, it’s also meant to be that way. ▸ This talk is designed to be interactive and you do not have the right to remain silent :D ▸ Bring your laptop you may need it. ▸ I strongly appreciate your critical feedback.
  3. 3. WE NEED TO MAKE A VERY SMALL CHANGE! Anonymous product team member(Gohary) DESIGN TALKS DEC 2017
  4. 4. SCENE1
  5. 5. WE NEED YOUR HELP! WE ARE MAKING A NEW GAME, WE WILL CALL IT THE RACIST CAT WHAT DO YOU THINK ? VERY SIMPLE.
 WE NEED A CAT CHARACTER THAT WALK, TALKS (IN MEAO LANGUAGE) AND IDENTIFY ITSELF! HOW CAN I HELP YOU ? OK LET’S DO IT. SEE YOU TOMORROW! WATER DISPENSER SCENE KOOL!
 SEE YOU THEN.
  6. 6. AFTER 1
 WEEK
  7. 7. THAT CAT WAS AWESOME.
 ACTUALLY IT’S VERY AWESOME THAT WE WANT TO WE WILL EXTEND THE GAME WITH A DOG! YES, EXACTLY LIKE CAT BUT IT BASICALLY CAN BARK!
 AND OH, WE NEED BOTH TO BE ABLE TO WELL…POOP DOG ? UMMM… LET ME SEE WHAT I CAN DO .. SUNNY DAY, POOL-SIDE SCENE KOOL!
 SEE YOU THEN.
  8. 8. AFTER 1 WEEK
  9. 9. HELLO! CAN WE CAN ADD A ROBOT ? A ROBOT THAT CUSTOMERS CAN DRIVE ? OUR USERS DEMAND FOR KILLER AND CLEANERS ROBOTS .. POOP IS EVERYWHERE.. ROBOT ?!!
 BUT I DIDN’T EXPECT THAT WE WILL HAVE A ROBOT. OK .. I’LL CLEAN THE POOP.
 I MEAN DON’T WORRY YOU HAVE YOUR ROBOTS! STAIRWAY SCENE, SOME SUNDAY! KOOL!
 SEE YOU THEN.YOU ARE THE ONE!
  10. 10. 3 MONTHS LATER THE PLOT TWIST
  11. 11. DUDE! WE NEED KILLING CAT ROBOT! KILL (*&*^# WHAT ?! URGENT MEETING: SOME MEETING ROOM!
  12. 12. COMPOSITION OVER INHERITANCE THE SAVIOR
  13. 13. THE SOLUTION COMPOSITION OVER INHERITANCE DESIGN FOR CAPABILITY INSTEAD OF IDENTITY WalkTalkClean Robot CAT
  14. 14. THE SOLUTION SUPER CAT VS ROBOT CAT
  15. 15. HOW TO CODE IT IN COMPOSITION ?
  16. 16. THANK YOU!

×