Working with JSON in Scala

  • Scala does not support JSON. You need to use 3rd party library. This post is about my experiments with usage the JSON in Scala with three libraries: Continue reading
Advertisements
Posted in Programming, Scala | Tagged , , , , , | Leave a comment

Spring Boot: How to disable @Scheduled in unit tests

Spring framework exposes a nice feature to schedule some task: @Scheduled annotation. But this features makes very difficult unit test process – all scheduled tasks start work in any unit test where Spring scanning is used. It means  Continue reading

Posted in java, Programming, Scala, Test | Tagged , , , , , , | Leave a comment

Idiomatic Scala: Your Options Do Not Match

Idiomatic Scala: Your Options Do Not Match:

http://blog.originate.com/blog/2014/06/15/idiomatic-scala-your-options-do-not-match/

Posted in Programming, Scala | Tagged , , , , | Leave a comment

Types of Observables in RxJava

This is a short reminder about Observable types in RxJava.

Observable is the simplest Observable which can emit more than one value.

Flowable is a Observable which can emit huge numbers of values which can’t be consumed by the Observer.

Single is a Observable which can emit only one value like a response from a network call.

Maybe is a Observable which can emit a value or no value.

Completable is a Observable which has to do some task without emitting a value

Observable type Number of values Handlers
Observable 1 or more onNext, onError or onComplete
Flowable Many with backpressure support onNext, onError or onComplete
Single 1 onSuccess or onError
Maybe 1 or nothing onSuccess, or onComplete, or onError
Completable No values onError or onComplete

 

References

 

Posted in java, Programming, rxjava | Tagged , , , , , , , , | Leave a comment

Vertx: Difference between io.vertx.reactivex and io.vertx.rxjava

Each time, when I return to development with Vertx, I have to decide what package to use: io.vertx.rxjava or io.vertx.reactivex? This is a reason, why I created this post.

io.vertx.rxjava package uses RxJava 1. io.vertx.reactivex package uses current RX extension – RxJava 2.

Posted in java, Programming, vertx | Tagged , , , | Leave a comment

On a rest

Pencil sketch:

On a rest

Posted in Photography, Photos | Tagged , , , , | Leave a comment

Snail on branch

Snail on branch:

Snail

Posted in nature, Photography, Photos | Tagged , , | Leave a comment

Initiative Q

 

Initiative Q is building a new payment network and giving away significant sums of their future currency to early adopters. It’s by invite only and I have a limited number of invites. My personal invite link: https://initiativeq.com/invite/HV5PnaYUX

Posted in finance | Tagged , , , | Leave a comment

Initiative Q

Initiative Q is building a new payment network and giving away significant sums of their future currency to early adopters. It’s by invite only and I have a limited number of invites. My personal invite link: https://initiativeq.com/invite/HV5PnaYUX

Posted in finance | Tagged , , | Leave a comment

Из серии “разгоняем цвета”

Flower

Image | Posted on by | Tagged , , | Leave a comment