Pros and Cons of Java and Python

Java vs. Python: Coding Battle Royale

Ben Putano Developer Tips, Tricks & Resources Leave a Comment

While we all started to learn how to code with HTML, developing a sophisticated app requires a more advanced language. Java and Python are two of the hottest programming languages in the market right now because of their versatility, efficiency, and automation capabilities. Both languages have their merits and their flaws, but the main difference is that Java is statically …

design principle_ service locator

Design Patterns Explained – Service Locator Pattern with Code Examples

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

The service locator pattern is a relatively old pattern that was very popular with Java EE. Martin Fowler described it in 2004 on his blog. The goal of this pattern is to improve the modularity of your application by removing the dependency between the client and the implementation of an interface. Interfaces are one of the most flexible and powerful …

The state of logging in Java

The State of Logging in Java

Nicolas Frankel Developer Tips, Tricks & Resources Leave a Comment

When developing an application, chances are that it won’t perform as expected on the first run. In order to check what went wrong, developers in general use debuggers. But experienced developers know that if it happens in production, most debuggers won’t be available. Hence, they pepper the source code with logging statements to help their future self debug the next …

Dependency Inversion Principle

SOLID Design Principles Explained – Dependency Inversion Principle with Code Examples

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

The SOLID design principles were promoted by Robert C. Martin and are some of the best-known design principles in object-oriented software development. SOLID is a mnemonic acronym for the following five principles: Single Responsibility Principle Open/Closed Principle Liskov Substitution Principle Interface Segregation Principle Dependency Inversion Principle Each of these principles can stand on its own and has the goal to …

Optional_Parameters_Java

Optional Parameters in Java: Common Strategies and Approaches

Eugen Paraschiv Developer Tips, Tricks & Resources Leave a Comment

Introduction to optional parameters in Java  Unlike some languages such as Kotlin and Python, Java doesn’t provide built-in support for optional parameter values. Callers of a method must supply all of the variables defined in the method declaration. In this article, we’ll explore some strategies for dealing with optional parameters in Java. We’ll look at the strengths and weaknesses of …

Understanding_Java_Stack_Trace

Understanding and Leveraging the Java Stack Trace

Eugen Paraschiv Developer Tips, Tricks & Resources Leave a Comment

Stack traces are probably one of the most common things you’re regularly running into while working as a Java developer. When unhandled exceptions are thrown, stack traces are simply printed to the console by default. Nevertheless, it’s easy to only have a surface-level understanding of what these are and how to use them. This article will shed light on the …

SOLID Design- Interface Segregation Principle (1)

SOLID Design Principles Explained: Interface Segregation with Code Examples

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

The Interface Segregation Principle is one of Robert C. Martin’s SOLID design principles. Even though these principles are several years old, they are still as important as they were when he published them for the first time. You might even argue that the microservices architectural style increased their importance because you can apply these principles also to microservices. Robert C. …

SOLID Principles- Liskov Substitution (1) - 2 dogs graphic

SOLID Design Principles Explained – The Liskov Substitution Principle with Code Examples

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

The Open/Closed Principle, which I explained in a previous article, is one of the key concepts in OOP that enables you to write robust, maintainable and reusable software components. But following the rules of that principle alone is not enough to ensure that you can change one part of your system without breaking other parts. Your classes and interfaces also …

Understanding_Java_Beans - Good Graphic Guy on Computer Coding

A Detailed Guide to Enterprise Java Beans w/Code Examples

Eugen Paraschiv Developer Tips, Tricks & Resources Leave a Comment

A Brief History of EJB By 1996, Java had already become popular among developer for its friendly APIs and automated Garbage Collection and was starting to be widely used in back-end systems. One problem, however, was that most of these systems needed the same set of standard capabilities – such as persistence, transaction integrity, and concurrency control – which the …

SOLID Principles- Open Closed principle - door graphic

SOLID Design Principles Explained – The Open/Closed Principle with Code Examples

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

The Open/Closed Principle is one of five design principles for object-oriented software development described by Robert C. Martin. They are best known as the SOLID principles: Single Responsibility Principle Open/Closed Principle Liskov Substitution Principle Interface Segregation Principle Dependency Inversion All 5 of these design principles are broadly used, and all experienced software developers should be familiar with them. But don’t worry, …

SOLID Principles in Java - Swiss Knife Minimalistic Design

SOLID Design Principles Explained – The Single Responsibility Principle

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

SOLID is one of the most popular sets of design principles in object-oriented software development. It’s a mnemonic acronym for the following five design principles: Single Responsibility Principle Open/Closed Principle Liskov Substitution Principle Interface Segregation Principle Dependency Inversion All of them are broadly used and worth knowing. But in this first post of my series about the SOLID principles, I …

Java Graphic

The State of Java in 2018

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

2017 has been a turbulent year in the Java world. The long-awaited release of Java 9 brought a lot of changes and interesting new features, and Oracle announced a new release schedule for the JDK. And that was just the beginning. In the past, developers often complained that Java wasn’t developing fast enough. I don’t think you will hear these …

OOP Concept Composition Definition and Examples

OOP Concepts for Beginners: What is Composition?

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

Composition is one of the fundamental concepts in object-oriented programming. It describes a class that references one or more objects of other classes in instance variables. This allows you to model a has-a association between objects. You can find such relationships quite regularly in the real world. A car, for example, has an engine and modern coffee machines often have …

Java Application Performance

How to Improve the Performance of a Java Application

Eugen Paraschiv Developer Tips, Tricks & Resources, Insights for Dev Managers Leave a Comment

1. Introduction In this article, we’ll discuss a number of approaches that can be helpful for improving the performance of a Java application. We’ll start with how to define measurable performance goals and then look at different tools to measure, monitor application performance and identify bottlenecks. We’ll also look at some of the common Java code level optimizations as well …

What is Polymorphism

OOP Concepts for Beginners: What is Polymorphism

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

The word polymorphism is used in various contexts and describes situations in which something occurs in several different forms. In computer science, it describes the concept that objects of different types can be accessed through the same interface. Each type can provide its own, independent implementation of this interface. It is one of the core concepts of object-oriented programming (OOP). …

OOP Concept for Beginners: What is Inheritance?

Thorben Janssen Developer Tips, Tricks & Resources Leave a Comment

Inheritance is one of the core concepts of object-oriented programming (OOP) languages. It is a mechanism where you can to derive a class from another class for a hierarchy of classes that share a set of attributes and methods. You can use it to declare different kinds of exceptions, add custom logic to existing frameworks, and even map your domain …