Week Notes 22#39 (3 mins read).
What happened in the week of 2022-09-26?
Week Notes 22#39 (3 mins read).
What happened in the week of 2022-09-26?
Analysing our dependency trees to determine where we should send Open Source contributions for Hacktoberfest (8 mins read).
How we (at Deliveroo) are using GitHub Advanced Security's dependency scanning functionality to determine what our most popular dependencies are, and whether we can find any Open Source contributions for the month of Hacktoberfest.
Week Notes 22#38 (4 mins read).
What happened in the week of 2022-09-19?
Lessons learned since posting my salary history publicly (8 mins read).
What I've learned in the year since posting my salary history publicly.
Week Notes 22#37 (3 mins read).
What happened in the week of 2022-09-12?
Week Notes 22#36 (4 mins read).
What happened in the week of 2022-09-05?
Week Notes 22#35 (5 mins read).
What happened in the week of 2022-08-29?
Gotcha: testable examples in Go need an output
comment (2 mins read).
Beware that your Go Example
tests may not actually be running.
Week Notes 22#34 (4 mins read).
What happened in the week of 2022-08-22?
Week Notes 22#33 (4 mins read).
What happened in the week of 2022-08-15?
Introducing the tidied
tool, to more easily check whether go mod tidy
has been run (2 mins read).
Why I've created a command-line application called tidied
to check go mod tidy
has been run.
Week Notes 22#32 (2 mins read).
What happened in the week of 2022-08-08?
Converting HTTP requests to Wiremock stubs, with Go (2 mins read).
How to take an HTTP request and convert it into a Wiremock JSON mapping, on the command-line, in Go.
The first script I write in a new job: gg
(2 mins read).
Why writing a script to easily git clone
repos is my first step as a new starter.
Learning a new language, or how I gained familiarity with Go (10 mins read).
How I've eased into a new language, Go, as a Senior Software Engineer, and some initial thoughts on the language.
Week Notes 22#31 (4 mins read).
What happened in the week of 2022-08-01?
Releasing a set of test cases for Content Negotiation (2 mins read).
Introducing a repo for test cases to validate how you're performing server-driven content negotiation.
Releasing a Go library for content-type negotiation (2 mins read).
Introducing a new Go library for performing server-driven content negotiation.
Week Notes 22#30 (4 mins read).
What happened in the week of 2022-07-25?
Using generics to get a pointer to any type, in Go (1 mins read).
How to use Go generics to create a helper method for getting a pointer to any type.
Week Notes 22#29 (2 mins read).
What happened in the week of 2022-07-18?
Optional configuration for configuring Go code (2 mins read).
How to use optional types to allow configuring your library's Go code.
Week Notes 22#28 (4 mins read).
What happened in the week of 2022-07-11?
Building a Go RESTful API with design-first OpenAPI contracts (6 mins read).
How to use oapi-codegen
to generate an RESTful API using design-first OpenAPI and code generation.
Week Notes 22#27 (3 mins read).
What happened in the week of 2022-07-04?
Pointing to a fork of a Go module (1 mins read).
How to pin your Go modules to a given fork of a repository.
Week Notes 22#26 (3 mins read).
What happened in the week of 2022-06-27?
Running Go tests in Parallel (2 mins read).
How to get Go tests to run in parallel for speed.
Ignoring slow-running tests in Go (1 mins read).
How to use Go's -short
testing mode to avoid running slower tests.
Shipping services more quickly with design-first OpenAPI contracts (8 mins read).
How using OpenAPI has led to being able to ship a new service more effectively, by removing the need to write scaffolding, and instead focus on the business logic.
Week Notes 22#25 (2 mins read).
What happened in the week of 2022-06-20?
Automating boilerplate/scaffolding code with custom code generation in Go (4 mins read).
How to use Go's code generation tooling to add custom code generation to your project.
Describing a multi-value querystring parameter in OpenAPI (1 mins read).
How to define a querystring parameter that has multiple values, in OpenAPI.
Stubbing out the Go http.Client
to test an HTTP HandlerFunc
(2 mins read).
How to write a unit test to validate your router's HTTP handlers work, by stubbing out the http.Client
implementation.
Week Notes 22#24 (3 mins read).
What happened in the week of 2022-06-13?
Automagically determining feeds provided for a given URL on the command-line (1 mins read).
Creating a command-line application to discover feeds for a given URL.
Managing your Go tool versions with go.mod
and a tools.go
(3 mins read).
Better dependency management for your tools and without needing to go install
the tools before executing them.
Week Notes 22#23 (4 mins read).
What happened in the week of 2022-06-06?
Setting up OpenAPI Contract Tests with a Rails and RSpec codebase (2 mins read).
How to run OpenAPI-driven contract tests against a Rails API.
Week Notes 22#22 (4 mins read).
What happened in the week of 2022-05-30?
Only testing your public API in a Go package (3 mins read).
How to test only exported parts of a package in Go.
API Design tip: use objects for similar data (1 mins read).
Why you should use objects to nest similar data in JSON responses.
Idea for Open Source/Startup: monetising the supply chain (2 mins read).
An idea I've had for how to better distribute support to Open Source libraries in the supply chain for your software.
Week Notes 22#21 (2 mins read).
What happened in the week of 2022-05-23?
Describing JSON Patch operations with OpenAPI (2 mins read).
How to describe your JSON Patch endpoints using OpenAPI.
Weirdness with git diff-index
showing 1 file changed, 0 insertions(+), 0 deletions(-)
(1 mins read).
Something weird I hit last week with git diff-index
, which shows 1 file changed, but no changes.
Week Notes 22#20 (2 mins read).
What happened in the week of 2022-05-16?
Introducing a library for OpenAPI contract testing with Go's net/http
package (2 mins read).
Creating a Go library that can verify net/http
handlers implement an OpenAPI contract, for use with testing.
Testing Go net/http
handlers (1 mins read).
How to write unit tests to validate an HTTP handler.
Week Notes 22#19 (5 mins read).
What happened in the week of 2022-05-09?