Have you ever had the problem where you submit a pull request and the diff is much larger than it should be?
I’m a gopher by nature, so I expect consistent styling and linting in my codebases. More importantly, I don’t like to think about styling.
Python is commonly seen as the AI/ML language, but is often a dull blade due to unsafe typing and being slow, like really slow.
In applications that are i/o heavy, it can get clunky to synchronously execute high-latency functions one after the other.
Sorting is a common task in programming, and for that reason, most languages have a default sorting algorithm in their standard library.
It’s a fairly common scenario to subscribe to a Rabbit queue and process messages before acknowledging receipt.
Go is strongly typed, and with that, we get many options for simple variable types like integers and floats.
Loops in Rust aren’t the same as standard C-style languages. The syntax is different and there are some powerful options that make looping easier.
Let’s take a look at some of the common pitfalls with the keywords let and mut.
Introduction 🔗 In a previous tutorial we showed how you can get basic information on all quantum devices using backend_overview().
One of the primary goals of the Go programming language is to make concurrency simpler, faster, and more efficient.
Go and Rust are two of the hottest compiled programming languages, but which is more popular, Go or Rust?
Data integrity refers to the accuracy, legitimacy, and consistency of information in a system. When a message is sent, particularly using an untrusted medium, data integrity provides us with confidence that the message wasn’t tampered with.
The Go standard library has a really cool type - Ticker. Tickers are used when you want to do something at a regular interval, similar to JavaScript’s setInterval.
White-box cryptography combines methods of encryption and obfuscation to embed secret keys within application code. The goal is to combine code and keys in such a way that the two are indistinguishable to an attacker, and the new “white-box” program can be safely run in an insecure environment.
In microservice architectures, it’s fairly common to have a project that includes different worker types. A Makefile can be used to manage the creation of multiple programs, but the Go toolchain has a tool that can be used as well, go generate.
An anonymous struct is just like a normal struct, but it is defined without a name and therefore cannot be referenced elsewhere in the code.
What is Superdense coding? 🔗 Superdense coding is a quantum communications protocol that allows a user to send 2 classical bits by sending only 1 qubit.
time.Time is the perfect choice for handling times in Go in most cases, it even comes in the standard library!
Go is a strongly typed language, which means at any point a developer should know exactly what type of value they are dealing with.
I’ve often seen, and have been responsible for, throwing code into packages without much thought. I’ve quickly drawn a line in the sand and started putting code into different folders (which in Go are different packages by definition) just for the sake of findability.
time.Time makes dealing with dates and times in Go a breeze, and it even comes bundled in the standard library!
Golang is King when it comes to concurrency. No other language has so many tools right out of the box, and one of those tools is the standard library’s sync.
Interfaces in Go allow us to treat different types as the same data type temporarily because both types implement the same kind of behavior.
Errors in Go are a hot topic. Many newcomers to the language immediately level their first criticism, “errors in go are clunky!