Those Java open source libraries worth a try on GitHub — turn
Original address: http://www.jianshu.com/p/ad40e6dd3789
As a programmer, you use those on GitHub almost every day, such as Apache commons, spring, hibernate and so on. In addition to these, you may also fork or star some other open source libraries, but there are so many libraries on GitHub that it is difficult for individuals to find and understand the new libraries that are constantly added, but they can often help you in some emerging fields.
I've been using java to write back-end applications, I usually pay attention to the blogs of some foreign technology giants (from tapki, dzone, Google developer and other technology blogs), so I noticed some new and interesting Java open source libraries. Some of them can help your project, some help you improve your Java programming level in the form of games, and others can help you identify common problems in Java programs. Among these 330000 Java open source libraries, I Set the following Java open source libraries that may also be worth trying.
Strmen Java is a string processing tool that you can introduce into your project through Maven. In addition to the string processing method of Java itself, we can also use stringutils in Apache common Lang to simplify string operation. However, the above two methods are still insufficient for string processing, which is the most easily encountered in our daily programming. Strmen Java provides us with a very complete and powerful solution, which can be used to solve almost all string processing scenarios.
Here are some common usage examples of strman Java:
Splice string
"foobar"
Gets the character of a position
Optional("f")
Take out the contents of a certain two characters
Base64 encoding
"c3RybWFu"
When it comes to big data, we always think of Hadoop and cluster deployment, but is there a smaller way to easily realize the functions of big data on a single machine? Tablesaw provides us with a memory based high-performance big data solution. You can use its API to easily import data from RDBMS or CSV, and then use the interface provided by tablesaw to sort, filter, group, map / reduce and other operations on the data.
According to the instructions given in the document, you can load the data file of 500 million lines (4 fields per line) into 10g memory in 22 seconds, and the query speed is only 1-2ms.
DEX is a data visualization solution that supports more than 50 different view types, including world map, timeline, 3D graphics and so on. DEX is written in Java / JavaFX. You can easily integrate it with other programs (such as big data analysis program written in R language) to create beautiful charts.
In the past, when developing web applications, we always needed to build an application first, Then pack it (War) and deploy it to web containers such as Tomcat. However, with the popularity of micro service architecture, we need a lighter, non container development framework. I have been using it all the time, and bootique is undoubtedly another excellent choice. It allows you to support functions such as rest service, web app, scheduled scheduling, data migration and so on through module insertion with different functions 。 The programs written with it will be packaged as a jar file. You can start it more flexibly through the command line.
From many perspectives, it is like springboot, which liberates you from Java applications from the web container it depends on. Programmers can have more autonomy to write the main () function of the main program. Even if you don't add any additional modules, you can directly use bootqiue to implement a Java application.
Gumshoe is a java program detection tool, which can help you track the load and performance of your program. It can help you analyze the usage of resources by measuring TCP, UDP, CPU and other information, and it also provides the analysis function of calling stack in Java program, such as providing information about the frequency and frequency of a method call.
Memory leakage has always been a troublesome problem for Java programmers, because it is difficult to detect the memory leakage problem in your development stage, and once you arrive at the production environment, it may cause serious consequences. Leakcanary is a memory leak checking tool. Simply add leakcanary as follows, it can monitor your application throughout the process and warn you in case of memory leak. Leakcanary supports both Android and Java. The following is an example used in Android applications.
<span class="hljs-annotation">@Override public void onCreate() {
<span class="hljs-keyword">super.onCreate();
<span class="hljs-type">LeakCanary.install(<span class="hljs-keyword">this);
}
}