How to Undo Most Recent Local Git Commit

Git is a version control system that allows developers to track changes to their codebase and collaborate with others. One of the useful features of Git is the ability to revert changes that have been made to the codebase. In this article, we will look at how to undo the most recent local commits in Git. There are several ways to undo commits in Git, and the method you choose will depend on your specific needs....

February 28, 2023 · 2 min · 378 words

Implement Desing Patterns With Golang

Design patterns are reusable solutions to common software design problems. They are a way to structure and organize code in a way that makes it easier to understand, maintain, and extend. In this article, we’ll explore how to implement some popular design patterns in Go. Singleton pattern The singleton pattern is a creational design pattern that ensures a class has only one instance and provides a global access point to it....

February 21, 2023 · 4 min · 799 words

Nats Messaging With Golang

NATS Messaging with Golang NATS is a high-performance, lightweight messaging system that is widely used for building distributed systems. It is designed to be simple, fast, and easy to use, making it a popular choice for many developers. In this tutorial, we will learn how to use NATS with Golang to send and receive messages. Setting up NATS To use NATS with Golang, we first need to install the NATS server and client libraries....

February 13, 2023 · 3 min · 511 words

Build a Sudoku Solver in Golang

Sudoku Solver in Go: A Beginner’s Guide and Optimization Techniques The game of Sudoku has always been a popular pastime for many. Whether you’re an absolute novice or a seasoned veteran, the challenge of filling out a 9x9 grid with digits so that each column, each row, and each of the nine 3x3 subgrids contains all of the digits from 1 to 9, is an appealing task. Today, we’re going to see how we can automate this process in Golang, and how we can optimize it using memoization techniques....

February 1, 2023 · 4 min · 830 words

Socket Messaging With Golang

Socket messaging allows two or more processes to communicate with each other over a network by sending and receiving messages through a socket connection. In this article, we’ll look at how to use Go to implement socket messaging between two processes. Setting up the Socket Server The first step in implementing socket messaging is to set up a socket server that listens for incoming connections and processes incoming messages. To do this in Go, we’ll need to use the net package to create a socket server and handle incoming connections....

January 29, 2023 · 3 min · 485 words