Jake’s Micro-Blog

see also https://jakecoffman.com

  • Unit Testing

    A unit test is a test that tests a single function with all external dependencies mocked or faked.

    Unit testing can either be valuable or be a detriment to the code base, depending on what is being tested.

    Read more…
  • Server-Side Hydration Anti-Pattern

    When designing and implementing a REST API in a service-oriented or microservice architecture you may be tempted to fetch remote objects so the UI doesn’t have to fetch them individually later. This is often called hydration or inflation.

    I will now try to convince you that this is an anti-pattern to hydrate server-side.

    Read more…
  • home Wireguard setup

    Here’s a quick guide to setting up Wireguard to connect your Android phone to your home network.

    Read more…
  • simple Jenkins-in-Docker setup

    I set up my home lab again with a new hard drive and decided to host Jenkins in Docker. This page details how to run Jenkins in a container, but the instructions lacked specifics of how to get things going on a single box.

    Read more…
  • Guacamole Client ported to Go

    I was able to open source some work I did at WWT recently. It is a port of the Apache Guacamole Client to Go: https://github.com/wwt/guac The Apache Guacamole project describes itself better than I could: Apache Guacamole is a clientless remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH. We call it clientless because no plugins or client software are required. Thanks to HTML5, once Guacamole is installed on a server, all you need to access your desktops is a web browser.

    Read more…
  • stack traces rule

    I’ve worked with a lot of languages and let me just say that having a big fat stack trace when something goes wrong is amazing. Java does this really well. Not having a stack trace automatically like in Nodejs or Go is a really bad experience. I’m forced to log every time there is a potential error in case a problem happens in production. You guys that have only ever written JavaScript don’t know what you’re missing!

    Read more…
  • first post

    I’ve tried starting a blog up about a million times and I usually don’t post anything and delete it. This time I’ll try to make it stick by keeping it a “Micro-Blog” ala Twitter. And with that…