Tagged articles
Go Programming
11 articles · Page 1 of 1
By following a seven‑step workflow—scanning Go code, discussing refactoring plans, creating structured Cursor rules, optionally deep‑diving into complex logic, iteratively applying rewrites with comments and tests, running AI self‑review, updating documentation, and performing full verification—developers combine AI speed with human judgment to efficiently refactor projects and reduce technical debt.
AI code refactoringGo ProgrammingPrompt engineering
0 likes · 13 min read

This article explains the QuickSort algorithm’s divide-and-conquer principle, walks through its step-by-step process, provides a complete Go implementation with code, discusses practical applications, performance considerations, and future optimization directions, offering readers a solid grasp of sorting fundamentals.
Divide and ConquerGo ProgrammingSorting Algorithm
0 likes · 5 min read

This guide teaches Go developers how to apply SOLID principles, implement key design patterns, follow idiomatic conventions, avoid common pitfalls, and use quality tools and review practices to produce clean, maintainable, high‑quality Go code.
Best PracticesGo ProgrammingSOLID principles
0 likes · 16 min read

The article details how a sudden surge in goroutine and heap usage was traced to repeatedly creating gRPC clients instead of reusing a singleton, leading to blocked goroutines and TCP connections, and explains using pprof, stack traces, and tools like goleak to detect and prevent such leaks.
GoGo ProgrammingMemory Leak
0 likes · 13 min read

The article traces Bilibili’s API gateway evolution from a crash‑prone 2015 PHP monolith through a Go‑based bilizone, then fragmented BFF services, to a unified microservice gateway that centralizes routing, authentication, rate limiting, and governance, enabling scalable, decoupled development and a full API ecosystem.
API gatewayBFF PatternBilibili Architecture
0 likes · 11 min read

The Singleton design pattern guarantees a single, globally accessible instance, reducing memory overhead and global variables, with eager (init) and lazy (sync.Once) thread‑safe implementations in Go, and practical uses such as configuration management in Python, shared DB connections in PHP, and UI components like toasts in JavaScript.
Go ProgrammingJavaScript ProgrammingPHP Programming
0 likes · 16 min read

Baidu’s SDK development guide stresses writing reusable, stable libraries by applying SOLID design principles, exposing errors, ensuring thorough testing, maintaining backward compatibility, minimizing dependencies, and enhancing usability and understandability, while enforcing strict commit linking, Golint checks, branch versioning, and formal code‑review processes.
Baidu EngineeringBest PracticesGo Programming
0 likes · 21 min read

The article explains skip list fundamentals, shows how probabilistic multi‑level indexing yields O(log n) search and O(n) space, provides a complete Go implementation with insertion, deletion and search functions, compares Redis’s enhanced skip list used in sorted sets, and answers common design questions.
Go ProgrammingIndex structureSkip List
0 likes · 17 min read

This article introduces the Raft distributed consensus algorithm, explains its core concepts such as replicated state machines, leader‑follower roles, client interaction, fault tolerance, the CAP trade‑off, and why Go is a suitable language for implementing Raft.
Distributed ConsensusGo ProgrammingRaft
0 likes · 12 min read

This article explains Go's channel primitive in depth, covering its conceptual model, types, operations, internal queues, rule scenarios, practical code examples, and best‑practice tips for building clear and efficient concurrent programs.
ConcurrencyGoGo Programming
0 likes · 12 min read

This guide walks readers through building a Terraform provider in Go, explaining its architecture, key files such as main.go and provider.go, implementing CRUD functions that call the Tencent Cloud SDK, handling Terraform’s lifecycle, and writing unit tests with the testAccProviders framework.
Go ProgrammingProvider DevelopmentTerraform
0 likes · 15 min read
