programming
Writing collected under this topic.
GolangUltimate Makefile for Golang
Boost your productivity and save time with ultimate Makefile for Golang projects.
GolangIn-Memory Cache in Go with TTL
Build an in-memory cache in Go: map plus RWMutex, TTL expiry, and a generics version with a typed key and value.
GitSecuring Git: Remove Sensitive Information
Protect your code from security breaches by using BFG tool to remove sensitive information from Git history. Learn how to do it in this comprehensive guide.
GitGitHub Pull Request Template (Copy-Paste, Plus Bitbucket & GitLab)
A pull request template that actually gets used. Copy this one, plus the exact file path for GitHub, GitLab and Bitbucket and what belongs in each section.
GolangGo Naming Conventions: A Practical Guide
Go naming conventions for packages, interfaces, functions and variables. The short names Go actually prefers, the ones to avoid, and why Go rejects long names.
GolangIntroduction to Generics in Go
Learn about generics in Golang, it's benefits and how to implement it in applications.
GolangDependency Injection in Go using Wire
Learn about dependency injection, its benefits and how to implement it in Go services using wire
GolangRule Engines in Go: How They Work
What a rule engine is, the match-resolve-execute cycle, and a working rule engine built with Grule in Go.
GolangWaitGroups in Golang
Learn about WaitGroups in golang and how to use them to perform concurrent operations without blocking the main thread.
GitGit Branch 101
Branching is a new path of development that makes it a lot easier to build features. Learn why and how to use branching in git.
GolangMastering Middlewares in Golang
Learn about middlewares, their use cases and how to implement them in Golang applications
System DesignGuide to Content Delivery Network
CDN is one of the backbone of modern world internet infrastructure. Learn about Content Delivery Network, it's working, types and benefits.
GolangImplementing Enums in Golang
Enums are a way to defined set of constant values. Learn how to implement enums in Go using iota with examples.
ProgrammingComplete Guide to JWT
JSON Web Tokens are a very compact way to carry information. Learn about JWTs in depth, from its structure to when to use it.
System DesignWhat Is a Reverse Proxy? How It Works
A reverse proxy sits in front of your backend and forwards requests to it. Here is what that buys you: TLS, caching, load balancing, and hiding origin servers.
System DesignCAP Theorem Explained
Learn the concept and misconceptions around popular CAP theorem in system design.
GolangIntroduction to Linting in Go
How to lint a Go project: install golangci-lint, pick the linters that earn their noise, wire it into CI, and fix the warnings that actually matter.
System DesignLoad Balancing 101
Complete guide on load balancers explaining the internal working and how does it help in making applications efficient.
GolangUnderstanding Defer In Golang
Learn about defer keyword in golang and how it can help you avoid panics due to bugs.
GolangIntroduction to Goroutines
Understand the basics of concurrency and learn how to work with Goroutines in golang.
GolangUploading Files in Golang with Multipart Request
Learn how to upload files from your client to server as a multipart request in Golang.
ProgrammingStoring JSON in Postgres with Golang
Learn how to store JSON objects in Postgres and how to implement it in Golang.
ProgrammingSticky social share component in HTML
Learn how to build a social media sharing component in HTML and add it to your website.
System DesignGuide to Hexagonal Architecture
Learn how to design efficient application with hexagonal architecture with practical example
DatabasePostgres Constraints
Constraints are line of defense for database. Explore various types of constrainsts in postgres
GolangWorking with Date and Time in Go
Learn how to use time in Golang - Multiple formats, locations and using date.
GitStart your Open Source journey today
Start your OSS journey with intro to GIT. Participate in Hacktoberfest!
GolangImplement Stack in Golang
Learn how to implement stack data structure in Golang (Full code)
GolangGolang Maps: Create, Iterate, Delete
Golang maps explained: how to declare, initialise, add and delete keys, check if a key exists, iterate, and why comparing two maps fails to compile.
LinuxLogrotate: Manage Linux Logs with Examples
Configure logrotate to rotate, compress and prune logs, including a Postgres setup and how to force a rotation.
LinuxHandling terminal outputs with Redirection
Learn how to handle terminal outputs with Redirection and saving it to files
GolangGuide to Environment variables in Go
Learn what are environment variables and how to use them in Go
WebLearn HTTP Status Codes
A tour of HTTP response status codes, what each class means, and when to use which code in your applications.
GitGit tags : Explained
What Git tags are, why and when to use them, and how to start tagging releases in your own projects.
GolangGo with Redis
A practical introduction to using Redis with Golang to make your applications faster with in-memory data storage.
GolangMarshal structs the right way: Golang
Why Golang marshals empty structs into your JSON instead of null, and how to marshal structs the right way.
GolangTransactions on Postgres with Golang
Performing Postgres database operations in Golang with GORM, from basic queries to full transaction support.
ProductivityImprove your productivity with VS Code
Key VS Code features like the integrated terminal, shortcuts, and extensions that improved my everyday productivity.
GolangSessions using Golang and Redis
How cookies and sessions work, and how to implement persistent login sessions in Golang using Redis.
GolangHandle errors the right way — Golang
How to handle errors in golang to make your life easy
GolangUploading images to AWS S3 in Golang
In this tutorial I cover how to upload, fetch and manage other operations for objects on AWS S3 in Golang
GolangRunning periodic background tasks in Golang
How to run periodic background tasks in Golang by combining cron-style scheduling with background execution.