|
🔗 Stories, Tutorials & Articles |
|
|
|
Composite design pattern in GoLang |
|
|
This article discusses the Composite design pattern in software design, which is used to allow a composite type and the type that the composite type is composed of (also known as a singular type) to expose the same method interface to the caller. An example of this pattern is a directory in a file system, where a directory is composed of multiple other directories (composite type) and files (singular type), and both types have the same method interface for create, view, and delete actions. The article also provides code examples in Go to demonstrate how to implement the Composite design pattern using an interface and a list of components. |
|
|
|
|
|
|
Golang is almost Perfect |
|
|
This article discusses the author's experiences using the Go programming language for building cloud-native software, distributed systems, and concurrent and parallel systems. The author argues that Go is well-suited for these tasks due to its strong developer toolchain, good documentation, built-in fuzz testing support, and language features such as native concurrency and parallelism, fast compile times, and the ability to easily exchange data between threads. The article also discusses some of the challenges that the author has encountered while using Go, including a steep learning curve and the lack of some features that are commonly found in other programming languages. Overall, the author has a positive view of Go and believes that it is a powerful and expressive language for building concurrent and distributed systems. |
|
|
|
|
|
|
Golang is evil on shitty networks ✅ |
|
|
This article discusses issues with the performance of the Git Large File Storage (LFS) system when used over a wireless network with the Go programming language. The author experienced extremely slow upload speeds and high levels of packet loss and duplication when using Git LFS over a wireless network, leading to the conclusion that the default setting for the Nagle's algorithm in the Go programming language may not be optimal for use over poor quality networks. The article suggests that explicitly setting the TCP_NODELAY option in the Go programming language may improve the performance of Git LFS and other programs when used over poor quality networks. |
|
|
|
|
|
|
Implement Redis in Go with a Simple Example |
|
|
This tutorial is about using the go-redis library to interact with a Redis server from a Go application. Specifically, it will cover how to install the go-redis library and use it to set and get keys in a Redis database. The tutorial assumes that you already have some basic knowledge of Redis and are familiar with the concept of in-memory data structures. |
|
|
|
|
|
|
1500 most common data structures and algorithms solutions |
|
|
The article provides 1500 examples of programming problems that are commonly asked in interviews and offers a tool for converting code between different programming languages. |
|
|
|
|