Enum Tricks: Featured Enum Instead of Switch
Switch/case is the common control structure across programming languages and is considered more readable than a series of if/else.
However it enforces different consumers to implement specific logic without reusing it. See how you can encapsulate this logic inside an enum instead.
#java #junior #middle
https://dzone.com/articles/enum-tricks-featured-enum-instead-of-switch
Switch/case is the common control structure across programming languages and is considered more readable than a series of if/else.
However it enforces different consumers to implement specific logic without reusing it. See how you can encapsulate this logic inside an enum instead.
#java #junior #middle
https://dzone.com/articles/enum-tricks-featured-enum-instead-of-switch
DZone
Enum Tricks: Featured Enum Instead of Switch
In this post, we learn more about implementing enums in your Java projects, focusing on using the featured enum instead of the switch.
A Magic Around Spring Boot Externalized Configuration
There are some features that make Spring Boot really powerful, and one of them is an externalized configuration. Spring Boot allows you to configure your application in many ways. You have 17 levels of loading configuration properties into application.
See how you can make use of it in practice to make your application configurations more flexible and clear.
#java #spring #springboot #junior #middle #senior
https://piotrminkowski.wordpress.com/2019/03/11/a-magic-around-spring-boot-externalized-configuration/
There are some features that make Spring Boot really powerful, and one of them is an externalized configuration. Spring Boot allows you to configure your application in many ways. You have 17 levels of loading configuration properties into application.
See how you can make use of it in practice to make your application configurations more flexible and clear.
#java #spring #springboot #junior #middle #senior
https://piotrminkowski.wordpress.com/2019/03/11/a-magic-around-spring-boot-externalized-configuration/
Piotr's TechBlog
A Magic Around Spring Boot Externalized Configuration
There are some things I really like in Spring Boot, and one of them is an externalized (external) configuration. Spring Boot allows you to configure your application in many ways. You have 17 level…
How Do We Handle Failures in Microservices?
Dalia Borker explores the use of caching frameworks to improve resilience and performance in enterprise microservices systems with Redis, Pivotal Cloud Cache, and Hazelcast.
#microservices #architecture #redis #spring #hazelcast #middle #senior
https://www.infoq.com/presentations/failure-cache-redis-pcc-hazelcast
Dalia Borker explores the use of caching frameworks to improve resilience and performance in enterprise microservices systems with Redis, Pivotal Cloud Cache, and Hazelcast.
#microservices #architecture #redis #spring #hazelcast #middle #senior
https://www.infoq.com/presentations/failure-cache-redis-pcc-hazelcast
InfoQ
Enterprise Systems Built with Microservices are Designed to Expect Failures, But Then What? How Do We Handle Failures?
Dalia Borker explores the use of caching frameworks to improve resilience and performance in enterprise microservices systems with Redis, Pivotal Cloud Cache, and Hazelcast.
One Method to Rule Them All: Map.merge()
It is a rare case to read an article explaining a single method in JDK, but this one does it pretty well, it’s about Map.merge(). This is probably the most versatile operation in the key-value universe. But it's also rather obscure and rarely used.
#java #junior #middle
https://dzone.com/articles/one-method-to-rule-them-all-mapmerge
It is a rare case to read an article explaining a single method in JDK, but this one does it pretty well, it’s about Map.merge(). This is probably the most versatile operation in the key-value universe. But it's also rather obscure and rarely used.
#java #junior #middle
https://dzone.com/articles/one-method-to-rule-them-all-mapmerge
dzone.com
One Method to Rule Them All: Map.merge() - DZone Java
In this post, we take a closer look at one important method that is rather obscure and rarely used — map.merge() and how to implement it in your projects.
Scrum - The Most Popular Agile Methodology (Refcard)
Scrum is a framework that allows people to productively and creatively deliver products of the highest possible value. This refcard explores the details of Scrum, including theory, values, roles, and events. It also includes a sample of a popular approach to deliver Integrated Increments in a scaled environment.
#management #scrum #junior #middle #senior
https://dzone.com/refcardz/scrum
Scrum is a framework that allows people to productively and creatively deliver products of the highest possible value. This refcard explores the details of Scrum, including theory, values, roles, and events. It also includes a sample of a popular approach to deliver Integrated Increments in a scaled environment.
#management #scrum #junior #middle #senior
https://dzone.com/refcardz/scrum
dzone.com
Scrum - DZone Refcards
Scrum is an iterative, incremental software development framework commonly used with Agile software development. It uses one or more cross-functional, self-organizing teams of about seven people each. Scrum teams use fixed length iterations (called Sprints)…
Beware of Computation in static {} Initializer
It’s a quite common practice to prepare immutable data during class initialization and save the results in static final fields. In fact, this is exactly what static initializers are designed for.
However you should be careful using it as it can cause significant performance degradation in new JDK versions as shown in this article.
#java #bug #performance #middle #senior
https://pangin.pro/posts/computation-in-static-initializer
It’s a quite common practice to prepare immutable data during class initialization and save the results in static final fields. In fact, this is exactly what static initializers are designed for.
However you should be careful using it as it can cause significant performance degradation in new JDK versions as shown in this article.
#java #bug #performance #middle #senior
https://pangin.pro/posts/computation-in-static-initializer
pangin.pro
Beware of computation in static initializer
Even though it's a common practice to prepare data in static initializers in Java, this can have a dramatic performance impact.
Immutable Data Structures in Java
As part of some coding interviews, the topic of immutability sometimes comes up. There seems to be a bit of a misunderstanding on the concept of immutability, where developers often believe that having a ‘final’ reference is enough to make an object immutable. This blogpost dives a bit deeper in immutable references and immutable data structures. Take a look!
#java #immutability #kotlin #scala #junior #middle
https://www.jworks.io/immutable-data-structures-in-java/
As part of some coding interviews, the topic of immutability sometimes comes up. There seems to be a bit of a misunderstanding on the concept of immutability, where developers often believe that having a ‘final’ reference is enough to make an object immutable. This blogpost dives a bit deeper in immutable references and immutable data structures. Take a look!
#java #immutability #kotlin #scala #junior #middle
https://www.jworks.io/immutable-data-structures-in-java/
Memory Footprint of the JVM
The JVM can be a complex beast. Thankfully, much of that complexity is under the hood, and we as application developers and deployers often don’t have to worry about it too much. With the rise of container-based deployment strategies, one area of complexity that needs some attention is the JVM’s memory footprint. In this post you can see the two kinds of memory, the differences between them, native memory areas, JVM sizing and what does this all mean for Spring, so be sure to check it out!
#jvm #performance #memory #spring #middle #senior
https://spring.io/blog/2019/03/11/memory-footprint-of-the-jvm
The JVM can be a complex beast. Thankfully, much of that complexity is under the hood, and we as application developers and deployers often don’t have to worry about it too much. With the rise of container-based deployment strategies, one area of complexity that needs some attention is the JVM’s memory footprint. In this post you can see the two kinds of memory, the differences between them, native memory areas, JVM sizing and what does this all mean for Spring, so be sure to check it out!
#jvm #performance #memory #spring #middle #senior
https://spring.io/blog/2019/03/11/memory-footprint-of-the-jvm
Memory footprint of the JVM
Level up your Java code and explore what Spring can do for you.
The Open-Closed Principle at an Architectural Level
If you are familiar with the SOLID principles for class design in OOP and if you have ever wondered if you can use them, for example the Open-Closed Principle, when designing the architecture of a system. The Open-Closed Principle, with microservices? Madness! Well, maybe not. Let's dive into it and check it out.
#architecture #middle #senior
https://dzone.com/articles/the-open-closed-principle-at-an-architectural-leve
If you are familiar with the SOLID principles for class design in OOP and if you have ever wondered if you can use them, for example the Open-Closed Principle, when designing the architecture of a system. The Open-Closed Principle, with microservices? Madness! Well, maybe not. Let's dive into it and check it out.
#architecture #middle #senior
https://dzone.com/articles/the-open-closed-principle-at-an-architectural-leve
DZone
The Open-Closed Principle at an Architectural Level
An architect gives a tutorial on how devs and architects can work with the Open-Closed Principle when designing the architecture of microservices-based system.
An Illustrated Guide to Kubernetes Networking
You’ve been running a bunch of services on a Kubernetes cluster and reaping the benefits. Or at least, you’re planning to. Even though there are a bunch of tools available to setup and manage a cluster, you’ve still wondered how it all works under the hood. And where do you look if it breaks? There are a lot of moving parts, and knowing how they all fit in and work together is a must, if you want to be ready for failures read this article!
#kubernetes #containers #middle #senior
https://morioh.com/p/ecb38c8342ba/an-illustrated-guide-to-kubernetes-networking
You’ve been running a bunch of services on a Kubernetes cluster and reaping the benefits. Or at least, you’re planning to. Even though there are a bunch of tools available to setup and manage a cluster, you’ve still wondered how it all works under the hood. And where do you look if it breaks? There are a lot of moving parts, and knowing how they all fit in and work together is a must, if you want to be ready for failures read this article!
#kubernetes #containers #middle #senior
https://morioh.com/p/ecb38c8342ba/an-illustrated-guide-to-kubernetes-networking
Morioh
Everything You Need to Know About Kubernetes Networking
Kubernetes networking allows Kubernetes components to communicate with each other and with other applications. Networking with Kubernetes allows administrators to move workloads across private, public, and hybrid cloud infrastructures. Kubernetes (sometimes…