How to Write Clean, Unobfuscated Code in Java
Writing clean, easy-to-read code in Java is important for improving code readability, maintainability, and overall quality. Here are some tips for writing clean, unobfuscated code...
Read ArticleLinux, Java, Open Source related how-to articles. Expert tutorials on system administration, programming, security, and DevOps best practices.
Linux, Java, Open Source related how-to articles. Expert tutorials on system administration, programming, security, and DevOps best practices.
Writing clean, easy-to-read code in Java is important for improving code readability, maintainability, and overall quality. Here are some tips for writing clean, unobfuscated code...
Read ArticleTo some people obfuscating programming code, including Java, means: Job security. If no one can understand their code, they are irreplaceable. Smartness. They are so...
Read ArticleIf you still run your Java code with JVM 8, it's probably high time to move on and starting using a newer JVM version such...
Read ArticleIf for some reasons you have decided that you don't like Lombok any longer, you can follow these steps to remove it: Remove Lombok annotations...
Read ArticleIn programming, boilerplate refers to sections of code that are repeated in many places throughout a project or across multiple projects. This code may be...
Read ArticleCode analysis tools are software tools that analyze source code for potential issues, errors, and vulnerabilities. These tools can help developers identify and fix issues...
Read ArticleA common dilemma while writing unit tests in Java is whether to use Mockito's when/thenReturn or doReturn/when stubbings. Both when/thenReturn and doReturn/when are used in...
Read ArticleOne of our latests posts was how to become a better programmer with the help of OpenGPT. Still, even without the help of AI, there...
Read ArticleTest driven development is the standard nowadays but sometimes somehow there appears a class before the test is written. This is especially true for legacy...
Read ArticleOpenGPT is very popular lately. If you haven't heard about it yet, it is a language model developed by OpenAI that can generate human-like text...
Read ArticleOne of the fastest ways to advance in Java programming is using SolarLint's IDE extension. It helps you avoid common problems and ensures your code...
Read ArticleA common interview question for Java developers is to write some code inside a try / catch / finally statement so that the finally statement...
Read ArticleA deadlock is a situation in computer programming where two or more processes are blocked, each waiting for the other to release a resource that...
Read ArticleYou might want to have more than one JDK on your Mac and run different programs with different JDK versions as it is with me....
Read ArticleHazelcast is an open source in-memory data grid. It is written in Java and naturally it is popular for Java applications but not only. In...
Read ArticleA Singleton class is a class of which only one instance exists. There is a need for such a design pattern for loggers, database connections...
Read ArticleConcurrency problems appear when your code is executed by more than one thread. Then, in contrast to a single-threaded execution, your code might behave differently...
Read ArticlePeriod, Duration and Instant are three different classes introduced since Java 8 to help us deal better with time. Period measures the time with days...
Read ArticleThe Optional object type in Java was introduced with version 8 of Java. It is used when we want to express that a value might...
Read ArticleTengine seems to be a popular web server for Chinese websites. I've come upon it while browsing through Aliexpress and stumbling upon a 404 error:...
Read ArticleStreams are a wonderful feature in Java allowing you to write clean, efficient and powerful code. If you haven't consumed the output of the stream,...
Read ArticleIn order to use lambda expressions in Java 8, you need a functional interface. For most of your needs, you can use the already built...
Read ArticleGenerics in Java and especially such with upper and lower bounds can be confusing even though they are otherwise very useful. Here is an example...
Read ArticleThe Telescoping anti-pattern is widely-spread, just like a virus. It starts with good intentions. For example, a class that has two properties like this: public...
Read ArticleBeing able to create an immutable object in Java is one of the most essential skills for any Java programmer. Such objects are needed when...
Read ArticleA functional interface is an interface that contains a single abstract method. It is used as the basis for lambda expressions in functional programming. Such...
Read ArticleAnother useful feature introduced since Java 8 is the possibility to use lambdas instead of anonymous classes. Here is an example: Imagine you have the...
Read ArticleThere is a relatively simple challenge to extend the vowels in a string. Here is a way to do it in Java 8: import java.util.function.Function;...
Read ArticleJava 8 introduced streams, among other things, and one of my favourite features is the reduce() method. It combines a stream into a single method....
Read ArticleA friend asked me to help him with the following in Bash - delete all files but a whitelisted and use mix / max depth...
Read ArticleI've had the following challenge yesterday. A friend of mine had an old Joomla 2.5 with a bunch of customization - additional components installed, custom...
Read ArticleI am sure that there are plenty of honeypots for logging remote intruders but none yet has been done on Spring Boot. So I decided...
Read ArticleMockito is a popular Java framework which comes to great help in Unit testing. In Unit testing it's important to get to a state where...
Read ArticleConnecting to Elasticsearch and executing queries is generally considered easy. In fact, in many cases a simple curl query like this one is all you...
Read ArticleUsing Maven to maintain and build your Java projects has a lot of advantages including automatically resolving dependencies, running tests and packaging. In this article...
Read ArticleChef (the systems integration framework) provides a standalone tool called chef-solo. With chef-solo you can run locally chef recipes without the need for a centralised...
Read ArticleAppArmor is the default Mandatory Access Control module on Ubuntu, SuSE and other Linux distributions. Thanks to it, you can limit the filesystem access of...
Read ArticleA great security feature of Php FastCGI Process Manager (Php-fpm) is its ability to run Php scripts with different users. This in addition to its...
Read ArticleThe best way to terminate a Java thread is with a switch such as a boolean property, .e.g abort. As soon as a condition is...
Read ArticleReferencing a child object to a variable of type parent in Java can be real confusing. Here is an example of two classes Person and...
Read ArticleWorking with time and date in Java is essential to any project. There are three important classes you can use: java.time.LocalTime - working only with...
Read ArticleTo parse time in Java, the most trouble-free and programatic way is using the parse method of the LocalTime class like this: import java.time.LocalTime; import...
Read ArticleNotice: This article was written when SuPHP was the most popular choice for running multiple PHP sites on the same Apache server. Now, php-fpm with...
Read ArticleThe MongoDB database server is well-known for its unmatched capabilities for processing large NoSQL data. Its latest performance improvements are always under the spotlights and...
Read ArticleTo secure the communication and increase the level of privacy to and from your Tomcat servlet container you should use SSL. Usually there's an Apache...
Read ArticleSSH tunneling is very useful when the network access to a remote network is restricted. Thus, to gain remote network access you can use a...
Read ArticleAlmost every piece of information contains sensitive and private data. Exposing publicly such data could lead to serious financial losses, legal issues and personal inconveniences....
Read ArticleYou can install Azure Python package either for Python 2 or Python 3 using pip (Python package index). Before you are able to install it...
Read ArticleChanging Tomcat's initial (Xms) and maximum (Xmx) memory turns out to be counter-intuitive on Windows, especially when Tomcat is installed as a service. That's because...
Read ArticleWorking with root (admin privileged user) in CentOS is not a good idea because you can easily make a costly mistake. Instead, it's much better...
Read ArticleThis is an error which you may get when you don't have an internet connection and you try to use a Docker functionality which needs...
Read ArticleIntroduction Getting a site running on a MEAN (MongoDB, Node.js, Express, and AngularJS) server can be a challenge for beginners. In this article we'll guide...
Read ArticleWorking with root (admin privileged user) in Ubuntu is not a good idea because you can easily make a costly mistake. Instead, it's much better...
Read Article