Python Performance: list.index() and Faster Lookup Alternatives
list.index() is one of Python's most commonly misused methods for performance-sensitive code. It performs a linear search — O(n) — which is fine for small li...
list.index() is one of Python's most commonly misused methods for performance-sensitive code. It performs a linear search — O(n) — which is fine for small li...
Go's approach to error handling is explicit and deliberate — functions return errors as values, and callers must handle them. This design makes error paths v...
Advanced Go concurrency patterns — the for-select loop, cancellation with context, worker pools, fan-out/fan-in, and the ping-pong channel pattern.
Go Concurrency 并发
Common Go code snippets, useful Golang
The most common Go pitfalls — loop variable capture, nil interface traps, goroutine leaks, slice gotchas, and defer in loops — with clear examples and fixes.
Understand nil pointer panics in Go — why they happen, how to prevent them, the nil interface trap, and how to debug them in production.
A practical guide to administering a Postfix + Dovecot email server — configuration files, status checking, TLS setup, IMAP vs POP3, and debugging.
Comprehensive systemd tutorial covering service management, targets, daemon configuration, logging, and troubleshooting on Linux.
A complete guide to configuring Caddy server for static websites — HTTPS,