In several projects I've seen application.properties or application.yml files in test resources. These files were almost exactly the same as files in main resources. Each time developer adds a new configuration to file in main resources, he/she needs to update a file in test resources. It's definitely a code smell. …
Read MoreOften, as a product to the customer, not only binary files are transferred, but also source codes of applications. It is then worth considering whether you want to transfer the entire GIT repository or only the source codes. If we were the recipient of a product, the history of file changes can be very valuable …
Read MoreThere is awsome, free and intensively developed tool for drawing diagrams and schematics - diagrams.net (former draw.io). The easiest way to use this tool is to work in a web application accessible through a browser.. There is a desktop option, which could be installed on Windows, Linux and MacOs. Example diagram: …
Read MoreUnfortunately, we can't use any matching java version using sdkman. We must provide specific identifier like 11.0.12-open. Sometimes we need to set just java 11, which is installed, patch number and distribution don't matter. There is open issue on github #920 with proposal of this feature. SDKMAN autocomplete make it …
Read MoreRedo1 is a tool for quick and easy alias creation from last invoked commands. Application hstr Check post about tool hstr, which also speed up work in terminal Installation Below script for installing 0.5.0 version. Before install, you should check newest version on GitHub: release redo. 1REDO_VERSION=0.5.0 2wget …
Read MoreSome time ago, during the Devoxx conference, I noticed a very interesting tool used by the speaker. When he wanted to type in the console a command, which he had already typed before, terminal was shown a list of prompts. This makes working in the console more efficient. Navigating with the arrows By default, when we …
Read MoreToday I'd like to share an interesting case that took me some time before I came to a solution. The case was about using reflection in unit tests to check if the established naming conventions are followed. Problem - reflection does not find all classes Let's assume a project that has 4 classes named: UsecaseA UsecaseB …
Read MoreSDKMAN1 is a great tool for installing multiple versions of different tools and switching between versions easily. It is safe to say that it is a must-have for any programmer. Installation is very easy 1 curl -s "https://get.sdkman.io" | bash 2 source "$HOME/.sdkman/bin/sdkman-init.sh" Main commands In …
Read MoreWhen we have a problem with reproducing the bug in local environment, it may be useful to view logs from environment where a bug could be reproduced. Usually it requires to change logging level to DEBUG or TRACE. We can do this by changing logging level in application preferences and then restart application. 1# …
Read MorePersonally I prefer jar then war ("Make JAR, not WAR" - Josh Long), but sometimes we have constraints that are not depend on us. This example focus about how to deploy two Spring Boot applications in Wildfly and how to externalize application properties for each application. The case is: deploy two Spring …
Read More