Rafael Chinelato Del Nero·Nov 5, 2017Design Patterns Saga #19: Real World Situations with ProxyTo make code flexible and easy to maintain we must find a way to encapsulate and not repeat the code. What if we need to do a specific…
Rafael Chinelato Del Nero·Oct 18, 2017Design Patterns Saga #19: Real World Situations with ProxyTo make code flexible and easy to maintain we must find a way to encapsulate and not repeat the code. What if we need to do a specific…
Rafael Chinelato Del Nero·Oct 18, 2017Design Patterns Saga #18: Real World Situations with FlyweightThere are some situations in software development in which we need to improve performance. This is possible with the use of Cache. Imagine…
Rafael Chinelato Del Nero·Oct 18, 2017Design Patterns Saga #17: Real World Situations with DecoratorThere are some situations in which we need high flexibility. Let’s consider that we want to create a flexible code for mixing a lot of…
Rafael Chinelato Del Nero·Oct 18, 2017Design Patterns Saga #16: Real World Situations with CompositeComposing objects without a pattern can make code really messy — code repetition happens a lot and maintenance is terrible. Fortunately…
Rafael Chinelato Del Nero·Sep 14, 2017DESIGN PATTERNS SAGA #15: REAL PROJECT SITUATIONS WITH STATEWhen it’s necessary to maintain State from an object we can create a big code full of ifs controlling the State from the class. Certainly…
Rafael Chinelato Del Nero·Sep 6, 2017DESIGN PATTERNS SAGA #13: REAL PROJECT SITUATIONS WITH MEMENTOWhat if we need to keep many different states of an object? We could keep the information inside objects with a lot of setters and make the…
Rafael Chinelato Del Nero·Sep 6, 2017DESIGN PATTERNS SAGA #14: REAL PROJECT SITUATIONS WITH VISITORSometimes we need to implement different methods for a POJO with different business requirements. We could certainly create several methods…
Rafael Chinelato Del Nero·Aug 25, 2017DESIGN PATTERNS SAGA #12: REAL PROJECT SITUATIONS WITH MEDIATORWhat should be done when we need to use a functionality that may be repeated in several classes? Should we repeat the code in all the…
Rafael Chinelato Del Nero·Aug 18, 2017DESIGN PATTERNS SAGA #11: REAL PROJECT SITUATIONS WITH ITERATORMost of the time we use the Iterator from the Collections API. It’s very important to know how to implement a customized Iterator in order…