Modern Java - A Guide to Java 8
Jimfs
Our great sponsors
Modern Java - A Guide to Java 8 | Jimfs | |
---|---|---|
2 | 5 | |
16,606 | 2,378 | |
- | 0.7% | |
2.7 | 8.6 | |
8 months ago | 2 days ago | |
Java | Java | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Modern Java - A Guide to Java 8
-
Java 20 / JDK 20: General Availability
Here are some resources I've found helpful and have read or are on my backlog to catch up with these developments:
- https://github.com/wesleyegberto/java-new-features (terse, includes links to JEPs, good jumping off point)
- https://github.com/winterbe/java8-tutorial (quick tour through features of Java 8)
- https://winterbe.com/posts/2018/09/24/java-11-tutorial/ (same for Java 11)
Books:
- Java 8 in Action / Modern Java in Action (Raoul-Gabriel Urma, Alan Mycroft, Mario Fusco; 2014 and 2018 respectively)
- The Well-Grounded Java Developer (Martijn Verburg, Benjamin Evans, Jason Clark; 2022) - not specifically focused on new features but does cover them in the context of going deeper into Java and the JVM.
-
Coming from .net to java
Otherwise, learning Maven has been really important. As for learning the language, I liked Winterbe's guides. Here's one. https://github.com/winterbe/java8-tutorial
Jimfs
-
How to write unit tests in C++ relying on non-code files?
Java has in-memory file systems that are essentially geared for this exact use case, eg jimfs[0]. You create your filesystem and any files you need when your tests are starting up, and your classes talk to them rather than the “real” ones. Maybe a similar project exists for the C++ ecosystem?
- An in-memory file system for Java
-
Any library you would like to recommend to others as it helps you a lot? For me, mapstruct is one of them. Hopefully I would hear some other nice libraries I never try.
Recently been using JIMFS. Made my tests much faster and cleaner!
- An in memory file system
-
Working and unit testing with temporary files in Java
I use Google's JIMFS "Just In Memory Filesystem" https://github.com/google/jimfs in my unit tests and have been very happy. No need to clean something up that disappears as soon as the test is over. Let's you create unix or windows style filesystems and I've used it to test a disk space healthcheck because you can set a limit to the size of the filesystem it creates. Very flexible and easy to use.
What are some alternatives?
CQEngine - Ultra-fast SQL-like queries on Java collections
Lanterna - Java library for creating text-based GUIs
Design Patterns - Design patterns implemented in Java
OpenRefine - OpenRefine is a free, open source power tool for working with messy data and improving it
LightAdmin - [PoC] Pluggable CRUD UI library for Java web applications
Joda-Money - Java library to represent monetary amounts.
FF4J - Feature Flags for Java made easy
Codename One - Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
Smooks - Extensible data integration Java framework for building XML and non-XML fragment-based applications
Maven Wrapper - The easiest way to integrate Maven into your project!