Fabricio Cabral
Fabricio Cabral
I see a lot of this (bellow) code repeat over and over: ``` @Override public boolean equals(final Object other) { return new Unchecked( new Or( () -> other == this,...
Let's remove private `copy()` and `copyPartial()` from `TailOf` an put `TeenInput` instead. If it's no applicable, let's create a `Copy` and maybe `PartialCopy` classes.
[Here](https://github.com/yegor256/cactoos/blob/master/src/main/java/org/cactoos/func/Async.java#L75) in `Async` it creates a new `ExecutorService` and [here](https://github.com/yegor256/cactoos/blob/master/src/main/java/org/cactoos/func/Async.java#L90) it submit the `Func` to `Executor` but it doesn't shutdown the `ExecutorService`. So I think it should call `this.executor.shutdown()` after...
Into the `Wire` interface we have a method `Input send(Input input) throws IOException`, but it isn't a EO violation? In EO vol 1, Yegor says *"verb methods should return nothing...
Let's update `maven-compiler-plugin` to 3.8.0 version and fix a bug in this plugin which doesn't allow incremental compilation that increase compile and running time. To fix both we need change...
Actually, `TextIs` matcher just checks if two `Text#asString()` are equals. IMHO, to two `Text` are truly equals, `asString()`, `toString()`, `equals()` and `hashCode()` must be equals, because: - `asString() and `toString()`...
Let's add new constructors do `Assertion` to make it easier to use: ``` Assertion(final T test, final Matcher matcher) { this("", test, matcher); } ``` ``` Assertion(final Text msg, final...
Private methods, constructors or classes are against EO principles. Please, check [this comment](https://www.yegor256.com/2017/02/07/private-method-is-new-class.html#comment-3345359202) and @yegor256 opinion about them. So, let's change the code to create package or public classes and...
In Elegant Object Vol. 2, section 6.5.6 Too many round trips, Yegor discuss about the problem of many round trips to RDBMS, to fetch data from each SQL Speaking Object...
Let's implements Constraints concept to Agenda demo.