Yes, Spring Security can be complex, from the more advanced
functionality within the Core to the deep OAuth support in the
framework.
I built the security material as two full courses - Core and
OAuth, to get practical with these more complex scenarios. We
explore when and how to use each feature and code through it on
the backing project.
DbSchema is a super-flexible database designer, which can
take you from designing the DB with your team all the way to
safely deploying the schema.
The way it does all of that is by using a design model, a
database-independent image of the schema, which can be shared in a
team using GIT and compared or deployed on to any database.
And, of course, it can be heavily visual, allowing you to
interact with the database using diagrams, visually compose
queries, explore the data, generate random data, import data or
build HTML5 database reports.
Slow MySQL query performance is all too common. Of course
it is. A good way to go is, naturally, a dedicated profiler that
actually understands the ins and outs of MySQL.
The Jet Profiler was built for MySQL only, so it can do
things like real-time query performance, focus on most used tables
or most frequent queries, quickly identify performance issues and
basically help you optimize your queries.
Critically, it has very minimal impact on your server's
performance, with most of the profiling work done separately - so
it needs no server changes, agents or separate services.
Basically, you install the desktop application, connect to your MySQL
server, hit the record button, and you'll have results
within minutes:
The feedback is available from the minute you are writing
it.
Imagine being alerted to any regression or code smell as you're
running and debugging locally. Also, identifying weak spots that
need attending to, based on integration testing results.
We rely on other people’s code in our own work. Every
day.
It might be the language you’re writing in, the framework you’re
building on, or some esoteric piece of software that does one thing
so well you never found the need to implement it yourself.
The problem is, of course, when things fall apart in
production - debugging the implementation of a 3rd party
library you have no intimate knowledge of is, to say the least,
tricky.
Lightrun is a new kind of debugger.
It's one geared specifically towards real-life production
environments. Using Lightrun, you can drill down into running
applications, including 3rd party dependencies, with real-time
logs, snapshots, and metrics.
Learn more in this quick, 5-minute Lightrun tutorial:
Cactoosis a library of object-oriented Java primitive types.
In this tutorial, we’ll take a look at some of the classes available as a part of this library.
2. Cactoos
The Cactoos library’s repertoire is pretty rich, ranging from string manipulation to data structures. The primitive types and their corresponding methods offered by this library are similar to the ones provided by other libraries like Guava and Apache Commons but are more focused on object-oriented design principles.
2.1. Comparison With Apache Commons
Cactoos library is equipped with classes that provide the same functionality as the static methods that are part of the Apache Commons library.
Let’s take a look at some of these static methods that are part of the StringUtils package and their equivalent classes in Cactoos:
Static method of StringUtils
Equivalent Cactoos class
isBlank()
IsBlank
lowerCase()
Lowered
upperCase()
Upper
rotate()
Rotated
swapCase()
SwappedCase
stripStart()
TrimmedLeft
stripEnd()
TrimmedRight
More information on this can be found in the official documentation. We’ll take a look at the implementation of some of these in the subsequent section.
3. The Maven Dependency
Let’s start by adding the required Maven dependency. The latest version of this library can be found on Maven Central: