Previously, I was speaking about Docker build automation with Rultor, where I explained how to build docker-images and push them to registry after release approve. Now I’ll show how to deploy these images to staging environment of Kubernetes cluster with one comment on GitHub ticket.
in java has two methods to check object equality:
Object.equals(Object other) and
Often developers override these methods so they can store
Object subclasses in hash-based collections
I don’t like this design where each object can be
compared for equality with any other object, but in this post
I’ll not criticize it, rather I’ll try to demonstrate how to
implement it correctly for object oriented code.
We have a lot of caching libraries for Java, just take a look at guava or apache-commons JCS. But I don’t really like them because of procedural caching approach, this is why I started new caching library for OO code, here I’ll try to explain main ideas.
Rultor is a great bot to automate development life-cycle: just post a comment in a GitHub ticket and your project will be released. Also it can merge pull-requests and deploy code to production but now I want to speak about how to release a Docker image.
How to split platform depended views from domain logic and be able to unit-test them separately? There are few ways to do it, one of them is MVP (Model-View-Presenter) pattern. It gives us many advantages in Android system but has one major drawback in OOP world - a presenter.
Let’s speak about common domain objects and how they
are usually implemented. The tendency here is to define a
bunch of accessors to share object’s state and returning
as an indicator of empty value. In this post I will try to refactor one of
this objects to fully encapsulated one!
It’s an open secret that almost every Android application
stores something in a database. Nearly always it is SQLite.
In my practice I’ve tried many ways to work with sqlite in Android: it was some ORM and active-record libraries, ContentProvider’s, even some wrappers for native
But with none of them I was satisfied.