samdeepthink
Author

samdeepthink

Knowledge Planet: Old Dock's Tech Chronicles Zhihu: SamDeepThinking A technical manager who still codes heavily on the front line. From junior developer to tech lead, then tech manager, now leading the whole front‑ and back‑end development team—leveling up along the way. I have some insights on programming, career development, and tech management.

125
Articles
0
Likes
20
Views
0
Comments
Recent Articles

Latest from samdeepthink

100 recent articles max
samdeepthink
samdeepthink
Aug 5, 2026 · Backend Development

Building Enterprise‑Level CAS SSO: Lessons from Our First Implementation

When a company’s internal tools each required separate logins, the team built an enterprise‑grade CAS single sign‑on system that unified identity, login entry, logout handling, and extensible integration, and they document the entire process across nine detailed articles.

CASEnterprise AuthenticationSSO
0 likes · 7 min read
Building Enterprise‑Level CAS SSO: Lessons from Our First Implementation
samdeepthink
samdeepthink
Aug 4, 2026 · Databases

Choosing the Best Composite Index for A = ?, B IN (...), ORDER BY C

The article explains why placing column C immediately after the equality column A in a composite index (A, C, B) avoids filesort and keeps performance stable regardless of how many values appear in the B IN list, outperforming other index orders such as (A, B, C).

Composite IndexFilesortIN Clause
0 likes · 10 min read
Choosing the Best Composite Index for A = ?, B IN (...), ORDER BY C
samdeepthink
samdeepthink
Aug 4, 2026 · Backend Development

Building a Mini RPC in Java 17: From Zero to Understanding Remote Calls

This article walks through creating a minimal Java 17 RPC framework—from defining a simple binary protocol and using JDK serialization to implementing server loops, dynamic proxy‑based clients, and a runnable demo—while also highlighting the gaps that production‑grade solutions like Dubbo or gRPC must fill.

Dynamic ProxyJava 17RPC
0 likes · 13 min read
Building a Mini RPC in Java 17: From Zero to Understanding Remote Calls
samdeepthink
samdeepthink
Aug 3, 2026 · Backend Development

Is the Classic Update‑DB → Delete‑Cache → TTL Pattern Really the Best Way to Keep Cache Consistent?

The article examines why the common update‑database, delete‑cache, add‑TTL workflow can still produce permanent stale data under high concurrency, explains the underlying race conditions, and compares several alternative strategies—including delete‑first, binlog‑driven invalidation, and lease‑based approaches—to help engineers choose the most reliable and low‑complexity solution for cache consistency.

CacheConsistencyRedis
0 likes · 19 min read
Is the Classic Update‑DB → Delete‑Cache → TTL Pattern Really the Best Way to Keep Cache Consistent?
samdeepthink
samdeepthink
Aug 2, 2026 · Fundamentals

Why Reducing Absolutism Boosts Engineering Judgment

The article argues that technical growth comes from shedding absolute beliefs, prioritizing sound architecture, writing clear code, avoiding needless hype, and applying best‑practice principles only where they truly fit, all backed by concrete development experiences.

Best Practicesarchitecturecode simplicity
0 likes · 5 min read
Why Reducing Absolutism Boosts Engineering Judgment
samdeepthink
samdeepthink
Aug 1, 2026 · R&D Management

Tech Managers Should Spend 80% Coding, 20% Managing

The author argues that a technical manager should devote about 80% of their time to coding and only 20% to management, warning that abandoning hands‑on development erodes technical judgment, team trust, and long‑term career competitiveness.

career advicecoding practicesoftware management
0 likes · 4 min read
Tech Managers Should Spend 80% Coding, 20% Managing
samdeepthink
samdeepthink
Jul 31, 2026 · Interview Experience

Why Interviewers Ask About Your Toughest Problem—and How to Answer

The article explains that interviewers ask about the most difficult problem you solved to evaluate your analytical thinking, decision‑making process, and ability to handle uncertainty, and it offers guidance on how to describe the problem, solution steps, and trade‑offs effectively.

behavioral questionscareer advicedecision making
0 likes · 3 min read
Why Interviewers Ask About Your Toughest Problem—and How to Answer
samdeepthink
samdeepthink
Jul 30, 2026 · Backend Development

Live Refactor: Turning a Messy Java Registration Method into Intent‑Clear Code

The article demonstrates how a convoluted Java user‑registration method—filled with magic error codes, inline regex checks, deep nesting, and mutable parameters—can be systematically refactored by introducing meaningful exception types, extracting password validation, applying early‑return style, and using immutable request records to produce clear, intent‑driven code.

Best PracticesCode RefactoringImmutability
0 likes · 7 min read
Live Refactor: Turning a Messy Java Registration Method into Intent‑Clear Code