AI-Friendly Programming: The Paradigm Shift from 'Readability' to 'Reasonability'

AI-Friendly Programming: The Paradigm Shift from 'Readability' to 'Reasonability'

In the age of Cursor, Copilot, and AI Agents, the fundamental attributes of code have changed. In the past, code was a set of instructions for humans to read; today, code is the corpus for AI reasoning. While human developers can rely on “intuition” and project background knowledge, AI relies primarily on its internal Attention Mechanism and probabilistic prediction. This means that if your code logic is obscure, jumpy, or highly dynamic, the AI will hallucinate because it cannot find enough “anchors.” The core of AI-friendly programming is to reduce the entropy of AI prediction through deterministic structures. ...

January 17, 2026 · 4 min · 817 words · Allen
My Blog Engineering Practice: From Static Build to Automated Ops

My Blog Engineering Practice: From Static Build to Automated Ops

Writing a blog is more than just outputting words; for an engineer, the blog itself is an engineering project that undergoes continuous iteration and optimization. Since its inception, this site has evolved from simple static page generation to a highly automated system. Today, I’ll share the tech stack and engineering practices behind this blog. 🏗 Full-Stack Architectural Design This site is built on Hugo and utilizes a fully containerized (Docker) deployment scheme. To ensure data sovereignty and minimalist operations, I opted for self-hosted services instead of Algolia or various third-party comment plugins. ...

January 6, 2026 · 4 min · 658 words · Allen
A First Look at Masscan Scanning Technology

A First Look at Masscan Scanning Technology

Masscan is a classic and extremely high-speed network scanner. This article starts from implementation details to analyze how Masscan sends and receives packets directly at the user level, how it distinguishes responses generated by itself, as well as its target randomization and high-performance network card access technologies. 1. Masscan’s User-Level Sending/Receiving (libpcap) Masscan does not use the operating system’s full protocol stack, but instead sends and receives raw data packets directly on Linux based on libpcap. This brings several important impacts and limitations: ...

September 24, 2025 · 2 min · 922 words · Allen
Building an Intelligent Attack and Defense Knowledge Base: Vulnerability Management Practices Combining AI Technology

Building an Intelligent Attack and Defense Knowledge Base: Vulnerability Management Practices Combining AI Technology

Project Origin One day, a classmate threw a GitHub repository link for PoCs into the group chat, containing many PoC markdown documents. I saved it immediately. Recently, building knowledge bases with vector databases has become very convenient, so I thought, why not use tools like AnythingLLM to directly construct a knowledge base? AnythingLLM even supports creating documents directly from GitHub repositories. The effect is as follows: “What are the vulnerabilities of X-OA?” Answer: ...

September 12, 2025 · 3 min · 1042 words · Allen