Full Width [alt+shift+f] Shortcuts [alt+shift+k] Open Links Directly Enable Read Mode [alt+shift+r] Grayscale [alt+shift+g]
Sign Up [alt+shift+s]

Go - Bitfield Consulting

1

ThisWebHost is a hosting provider for Wordpress blogs & other internet stuff from the UK (since 2008). Try ThisWebHost.

advertise here
Go - Bitfield...
Fuzz tests in Go Fuzz testing is Go’s clever way of generating new test inputs that you didn’t think of—and that...
3 weeks ago
8
3 weeks ago
Fuzz testing is Go’s clever way of generating new test inputs that you didn’t think of—and that may flush out some hidden bugs. Stand by for things to get a little fuzzy!
Go - Bitfield...
The adapter pattern in Go How do you test a database without a database? Don't worry, this isn't one of those Zen puzzles. I...
2 months ago
4
2 months ago
How do you test a database without a database? Don't worry, this isn't one of those Zen puzzles. I have something more practical, but equally enlightening, in mind. Let’s use the adapter pattern to solve the riddle.
Go - Bitfield...
The Tao of Go What is the Tao of Go, and how can we work with it, like a surfer going with the waves instead of...
a month ago
4
a month ago
What is the Tao of Go, and how can we work with it, like a surfer going with the waves instead of struggling against them? By being kind, simple, humble, and not striving; here’s how.
Go - Bitfield...
A generic Set type in Go To celebrate the first anniversary of generics in Go, let’s build something practical and useful:...
2 months ago
4
2 months ago
To celebrate the first anniversary of generics in Go, let’s build something practical and useful: a generic Set type, and add some neat methods to it. Ready for fun?
Go - Bitfield...
Rust vs Go in 2023 Which is a better choice for 2023, Rust or Go? Which language should you choose for your next...
4 months ago
4
4 months ago
Which is a better choice for 2023, Rust or Go? Which language should you choose for your next project, and why? How do the two compare in areas like performance, simplicity, safety, features, scale, and concurrency?
Go - Bitfield...
A career ending mistake As software engineers, we're constantly making detailed, elaborate plans for computers to execute....
4 months ago
4
4 months ago
As software engineers, we're constantly making detailed, elaborate plans for computers to execute. Isn't it weird that we rarely give a moment's thought to the program for our own careers?
Go - Bitfield...
Comparing Go error values Usually what matters about an error is that it’s not nil, but what if we want to know whether it’s...
6 months ago
4
6 months ago
Usually what matters about an error is that it’s not nil, but what if we want to know whether it’s some specific error value? For example, in a test? Let’s look at some of the right and wrong ways to do that.
Go - Bitfield...
Testing errors in Go How should we test errors in Go? And how does the need for this testing influence the way we...
7 months ago
4
7 months ago
How should we test errors in Go? And how does the need for this testing influence the way we construct, handle, and pass around errors within our Golang programs?
Go - Bitfield...
Write packages, not programs Go has a great standard library. What if we think about our work not merely as building one-off...
3 months ago
3
3 months ago
Go has a great standard library. What if we think about our work not merely as building one-off programs, but instead contributing packages to the universal Go library?
Go - Bitfield...
Best Go books for 2023 What are the best Go books for 2023? Read my (relatively) unbiased recommendations for the Go...
5 months ago
3
5 months ago
What are the best Go books for 2023? Read my (relatively) unbiased recommendations for the Go books you should absolutely buy and read right now, whether you’re a beginner or expert Gopher.
Go - Bitfield...
Standalone test scripts Wouldn't it be nice if we could run test scripts directly from the command line? The standalone...
5 months ago
3
5 months ago
Wouldn't it be nice if we could run test scripts directly from the command line? The standalone testscript tool does exactly that. Let’s see how to use it to create simple, self-contained issue repros.
Go - Bitfield...
Random testing in Go Choosing good test cases for our Go programs can be a bit hit-and-miss. What if we could automate...
a month ago
3
a month ago
Choosing good test cases for our Go programs can be a bit hit-and-miss. What if we could automate that process? Let’s talk about randomisation, property-based testing, and Go’s built-in fuzz testing feature.
Go - Bitfield...
From packages to commands In Part 2 of a series about writing packages, not programs, we see how to test a package that...
3 months ago
3
3 months ago
In Part 2 of a series about writing packages, not programs, we see how to test a package that prints to the terminal, and use the result to build our “hello, world” CLI tool.
Go - Bitfield...
The gentle art of code review Could we give and receive code reviews with kindness, gentleness, humility, and compassion? Can we...
4 months ago
3
4 months ago
Could we give and receive code reviews with kindness, gentleness, humility, and compassion? Can we make a point without making an enemy? Let’s go line by line.
Go - Bitfield...
Error wrapping in Go Distinguishing between specific error values and types is easy in Go, thanks to the (relatively)...
5 months ago
3
5 months ago
Distinguishing between specific error values and types is easy in Go, thanks to the (relatively) new errors.Is and errors.As functions. Let’s talk about what they do, when and how to use them, and how to know which one is appropriate.
Go - Bitfield...
Files in test scripts The txtar format is an ingenious way to supply arbitrary files and folder structures to test...
7 months ago
3
7 months ago
The txtar format is an ingenious way to supply arbitrary files and folder structures to test scripts. We’ll also learn about file management, simulating standard input, and breaking up scripts into phases.
Go - Bitfield...
Conditions and concurrency in test scripts Continuing our series on the testscript package, we look at some advanced techniques in test...
6 months ago
3
6 months ago
Continuing our series on the testscript package, we look at some advanced techniques in test scripts such as conditions, concurrency, and managing environment variables.
Go - Bitfield...
Testing CLI tools in Go The testscript package gives us an easy way to test the behaviour of a Go CLI tool, by executing...
8 months ago
3
8 months ago
The testscript package gives us an easy way to test the behaviour of a Go CLI tool, by executing it as an independent binary. Let’s see how.
Go - Bitfield...
So you're ready for green belt? If you’re a BIT student, are you ready for your green belt test? If you’re studying independently,...
8 months ago
3
8 months ago
If you’re a BIT student, are you ready for your green belt test? If you’re studying independently, check your Go skills and see whether you’d pass this demanding certification.
Go - Bitfield...
Executable examples in Go Did you know that Go lets us provide executable code examples as part of our documentation? It’s...
4 months ago
3
4 months ago
Did you know that Go lets us provide executable code examples as part of our documentation? It’s pretty neat. Let’s take a tour of this useful feature and see how it works.
Go - Bitfield...
Functional programming in Go Thanks to generics, there are some interesting new ways to program in Go. This article explains...
8 months ago
3
8 months ago
Thanks to generics, there are some interesting new ways to program in Go. This article explains how we can use functional programming techniques like Map, Filter, and Reduce, and what kind of problems they might help us to solve.