Polyglot Programmer

I’ve been on a something of a language kick lately. Here is, in no order that I can articulate, a list of the languages that I’d like to be fluent in: Assembly Language C C++ Java C# JavaScript TypeScript F# R Go Python Ruby Lisp I’ve actually coded professionally in the following languages: Assembly Language…


To mock or not to mock, that is the question! (or, when to use dependency injection)

When unit testing, I often use the terms “mocking” and “dependency injection” interchangeably. Now, I know that they are different, however, given that a mock object assumes some sort of dependency injection is involved, I hope you’ll forgive me. However, dependency injection without mocking implies that you’re not unit testing, and that’s just plain wrong….