My Thoughts: Double Constructor for Dependency Injection

I know I'll have disagreement on this; and I'm happy about that. One of the mechanisms I use for... what I can only call "Dependency Injection" or "Inversion of Control"... is to have multiple constructors. In the ideal I just have a single constructor. This constructor takes all the arguments... or in the example below; an argument. class MyClass{ public MyClass(Thingy thingy){ ... } } This prevents MyClass from having to use [Read More]

UWP HackerNews: Network Items

I'm back to the UWP app after not too long of a break; and we really just need to get some things happening. I guess I'm more working to plan out the flow of the project. This is now fairly similar to a project for work I'll be helping lay the foundations of. I've got the idea behind the core network functionality. Honestly, for the next app; I'm going to [Read More]

Android HackerNews - Trying to get to a Story

I'm not sure where this post is going to go. I'm checking my pre-planned posts and ... there's none for the Android HackerNews Reader. This is kinda sad as I was enjoying being able to just sit down and start up on the project. Now I've gotta THINK... bleh... terrible. Anyway - Thinking about what I've done... and of course LOOKING AT THE CODE - I see that I've still gotta [Read More]

HackerNews UWP : Getting Some Data

When we last left our brave little app... And if it's trying to be on the windows platform; you know it's indeed brave - It had just configured it's network layer and is looking to expose it to the wider world! I spent a few hours staring at the black magic of Refit and found how it's creating the instantiated interface. And that it'd be a bit of a pain [Read More]

Book Review - Elegant Objects Vol 2

Much like Volume 1; Elegant Objects Vol 2is fantastic. It didn't impact my mental model of how to develop software as much as Vol 1. This Vol is more about the things that are destructive to the desired programming paradigm described in Vol 1. It's the "CAUTION - HERE BE DRAGONS!" for what the industry uses as standard practice and patterns. I didn't put nearly as many sticky notes into [Read More]

HackerNews Android - Formatter

A comment on my Early Thoughts: Object Oriented Encapsulation post brought up an excellent view about how to decouple a class from it's display mechanism. I'm on board with this idea. It helps keep the objects to their single responsibility. My first thoughts on how to do this is using an inner class for the Item object; as it'll have access to the internals without exposing them. Next would be [Read More]

Book Review - Elegant Objects Vol 1

A colleague brought up Elegant Objects (Vol 1) 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 want to do the best OOP; Figured it'd be a worthwhile endeavor. I haven't found a good book on how to write actual Object Oriented Design. I've gone through [Read More]

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 think). A tap is pretty easy, we'll do that first. Part of this task is going to be to build a new wrapper for [Read More]

My Thoughts: Unit Tests

In an earlier post; 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's not about the tests. It's about the mindset that the tests support. My favorite way to phrase this is; The least important thing about TDD, is the test. [Read More]

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 with a few people. It's finally reached a point I can start exploring the idea with code, seeing how it wants to be built. I say wants, much like other posts where I [Read More]