|
You are here |
benjiweber.co.uk | ||
| | | | |
inside.java
|
|
| | | | | Record classes enhance Java's ability to model "plain data" aggregates with less ceremony. A record class declares some immutable state, and commits to an API that matches that state. This means that record classes give up a freedom that classes usu... | |
| | | | |
sookocheff.com
|
|
| | | | | One of the core features of modern Java is lambda expressions. Introduced in Java 8, lambdas provide concise syntax allowing the deferred execution of a block of code. Put a different way, lambdas allow us to pass behaviour as a method parameter. When the method executes, the lambda expression is run. This capability is often referred to as behaviour parameterization. Behaviour parameterization can be achieved in a number of ways, of which lambda expressions are usually the most convenient, and they are definitely the most concise. But what is behaviour parameterization, and why would we want to use it? To motivate this discussion, let's work through a real-world example of filtering a list of items according to some criteria. More concretely, let's investig... | |
| | | | |
msfjarvis.dev
|
|
| | | | | Part 1 of my #TeachingKotlin, this post goes over Kotlin classes, objects and how things like finality and staticity vary between Java and Kotlin. | |
| | | | |
blog.scottlogic.com
|
|
| | | In most microservice architectures, there are many opportunities and temptations for sharing code. In this post I will give advice based on my experience on when it should be avoided and when code reuse is acceptable. The points will be illustrated with the help of an example Spring Boot project. | ||