289
I Use This!
High Activity

News

Analyzed about 10 hours ago. based on code collected about 10 hours ago.
Posted over 5 years ago by Peter Verhas
Your code IS redundant, live with it! This article is about necessary, and unavoidable, code redundancy. We look closer at a model of code redundancy that helps to better understand why source code generators do what they do, and why they are ... [More] even needed at all. You may also like: Duplication Vs. Redundancy in Code The code you write in Java, or for that matter, in any other language, is redundant. Not by the definition that says (per Wikipedia page https://en.wikipedia.org/wiki/Redundant_code): [Less]
Posted over 5 years ago by Lindsay Smith
No matter what version of the JDK we are on, Java 8 is not going anywhere. Java 8 introduced a new era of Java. Everything from lambda expressions and functional programming to Streams and collections — DZone was there to document it all. ... [More] So whether you're migrating over to Java 9 or Java 11, or maybe even Java 13, Java 8 concepts and features are still very much alive in the JDK. And understanding these core concepts can help tremendously when it's time to move beyond Java 8. [Less]
Posted over 5 years ago by Lindsay Smith
No matter what version of the JDK we are on, Java 8 is not going anywhere. Java 8 introduced a new era of Java. Everything from lambda expressions and functional programming to Streams and collections — DZone was there to document it ... [More] all. So whether you're migrating over to Java 9 or Java 11, or maybe even Java 13, Java 8 concepts and features are still very much alive in the JDK. And understanding these core concepts can help tremendously when it's time to move beyond Java 8. [Less]
Posted over 5 years ago by Tom Smith
Java 13 is out now! I had the opportunity to meet with Georges Sabb, V.P. Software Development, Java Platform Group; Donald Smith, Sr. Director Product Management; Sharat Chander, Sr. Director Java Product Management and Developer ... [More] Relations; Chad Arimura, V.P. Developer Relations, all with Oracle, and Aimee Lucido, Java Engineer, and author of Emmy in the Key of Code, following the announcement of the general availability of Java SE 13 (JDK 13) as part of the six-month feature release cadence. After four-plus years of trying to get Oracle to provide insights for the Java Research Guides I've been conducting for DZone.com, I was pleased that they want to reengage with the developer community. [Less]
Posted over 5 years ago by Otavio Santana
Cloud computing is the on-demand availability of computer system resources, especially data storage and computing power — without direct active management by the user. The cloud concept became a hot idea because it makes it easier for software to be ... [More] available in multiple regions, without adding the maintenance, operational, and data security costs to your software project. Platform.sh is a second-generation Platform-as-a-Service (PaaS) provider that offers hosting for your applications and their services, like MySQL, PostgreSQL, and Kafka, through the infrastructure-by-code concept. Platform.sh manages everything — from hosting and technology to global deployment and support — so developers can focus on creating amazing new apps and features. In September, we’ll have several activities to show the benefits of cloud computing and how easy it can be with Platform.sh. Stay tuned! [Less]
Posted over 5 years ago by Sandra Parsick
This blog post demonstrates another approach on how to implement the strategy pattern with dependency injection. As for my DI framework, I choose the Spring Framework: Image courtesy of Wikipedia Firstly, let's have a look at how the ... [More] Strategy Pattern is implemented in a classic way. As a starting point, we have a HeroController that should add a hero in HeroRepository depends on which repository was chosen by the user. [Less]
Posted over 5 years ago by John Thompson
Spring (Coffee) Bean Lifecycle The Spring IoC (Inversion of Control) container manages Spring beans. A “Spring bean” is just a Spring-managed instantiation of a Java class. The Spring IoC container is responsible for instantiating, initializing, and wiring beans. The container also manages the life cycle of beans.
Posted over 5 years ago by John Vester
Dependency injections — can you have too many? Consider this scenario ... You have the opportunity to work on a new API for your customer. The directive (or your decision) is to use Spring Boot and dependency injection. You start coding — inspired and excited for the new project.
Posted over 5 years ago by Simon Ritter
JDK 13 is out now! We are now well into the new six-month release cadence of the JDK, and with the release of JDK 13, it is clearly working successfully. One thing that is obvious, is that, whilst the overall rate of change for the Java ... [More] platform has increased, individual releases will have less new features. This is the case with JDK 13, which includes only five JDK Enhancement Proposals (JEPs) and 76 new core library elements (of which nearly half are simple additions to the java.io package) [Less]
Posted over 5 years ago by Mahmoud Anouti
Did someone say ''Hibernate?'' In part 2, we went over mapping collections such as a simple set of strings, as well as basic associations between entities. The Book entity was enriched with many-to-one associations to Author and Publisher. In this ... [More] part, we'll explore how to map subclasses (inheritance) to tables using the various available strategies. Inheritance is a common aspect of object-oriented languages like Java, but has no support in standard relational databases or SQL. So, Hibernate (and JPA) offers several ways to bridge this in its ORM implementation. Going back to our sample domain model, let's say that the class Book inherits from an abstract class Publication, along with another subclass Magazine: [Less]