Docs as Code is not enough
Java Deep | Pure Java, what else
by Peter Verhas
11M ago
Docs as Code it is the first step to the right direction The approach to treating your documentation the same way as program code is a step in the right direction, but it is far from state-of-the-art. The practice is detailed on many websites that advocate the use of docs-as-code (DAC). For example the Write ..read more
Visit website
Lambda and final variables
Java Deep | Pure Java, what else
by Peter Verhas
1y ago
Introduction Lambda expressions can use the variables in the scope of the lambda expression, but only if they are final or effectively final. What is the reason for that? Why is that? It is an interesting question because the answer is not apparent and opinionated. There is only one ultimate answer, though: because that is ..read more
Visit website
Why and how do to do technical interviews?
Java Deep | Pure Java, what else
by Peter Verhas
1y ago
It is a personal blog. The views and opinions expressed in this article are those of the author. They do not represent people, institutions, or organizations that the author may or may not be associated with in a professional or a personal capacity. All information is provided on an as-is basis. Technology companies are growing ..read more
Visit website
Creating a JUnit 5 ExecutionCondition
Java Deep | Pure Java, what else
by Peter Verhas
1y ago
Introduction JUnit 5 has a lot of underutilized features. Developers have learned how to use JUnit 4, and they utilize the same feature set when using JUnit5. The sexy DisplayName annotation is used more and more, but the majority of the new features developers skip. In this article, I describe a particular situation I was ..read more
Visit website
Automate Technical Documentation using Jamal
Java Deep | Pure Java, what else
by Peter Verhas
2y ago
Introduction Writing good technical documentation is an art. An art is the expression or application of human creative skill and imagination, … to be appreciated primarily for their beauty or emotional power. But every art, like sculpting, has a craft part. You need chisels, hammers to form the sculpture out of the blob of marble ..read more
Visit website
Unit testing private methods
Java Deep | Pure Java, what else
by Peter Verhas
2y ago
Introduction In this article, I will contemplate the testing of private methods in unit tests. After that, I will propose a way or pattern to do it, if you must. Finally, I will show how you can generate this pattern automatically. And yes, I will also write a takeaway section to know what you have ..read more
Visit website
Start a Java app without installing it
Java Deep | Pure Java, what else
by Peter Verhas
2y ago
This article describes how you can use JShell to download and execute a Java application. It will eliminate the need for the installation of the application. Do not install, just run! The first obstacle that you have to overcome to make people use your app is the installation. You want people to use the app ..read more
Visit website
All you wanted to know about Throwable
Java Deep | Pure Java, what else
by Peter Verhas
2y ago
This article is a tutorial about exceptions. But not the usual one. There are many of those that tell you what exceptions are for, how you can throw one, catch one, the difference between checked and runtime exceptions, and so on. There is no need for another. It would also be boring for you. If ..read more
Visit website
JDK14 instanceof EA issue
Java Deep | Pure Java, what else
by Peter Verhas
3y ago
Tagir Valeev recently had a tweet about the preview feature of the soon coming JDK14 release of Java: #Java14 pattern matching brings name shadowing to the next level of craziness. Here I add or remove the `final` modifier for the `FLAG` field, which is accessed only in unreachable `if` branch. This actually changes the program ..read more
Visit website
Repeated code
Java Deep | Pure Java, what else
by Peter Verhas
3y ago
Introduction It is usually not good to have copy/paste code in our Java application but sometimes it is unavoidable. For example the project License3j provides a method isXXX in the Feature class for each XXX type it supports. In that case, we can do no better than write for each and every feature type the ..read more
Visit website

Follow Java Deep | Pure Java, what else on Feedspot

Continue with Google
OR