Dan Iftodi
  • About

Patterns

AbstractBuilder pattern that returns the subclass instance

17 martie 202018 martie 2020 Dan Iftodi Leave a comment Effective Java, Engineering, Patterns

I will start with a simple example where we want to have an AbstractBuilder for building Pet instances, in our example this will be a Dog. Here are the Pet class, and the Dog class that extends Pet Suppose we need a builder for building Dog instances and we know that in future there will […]

Continue reading


Factory and Abstract Factory

12 aprilie 201822 aprilie 2020 Dan Iftodi Leave a comment Engineering, Patterns

Let’s imagine we need to know exchange rates in different cities, for this we are going to the Central Bank and are asking for an entity that can give us exchange rates for specific cities. Factory CentralBank will create or will give us instances of ExchangePlace based on the city name that are passing as […]

Continue reading


Decorator Pattern

29 martie 201822 aprilie 2020 Dan Iftodi Leave a comment Effective Java, Engineering, Patterns

Today we gonna talk about Decorator Pattern. Every morning, before starting work I drink coffee, sometimes with milk, sometimes with a bar of chocolate. Let’s imagine the business that seels coffee asked us to write software that will help them selling different types of coffee (Coffe with Milk, Coffe with Chocolate, Coffe with Milk and […]

Continue reading


Observer Pattern

28 martie 201822 aprilie 2020 Dan Iftodi Leave a comment Effective Java, Engineering, Patterns

This article will be pretty short. Imagine you have a weather station and you should provide weather info for other businesses and government alerting system (they will use this information for informing people). For implementing this we will use Observer pattern. Observer pattern has two parts Observable and Observer. Observable is the weather station that […]

Continue reading


Strategy Pattern

14 august 201715 august 2017 Dan Iftodi Leave a comment Patterns, Programare

1. Capcanele care apar la Mostenire și Compozitie Mostenirea este un principiu de baza al OOP, utilizănd mosteneria ai posibilitate sa extinzi comportamentul unui obiect. Dacă un Urs este un Mamifer, vom extinde clasa Mamifer pentru a crea clasa Urs, este comod și util pentru reutilizarea codului, problema apare atunci când moștenirea este utilizată prea […]

Continue reading


Search for:

Archives

  • noiembrie 2021
  • octombrie 2021
  • martie 2021
  • ianuarie 2021
  • septembrie 2020
  • martie 2020
  • ianuarie 2020
  • octombrie 2019
  • septembrie 2019
  • august 2019
  • iulie 2019
  • aprilie 2019
  • martie 2019
  • februarie 2019
  • ianuarie 2019
  • decembrie 2018
  • noiembrie 2018
  • iunie 2018
  • mai 2018
  • aprilie 2018
  • martie 2018
  • ianuarie 2018
  • noiembrie 2017
  • octombrie 2017
  • august 2017
  • iulie 2017
  • aprilie 2017
  • martie 2017
  • ianuarie 2017
  • septembrie 2016
  • august 2016
  • aprilie 2016
  • martie 2016
  • februarie 2016
  • ianuarie 2016
  • noiembrie 2015
  • septembrie 2015
  • august 2015
  • mai 2015
  • aprilie 2015
  • ianuarie 2015
  • octombrie 2014
  • septembrie 2014
  • august 2014
  • iulie 2014
  • iunie 2014
  • mai 2014
  • aprilie 2014
  • februarie 2014
  • decembrie 2013
  • noiembrie 2013
  • octombrie 2013
  • septembrie 2013
  • august 2013
  • iulie 2013
  • iunie 2013
  • aprilie 2013
  • februarie 2013
  • ianuarie 2013
  • decembrie 2012
  • noiembrie 2012
  • octombrie 2012
  • septembrie 2012
  • august 2012
  • iulie 2012
  • iunie 2012
  • mai 2012
  • aprilie 2012
  • martie 2012
  • februarie 2012
  • decembrie 2011
  • noiembrie 2011
  • octombrie 2011
  • iulie 2011
  • februarie 2011
  • ianuarie 2011
  • octombrie 2010

Meta

  • Autentificare
AtlantaSoft - all rights reserved. Theme by Colorlib Powered by WordPress