Now that Payara Server 5 is here, it’s a good time to brush up on the basics – with that in mind, I’m going to go through a few of the things you can do with the Payara Server CLI.
Category: Articles
Log File Tailer (tail -f) implementation in Java – Best way to tail any file programmatically • Crunchify
File operations using Java are my favorite part. There are number of tutorials you may have seen on Crunchify like append data to file, read data from
Codemanship TDD
Like many Agile approaches, the principles of Test-Driven-Development (TDD) and its Red-Green-Refactor cycle seem deceptively simple. As often, things are more complicated in practice and this is why Jason Gorman wrote a 200 pages book about TDD that explores the multiples dimensions of this approach. If the book TDD from Jason Gorman presents naturally in details the main process behind Test-Driven-Development, it explores also some of the associated topics that are less often discussed like working with a customer, continuous integration or dealing with legacy code. The book is well-structured, with a practical code-oriented approach and filled with examples. It uses Java as a programming language, but it can be used by all coding platform. I will recommend this book to every software developer and software tester concerned by code quality, whether they work in an Agile context or not. Reference: Codemanship TDD, Jason Gorman, Quotes Seven decades of computer programming history has taught that us that our code will almost certainly need to change. If code is difficult to understand, complicated, full of duplication, and too interconnected, then it will be expensive to change. TDD explicitly includes a discipline called refactoring that helps us to keep our code as easy to change as possible. The key to communication is ensuring every stakeholder’s internal mental model is roughly the same. That means we all need to be speaking the same language. If software design is all about solving the customer’s problem, it stands to reason that the language we should all be speaking is the customer’s language. When it comes to the quality of our code, we often have the best of intentions to go back and code issues that might get in our way later. Inspection of hundreds of code bases, however, teaches us that – nine times out of ten – we never actually get around to it fixing problems we leave behind. For that reason, I strongly recommend that you refactor until you’re happy leaving the code as it is – because you very probably will leave it like that forever. That makes the third step in the TDD cycle extremely important. It reminds us to clean up our code to make it as readable, as simple, as free of duplication and as modular as we can before moving on to the next failing test. What we should generally not do is invent non-functional requirements without consulting the customer, and speculatively optimise our code “just in case”. Let the customer’s needs and real technical constraints (budget, hardware, legal compliance, etc) drive your non-functional tests. And relate the non-functional tests directly to functional customer tests wherever possible, so you can be sure that you and the customer are talking specifics. When you talk about a feature being used very frequently, be sure which scenario you’re referring to. Withdrawing cash from an ATM may occur frequently, but an edge case like the mechanism that dispenses the notes jamming occurs very rarely.
How to create a map of maps from a list of maps with Java 8 streaming api
BackgroundI have a list of maps that looks something like this:[ { “name”: “A”, “old”: 0.25, “new”: 0.3 }, { “name”: “B”, “old”: 0.3, “new”: 0.35 }, { “nam…
Apache Ignite made easy: first Java application
In this article, we take a one step further and let you through the creation of the first Ignite app…
Starting Flows with trackBy
Still continuing my trend of looking at Corda Services, I have some more tips to help your CorDapp w…
Top 5 Books to Learn Hibernate for Java Developers – DZone Java
This post takes a look at the top five books and/or courses for learning HIbernate as a Java developer, focusing specifically on beginner level knowledge.
Recap: Java influencers weigh in on Java 11 and the state of the JDK – JAXenter
Is it September 25th yet? Java 11 is coming and it’s coming soon. As we approach the newest chapter, let’s have a quick recap about what influencers say.
How to Execute tcpdump Linux Command using Java Process Class and Capture TCP/IP Packets • Crunchify
Let’s take a look at a problem in which you may want to capture Tcpdump output in your Java Program. You may need TCPDump data with N number of
Java ConcurrentHashMap.computeIfPresent value modification visibility
Join Stack Overflow to learn, share knowledge, and build your career. Google Facebook Home Public Let’s say I have a concurrent ma….
Explore the New Java 10 “var” Type: An Introduction and Hands-on Tutorial
Learn about the new Java 10 “var” type, and experiment using JShell with this hands-on tutorial on how to reduce boilerplate code using new type inference for local variables.
Complete Java Masterclass – updated for Java 11
Learn to master Java 11 and Java 8 core development step-by-step and make your first unique, advanced program in 30 days
#HOWTO: Bootstrap a Java EE 8 and Microprofile 2.0 Maven project in seconds | Philip’s Homepage
#HOWTO: Bootstrap a Java EE 8 and Microprofile 2.0 Maven project in seconds October 6, 2018 0 Comment #HOWTO Java EE Maven Manuall….
Blow up Your JUnit5 Tests with Permutations
Writing JUnit tests can be a tedious and boring process. Learn how you can improve your tests classe…