Book Review - Elegant Objects Vol 1

A colleague brought up Elegant Objects (Vol 1) [https://www.amazon.com/Elegant-Objects-1-Yegor-Bugayenko/dp/1519166915/] by Yegor Bugayenko; suggesting someone read it and see if it's worth while for those looking trying to follow best Object Oriented Programming/Design practices. I can read through books pretty quickly; I…

Android HackerNews - Interactive Item

We're at the point we need to do something with the Story we're displaying. Or the job. Either one. My thoughts on this is to have two actions. A tap and a swipe. The swipe is going to require a change in the list itself (I…

My Thoughts: Unit Tests

In an earlier post; Design & Development Principles - XP - Keyboard Circle [https://blog.quantityandconversion.com/2017/04/02/design-development-principles-xp-keyboard-circle/] ; which would be a couple months ago by the time time this goes live; I talk about doing TDD and the benefit it provides. There I mention that it&…

RabbitMq - First Hops

Get it, "Hops", 'cause "Rabbit". They "hop". HAH! ... I've started writing some code to explore an idea I've had bubbling around for... I think close to two years now. It's undergone a number of iterations, and discussions…

The Hotel Pattern

Welcome to the Hotel! The Hotel pattern is a UI pattern I've started using based off a few things. A big one is my disdain of existing UI pattern and the poor Object Oriented Design patterns they encourage and fascilitate. Another is the focus on software craftsmanship and…

My Thoughts: Slow Tests are Bad Tests

> My tests are slow! They were slow anyway... Part of the Ruthless Refactoring I've been doing while working on the HackerNews App has been to improve the performance of the unit tests. I easily shaved off a second from the tests during the "Clean Architecture"…

Android HackerNews App : Refactor to Clean Architecture

A philosophy I like and have made a(n unknowingly) passive effort to implement before is called "Clean Architecture". It's the idea of an application having dependencies that flow "outward". Go read The Clean Architecture [https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.…

HackerNews Android - Let's not crash

As discovered in our last session - Opening a lot of connections breaks things. The creation of the OkHttpClient is done in HackerNewsNetwork#getClient... ugg... A get. Ruthless refactoring! As I was saying; the creation is done in HackernewsNetwork#httpClient. private OkHttpClient httpClient() { return interceptorObj == null ? new OkHttpClient() : new OkHttpClient(…