My Holiday Wishlist for the New JetBrains AI AssistantLast week, JetBrains - the makers of the world's best IDEs and WebStorm - announced their competitor to GitHub copilot: the JetBrains AI. This adds another combatant to the battle for dominance in the AI-assisted software development industry. It's g...Dec 21, 2023·4 min read
Advanced Testing for Golang RESTful EndpointsIn my last post, I took a look at how to test simple REST handler functions - functions that be tested by passing mock request and response pointers, without relying on the RESTful library to do a lot of heavy lifting. This time, I'm going to dive in...Dec 19, 2023·6 min read
Unit Testing Simple REST Handler Functions in GolangOne of the hardest things to unit test has always been HTTP endpoints. Over the years, I've thought up some creative ways to do so, some of which I'm not proud of. When we add open-source RESTful libraries into the equation, things become even harder...Dec 15, 2023·7 min read
Mocking Imported Libraries in Golang Unit TestsIn my last post, I covered mocking using interfaces. In this one, I'll take that a step further and show how we can ensure that we're able to mock every imported lib in our tested functions by using private variables. tl;dr: you can check out a repo ...Dec 12, 2023·5 min read
Easy Mocking in Golang Unit Tests with InterfacesMocking is one of the most common practices in unit testing. In Golang, we can use Interfaces to make mocking a breeze, so that we can cover our code easily and get the most coverage possible. Background One of those topics that always has a lively d...Dec 8, 2023·4 min read
Conditional Resource Provisioning in OpenTofu ModulesIn a previous post, I briefly covered how to write conditionals in OpenTofu's HCL syntax. You can check it out here. There are some times when conditionals are necessary, and for me, that's usually when I'm writing reusable modules that provision res...Dec 5, 2023·3 min read