Posts

Showing posts with the label ioc

Inheritance + Mixins *with* another solution

Image
In previous post i was talking about some alternatives to classical IoC/DI. I`m not here to argue whats bets or worst, the 2 approaches have advantages and cons. Most classical OO languages like JAVA and .NET tend to fix things at runtime. Java for instance all happens in runtime, spring context. JSF context, Hibernate/JPA context, reflection(memory), CGlib, proxies, etc.. In FP languages that are children of haskell like F# and Scala things tend to happen as much as possible close to the compiler and thats has good and bad things like everything in life. In java or .NET you dont have multiple inheritance like you do in C++. So another approach would be do inheritance and work with the ideas of Modules. Some people call this: Thin Cake Pattern, for me is just multiple inheritance with syntactic sugar. As long as you do it only for classes/traits and dont do it for values i think is ok and IMHO cleaner than the cake pattern.

Pure OO, Inversion of Control(IoC) + Dependency Injection(DI) and The Cake Pattern(FP): Whats really matters?

Image
Software development continues to improve, once you add new languages, design concepts, paradigms(like functional programing) we start having new ways of doing things, so whats really matters? should i change somethings and embrace everything or should i change nothing? In this post i want cover something if you was java developer was the central idea around java development for years. Spring Framework dominate the fields for more than a decade. The real question is not if  you should be using XML or annotations(like Guice ). Either if you should go XML or java Annotations. Thats kind of old discussion, so basically what are the options now a days?

Curso Gratuito de Spring Framework

Em 2007 eu criei este curso de Spring framework. Hoje é com grande satisfação que venho disponibilizar este material. Você pode baixar o material e utiliza-lo para estudo e até mesmo para ministrar cursos. Neste curso são abordados as principais funcionalidades do núcleo do Spring Framework... Confira a apostila completo do curso a baixo: Spring Framework 2.0 - Diego Pacheco Este curso conta com 5 slides para condução do curso, você pode obter todos estes slides na minha conta do SlideShare , dentre outras apresentações que fiz. Confira os Slides a baixo: Spring Capitulo 01 View more presentations from Diego Pacheco . Spring Capitulo 02 View more presentations from Diego Pacheco . Spring Capitulo 03 View more presentations from Diego Pacheco . Spring Capitulo 04 View more presentations from Diego Pacheco . Spring Capitulo 05 View more presentations from ...