Golang Project Structure

Tutorials, tips and tricks for writing and structuring code in Go (with additional content for other programming languages)

James Smith (Golang Project Structure Admin)

Author

Rob Pike’s Go Proverbs (Part Two)

Rob Pike, one of the creators of the Go programming language.

This is the second part of a three-part series discussing the Go proverbs that were devised by Rob Pike. (The original post is available to read, if you haven’t already. UPDATE: And the third and final post is now available to read too.) gofmt’s Style Is No One’s Favourite, Yet gofmt Is Everyone’s Favourite The […]

Should Go Be Used for Machine Learning?

An computer rendering of a brain made from metal with wires and lights attached. It is supposed to symbolize artificial intelligence and machine learning.

Go is widely known for its simplicity, concurrency model and performance in large-scale distributed systems. But when it comes to machine learning (ML), the most dominant programming languages have traditionally been Python, R and C++. These languages have become almost synonymous with machine learning due to the wide range of mature libraries, frameworks and communities […]

COBOL in the 21st Century

Grace Hopper, an American computer scientist, mathematician, and United States Navy rear admiral.

This blog post will attempt to provide a basic introduction to the COBOL programming language for complete beginners. We will cover the language’s history, syntax, features and applications. Then we will provide some practical examples to help you understand better how COBOL code works. What Is COBOL? Common Business-Oriented Language, known usually as COBOL, is […]

Choosing a Good Programming Chair

The Herman Miller Aeron Chair is a good ergonomic programming chair for those seeking the best quality.

Professional programmers spend most of our working lives sitting in front of a computer, focusing intently on the monitor and typing away at the keyboard. Even hobbyist coders can get engrossed in a difficult project, losing track of time as they dive deep into long lines of knotty and complicated code. With so many hours […]

How to Create a Responsive Web Design With Bootstrap

The Bootstrap logo with the text "Bootstrap" beneath. Both the logo and the text are purple.

In the current online ecosystem, having a responsive web design is no longer an optional extra — it’s essential. But designing for lots of different devices and screen sizes can be a challenge. Writing CSS media queries for each screen size, troubleshooting layout issues and ensuring cross-browser compatibility can very easily become time-consuming tasks. That’s […]

How to Test Code in Go

A health worker in a laboratory is performing a medical test using high-tech scientific equipment.

Testing should be considered an essential part of the software-development process, because it helps to ensure that our code works as expected when handling a wide range of reasonable values as input. So today we are going to look at how to write tests in Go, using the built-in syntax, and how to run the […]

Let’s Do the Knuth Shuffle

A croupier in a casino shuffling a deck of cards by hard.

I know it sounds like a funky dance move, but the Knuth shuffle is actually an elegant method for randomly rearranging the elements in an array — or, as we Gophers tend to prefer, a slice. The algorithm is very easy to understand and implement, which means that you should be able to use it […]

Overview of JavaScript Promises

Two girls performing a "pinky promise" ritual with their hands.

Have you ever found yourself writing JavaScript code that becomes difficult to read because there are so many nested callbacks? Or do you get frustrated when your browser becomes unresponsive as it struggles to perform long-running operations in client-side code? Well, promises are designed to solve those problems! In this post we will discuss exactly […]