How-to: Remote debug a Java-Service
How-To: How-To: Remote Debug A Java-Service
Prerequisite:
A IDE with remote debugging capabilities. For the purpose of this guide, we shall use the IntelliJ IDE from Jetbrains.
How-To: How-To: Remote Debug A Java-Service
Prerequisite:
A IDE with remote debugging capabilities. For the purpose of this guide, we shall use the IntelliJ IDE from Jetbrains.
How-to: View TcpDump data in Wireshark Introduction The objective of this guide is to inform the reader on how to view data collected with “tcpdump”-command (CLI-interface) in a Wireshark GUI-interface. This is an extremely useful utility for getting the overview of the traffic on a node which does not have a GUI which support Wireshark. …
As presented in one of my previous blogs, microservice architecture is an increasingly more popular architecture in modern software development.
How to detect and prevent layout reflow Chrome DevTools Tutorial How To Detect And Prevent Layout Reflow Recently I had the opportunity (or perhaps obligation) to dive into the topic of tracking down and fix a variety of unhandled DOM elements causing layout reflow on every update. Given that these reflow can be caused for …
Unit test is a testing method, which covers one unit of code (e.g. a method in Java) per test case. The idea behind unit tests is to cover the source code on the lowest and narrow possible level.
Mutation testing is a way of testing software with the intention of creating bugs in the code and verifying that the test suites catch the bug.
From Monolith To Microservices.
In a world of development, we were once building large monolithic applications, capable of performing all the tasks required to do the intended job.
Avoid Java serialization if possible
Serialization was intended as a utility within the Java language, which allows objects to be converted into bytes (serialized), send to another endpoint, and reconstructed as an object again (deserialized). This is necessary since java objects only exists within the JVM and can therefore not be send directly.
Jest-image-snapshot is a testing framework based on the jest framework. What jest-image-snapshot provides as additional features, is the capabilities to take actual screenshot of the application while the running it in varies scenarios.
78. Use Synchronize When Handling Mutable Methods
When working with threads, synchronize on mutable methods becomes a valuable resource. This is because of two reasons:
Synchronize ensure the method can only be accessed by one thread at a time. Any thread attempting to execute the method while it is already in use, will be put on hold until the method is available again.
Because the threads are set to wait for each other, synchronize also guarantee that each thread will be able to see changes to the mutable method made by previous threads.
A mutable method could for example be a method providing an incremental serial number based on a field instance.