Better-Programming
Dealing with Exceptions in Java is a must, and functional programming doesn’t make it easier. Let’s take a look at the available options.
“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” –Martin Fowler
We all know String.format(...). But there are other options. Java has multiple ways of formatting, aligning, padding, and justifying Strings.
Java NIO (“non-blocking I/O”) is a great feature set for dealing with I/O operations. Introduced by Java 1.4, it was further improved in Java 7.
The JDK is evolving with every new release, adding more and improving existing features. Beneath the surface are hidden gems that make our lives much easier.
Immutability is one of the core concepts of functional programming. “Fully” functional programming languages support it by design, at a language-level. But in Java, we need to design and implement it ourselves, at code-level.