Last year, there was a hot topic on Twitter about how relevant RxJava was with modern Android development, which garnered a pretty interesting debate with some convincing arguments from both sides.
The claim was that given the popularity of modern frameworks, RxJava is too bloated and should be removed. The debate was even given a catchy title, which prompted a panel discussion at Droidcon Berlin last year, with Hasan, Ivan, x, and myself.
The purpose of this article isn’t to go into detail on how to migrate from one framework to the other, or whether one is better than the…
Much of our responsibility as software engineers is based upon problem solving, we are required to use the our knowledge of available tools, and our experience, to find the most appropriate solution to a given problem.
That’s what I’d like to focus on here, on finding the most appropriate solution.
But quite often, we can feel like the solution might not be “clever” enough, and this urge to show off a…
Android Data Binding is a support library that allows us to bind UI components to data sources declaratively rather than programmatically, it’s potentially really powerful and complex, but used effectively it can really cut down on presentation boilerplate.
We started off with Data Binding beta in 2015 when Google announced it after Google IO as a support library that can be used right back down to Android 2.1 which is API version 7, to write declarative layouts and minimise the glue code required to use your application logic in layouts.
With the Android Gradle Plugin 3.1…
I’ve been pretty quiet recently, and that is in half due to my own business, but recently my uncle had died, normally I would try not to make this type of thing public, but my uncle was an extraordinary man.
Jamie, was an extraordinary man, because he always shared an extraordinary passion, curiosity, and genuine awesomeness, and he shared it with everybody.
I remember when he took me to the nearby dirt hill when he liked to motorcycle, I remember when he used to help me with my computer problems (no matter the hour!), …
For the last few months I’ve been making my way through the Udacity VR Nanodegree coursework, hoping to complete it by the end of the year.
One of the projects for the course is to design, test, complete and most importantly document the process to completion, with an emphasis on the journey from day one to submission.
Overall the concept of the game was relatively simple, following the mechanics you can expect from a Simon Says game, though there were a number of unique considerations that you would have to make.
Designing for VR is much different than other environments…
Early on in my career, you could say I had what you might like to call a mentor, we were friends, we still are, and naturally he taught me a few things.
Things like how to be taken seriously in the workplace as a young developer, how to deal with office politics, but also something quite significant, which has stuck with me since then.
Something that I’ve always believed to be his mantra, to, as he would put it, “fucking own it”.
At first, I believed this to just be his fervour, he was pretty enthusiastic; but I started applying…
Last month, I went into detail about how to use the recently released Dagger 2 Android modules, and how you can make your injection code much more concise.
Google have gone through a lot of effort to enable developers to use Dagger with very little integration and more importantly on how to use a common injection paradigm without the injection target being concerned with how it is being provided with it’s necessary dependencies.
The fundamental actor in this scenario is the
AndroidInjector class which can target different elements of an Android application such as Activities, Fragments, and Services.
Many of the articles I write tend to involve application structure or architectural design patterns; and one of the most recurring topics I tend to visit is that of dependency injection.
Dependency injection is probably one of the most important topics of modern application development, whilst often overlooked as a necessity, it allows us to build highly scalable, powerful applications and platforms.
Dependency inversion works seamlessly with many other design principles and in many ways facilitates them, most specifically single responsibility. Effective dependency injection is achieved by providing dependencies through the constructor, usually as interface types, thereby allowing the class…
Modern day development can be one of the most tasking professions around, but without a doubt also one of the most rewarding. Amongst the trialling tasks we must go through each day, one of the most arguably difficult necessities is how we name our types.
This is partly due to the different naming conventions that come into play when using multiple words, underscores, hyphen, camel-case. Though we usually have code style guidelines to enforce a consistent use, this doesn’t really address the original problem.
It can be often overlooked, but naming is essential for the readability of code, how you…
The concept of dependency injection is a relatively simple one, and can usually be adhered to with a small set of rules when writing your code.
Specifically, avoid creating new instances of objects within your classes, and opt to have the instance provided through the class constructor. This allows your class to focus on the key operations without having to worry about the state or creation of it’s dependencies.
This means that your class will be small, concise, readable, and most importantly, easily maintainable since it only contains the logic required to perform the necessary operation.
@GoogleDevExpert for Android, enthusiastic speaker, lead engineer @Scout24 , Kotlin aficionado, spends more time travelling than working (he/him)