By devin, 17 June, 2021

My team is currently migrating one of our Java codebases from junit 4 to 5, and with it we lost two of our favourite features: mocking static methods with PowerMock, and Theories. I'll leave Theories alone in this post so I can focus on PowerMock.

PowerMock has served us well but has some drawbacks, mainly around its slow performance and arcane errors due to the way PowerMock changes your classloading.

By devin, 18 January, 2020

Last December, I needed to do a long drive across Southern Ontario to pick up my girlfriend. This was meant to be a 12 hour round trip by car covering roughly 1000km.

View of my route from Elora to Pembroke and back on Google Maps

By devin, 12 May, 2019

I love thinking about human psychology. In particular, I love thinking about things humans do that are non-obvious, but pervasively drive their behaviour.

I can think of two general principles that drive a great deal of human behaviour, yet are non-obvious.

By devin, 26 March, 2019

I have to start this post with some self-reflection. It's easy to believe that only stupid people get swept up in cults. I heard a few years ago, however, that in fact intelligent people are in fact more likely to join a cult (article, reference).

As a practising Christian, I've therefore spent a lot of time considering whether I'm just another naive cult member.

By devin, 15 December, 2018

When I was younger I believed in the Internet. I believed the Internet was a brave place, where knowledge and culture was disseminated freely. I saw it as a place where you could tap into unparalleled knowledge and improve yourself.

By devin, 21 November, 2018

I want to explain a theory about how to successfully share the good news. First I'll talk generally about what I've heard from people I know about their experience with the church. Then I'll talk about three of my Christian friends's experiences in their churches growing up. I'll talk about how the good news was shared with me, and then I'll tie it back to my new theory of how to share the good news ethically and successfully.

Before I talk about my life, I should share the Parable of the Sower (explanation here):

By devin, 5 October, 2018

I love the feeling of reading a great Bible passage and having that chilling realization that I've still got so much to learn in life. It's called being "convicted". I associate it with positive feelings by now, since I know that if I follow the train of thought, and make some changes in my life, I'll feel so much better later.