Josh Kodroff, Code Craftsman

Writings on software development

Barcamp 2015 Talk Slides: Bronze Bullet Architecture

Way back in November, I gave a talk at BarCamp Philly. BarCamp Philly is a local unconference and one of my favorite events in the Philly tech community. If you’re in Philly, or a few hours' drive away, you should definitely check it out. There’s all kinds of talks on all types of subjects, from the technical to the decidedly non-technical.

In the talk I gave, I coined the phrase “Bronze Bullet Architecture” to describe my technical approach to building message-based, domain-driven line of business software, and explained you how my professional experience helped me arrive at this style. I also used Kanye West album covers to denote the various years in my career. Anyway, talk slides follow:

An Elegant Abandoned Cart Email Using NServiceBus

Abstract

Some of the toughest requirements to model in enterprise development are business rules that involve the dimension of time. In this post I’ll show you how to fulfill those types of requirements in an elegant, testable, and scalable way using a message-driven style with NServiceBus.

tl;dr

If you’re familiar NServiceBus and specifically its sagas feature, you can check out the code on GitHub. Of particular interest would be the saga and its tests. There’s also a console app client that will let you play around.

Making Entity Framework More Unit-Testable

Abstract

For developers using Entity Framework, unit testing code that depends on the DbContext class is not the easiest thing. If we’re interested in doing unit testing, we need to be able to use an in-memory (“fake” in Martin Fowler’s terminology) version of DbContext comprised of lists of objects so that our tests do not hit the database. This series of posts takes you through my process in getting to a facade on top of Entity Framework that results in testable code and tests that are fast to write.

The Josh Test – a Sorta-Objective Way to Analyze New Opportunities

I find myself in the incredibly fortunate position of having a skill set that is greatly in demand. I get calls and emails on a near-daily basis from recruiters for all types of jobs. (If you don’t think that having recruiters contact you on a daily basis is a good problem to have, I would advise you to consider the employment circumstances of anyone else who is not a medical or IT professional, i.e. the other 99.999% of the world.) While there’s a lot to like about my current position, it would be foolish to be closed to new opportunities if the right one comes up. But how do I now what “the right opportunity” looks like? My answer: The Josh Test.

It’s High Time to Make Windows Development Cheaper

At work, I use a MacBook Pro and boot into Windows directly using BootCamp. I tried using VirtualBox but key bindings not matching up drove me nuts and I was trying to get a project launched on a tight deadline, so I went with what I knew.

As a reward for launching said project, I got myself a nice new MacBook Pro for home use with a Retina screen, and 16 GB RAM. Professional tools for a professional developer and whatnot.

DDD Lesson – Break Out Your CRUD

In my view, there’s 2 main principles that distinguish Domain-driven design as an approach to solving problems:

  1. All solutions to problems are framed in terms of the value delivered to the stakeholders for the effort required.

  2. The core of the code is a model of the business process, and it evolves¬†with time as the ¬†developers’ understanding of the business with time.