Posted at February 10, 2020 / Carlos Chacin
Read the English Version here
Java es un lenguaje orientado a objetos con algunos aspectos funcionales incluidos en su n煤cleo. Al igual que cualquier otro lenguaje orientado a objetos, las clases y los objetos son la base de cualquier funcionalidad que podamos escribir y usar. Las relaciones entre las clases / objetos permiten ampliar y reutilizar la funcionalidad. Sin embargo, la forma en que elegimos construir esas relaciones determina cu谩n modular, desacoplada y reutilizable es nuestra base de c贸digo, no solo en t茅rminos de nuestro c贸digo de producci贸n sino tambi茅n en nuestras suites de prueba.
En este art铆culo, vamos a describir el concepto de Inyecci贸n de dependencias en Java y c贸mo nos ayuda a tener una base de c贸digo m谩s modular y desacoplada, lo que nos facilita la vida, incluso para las pruebas, sin la necesidad de ning煤n contenedor o marco sofisticado.
Read more ...
Posted at November 14, 2019 / Carlos Chacin
Lee la versi贸n en Espa帽ol aqu铆
Java is an object-oriented language with some functional aspects included in its core. Like any other object-oriented language, classes and objects are the foundations of any functionality that we can write and use. The relationships between the classes/objects make it possible to extend and reuse functionality. However, the way that we choose to build those relationships determine how modular, decoupled, and reusable our codebase is, not only in terms of our production code but also in our test suites.
In this article, we are going to describe the concept of Dependency Injection in Java and how it helps us have a more modular and decoupled codebase, which makes our lives easier, even for testing, without the need of any sophisticated container or framework.
Read more ...
Posted at December 21, 2015 / Carlos Chacin
There is a common requirement in most of the Java/JavaEE projects related to how differentiate environment configurations like development, test, QA, production, etc. for that reason there are a lot of frameworks or libraries to resolve that:
Even there is a Java Specification Request (JSR) Proposal:
Read more ...