Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Fundamentals

18 min read

Frequent Minor GC? The Real Culprits Are Allocation Rate and Premature Promotion

This article explains why frequent Minor GC in Java applications stems from high object allocation rates or premature promotion to old generation, not heap size, and details generational collection mechanics, promotion thresholds, dynamic age judgment, and troubleshooting using jstat, GC logs, and AsyncProfiler to pinpoint allocation hotspots.

8 min read

Vim Mastery: Complete Visual Guide to Essential Commands and Keybindings

This comprehensive illustrated reference covers Vim's core keybindings across progressive learning levels — from basic navigation and editing to advanced visual mode operations — with practical examples for character, word, line, and screen movement, text insertion, editing, search, and file management.

8 min read

Charlie Munger's Mental Models: Inversion, Rationality, and Lowering Expectations

A reflection on Charlie Munger's core principles — lowering expectations to match reality, using inversion thinking to avoid fatal errors, pursuing rationality as a moral habit, and leading by example — drawn from his speeches on happiness, parenting, investing, and decision-making.

8 min read

Why Saved Resources Fail in Projects: A Recommender System Approach

The article applies recommender system concepts — content pool, feature tagging, indexing, recall, and ranking — to personal knowledge management, advising readers to annotate saved resources with specific problem contexts, build a searchable index, and use AI for summarization and retrieval so that collected materials become actionable when needed.

19 min read

Mission Engineering: Steps Done ≠ Mission Accomplished — A Coffee Lesson

This article introduces Mission Engineering through a coffee-making analogy, emphasizing that completing steps doesn't guarantee mission success; it outlines a structured approach using a Mission Description Card to define goals, stakeholders, constraints, and success criteria, and advocates iterative experimentation over rigid processes.

15 min read

Why Circular References Don't Leak Memory in Java: Reachability Analysis Explained

This article explains how Java's reachability analysis garbage collection handles circular references, contrasts it with reference counting's failure on cycles, details GC roots, three-color marking, finalize() resurrection, and identifies real memory leak patterns caused by lingering root references.

39 min read

Linux System Architecture Deep Dive: Kernel, File Systems & Disk Management

This article explains Linux system architecture covering kernel components (memory, process, device, network management), virtual file system (VFS), disk partitioning, mounting, inode/data block storage, hard vs soft links, and kernel parameter tuning via /proc.

45 min read

Advanced C4 Modeling: Notation, Microservices & Scaling Architecture Diagrams

This article explores advanced C4 model topics including notation independence, element and relationship design, microservices and message-driven architecture modeling, scaling techniques for large systems, and a diagramming maturity model for engineering teams.

7 min read

CountDownLatch Explained: Java Thread Synchronization via Meeting Analogy

This article explains Java's CountDownLatch synchronization tool using a meeting analogy, demonstrates its usage with a Java 17 code example simulating attendees arriving at a meeting, and describes a real-world batch translation scenario where the main thread waits for multiple concurrent translation tasks to complete.

7 min read

Golden Spike: Connecting Valen to Rust Without C ABI for Cross-Language Generics

Evan Ovadia, creator of the Valen language, develops a "Golden Spike" plan to enable direct cross-language generics between Valen and Rust by embedding rustc as a library and patching the Rust compiler to hand off non-Rust types to the Valen compiler, bypassing C ABI limitations.

24 min read

Java Interface Default & Static Methods: Evolution Tool or Maintenance Trap?

This article analyzes Java 8+ interface default and static methods, explaining their original purpose for backward-compatible interface evolution, valid use cases like optional capabilities and mixin-style derived methods, and common pitfalls including hidden assumptions, silent failures, fixed workflows that prevent customization, and binary vs semantic compatibility issues. It includes a real-world refactoring example for payment callback handlers.

27 min read

Beyond Static Structure: C4's Dynamic, Deployment & Landscape Diagrams

This article explains C4 model's three supplementary diagrams—Dynamic, Deployment, and System Landscape—detailing their purpose, scope, notation, and practical examples using an internet banking system to illustrate runtime interactions, multi-environment deployments, and enterprise-wide system relationships.

76 min read

Complete Algorithm & Data Structure Interview Guide: From Arrays to Distributed Systems with Java Implementations

This comprehensive 30,000-word guide covers 9 core modules — data structures, sorting, search algorithms, algorithm paradigms, string algorithms, hash engineering, rate limiting, distributed IDs, and massive data processing — with Java code, complexity tables, and interview-focused explanations for big-tech preparation.

14 min read

Why the Creators of Linux, Python, Redis, Nginx & SQLite Are True Geniuses

The article argues that creators of foundational software like Linux, Python, Redis, Nginx, and SQLite are true geniuses due to their exceptional abstraction skills and system-level boundary control, illustrated by real-world cases where their minimal, convergent designs outperform modern complex solutions, and warns that over-reliance on AI tools erodes deep system understanding essential for solving hard production issues.

15 min read

Java IO Streams: Byte, Character, and Conversion Streams with Performance Benchmarks

This tutorial covers Java's three main IO stream types—byte, character, and conversion streams—demonstrating low-level vs high-level stream performance with file copy benchmarks, text file processing, console input handling, and character encoding conversion solutions.

13 min read

Java 27: Compact Object Headers Cut Heap 22%, G1 Default Everywhere, Post-Quantum TLS

Java 27 introduces four production-ready features requiring no code changes: compact object headers reduce heap usage by 22% and object header size by 33%, G1 becomes the universal default garbage collector, TLS 1.3 adds hybrid post-quantum key exchange, and JFR sanitizes sensitive data before leaving the process.