Code of Duty
Author

Code of Duty

"Code of Duty" — Every line of code has its own mission. We avoid shortcuts and quick fixes, focusing on authentic coding reflections and the joys and challenges of technical growth. The journey of learning matters more than any destination. Join us as we humbly forge ahead in the world of code.

34
Articles
0
Likes
133
Views
0
Comments
Recent Articles

Latest from Code of Duty

34 recent articles
Code of Duty
Code of Duty
Jun 15, 2026 · Artificial Intelligence

Cursor vs Codex: An Application‑Level Comparison and Insights

The author runs a series of real‑world development tasks with Cursor (Composer 2.5) and Codex (GPT‑5.5) to compare how each agent understands directories, creates files, designs a WeChat lottery mini‑program MVP, generates MySQL schemas, evaluates non‑functional requirements, and reflects on token usage, concluding that Cursor excels in IDE‑centric, structured outputs while Codex shines as a terminal‑based coding agent.

AI coding assistantBenchmarkCodex
0 likes · 10 min read
Cursor vs Codex: An Application‑Level Comparison and Insights
Code of Duty
Code of Duty
Jun 13, 2026 · Fundamentals

Git Series Summary & Learning Roadmap: Managing Code and Team Collaboration

This article summarizes a comprehensive Git series that goes beyond command lists to teach development habits, collaboration logic, and a step‑by‑step learning roadmap covering initial commits, .gitignore, branching, rebasing, pull requests, conflict resolution, and the deeper value of version history for teams.

Gitignorefeature-branchgit
0 likes · 11 min read
Git Series Summary & Learning Roadmap: Managing Code and Team Collaboration
Code of Duty
Code of Duty
Jun 8, 2026 · Fundamentals

What Exactly Is a Pull Request? A Complete Guide to the Code Review Process

The article explains that a Pull Request is a request for the team to review and merge code, outlines the risks of bypassing PRs, details a standard PR workflow, describes what reviewers check, offers tips for writing high‑quality and small PRs, and lists post‑merge actions.

code reviewcollaborationgit
0 likes · 9 min read
What Exactly Is a Pull Request? A Complete Guide to the Code Review Process
Code of Duty
Code of Duty
Jun 6, 2026 · Fundamentals

Don’t Panic: A Hands‑On Guide to Resolving Git Conflicts

Git conflicts occur when multiple branches modify the same code; this guide explains why they happen, how to interpret conflict markers, step‑by‑step resolution commands, three common resolution strategies, tool‑assisted fixes, and post‑merge checks to ensure clean, error‑free integration.

conflict resolutiongitgit-merge
0 likes · 8 min read
Don’t Panic: A Hands‑On Guide to Resolving Git Conflicts
Code of Duty
Code of Duty
Jun 3, 2026 · Fundamentals

Git Rebase: The Powerful Tool Developers Love—and Fear

This article explains what Git rebase does, compares it with merge, shows concrete command examples, outlines when to use it safely on personal branches, warns against rewriting shared history, and introduces the safer --force-with-lease option for forced pushes.

Git workflowcode reviewforce-with-lease
0 likes · 9 min read
Git Rebase: The Powerful Tool Developers Love—and Fear
Code of Duty
Code of Duty
Jun 1, 2026 · Artificial Intelligence

Demystifying the LLM Tech Stack: Tokens, Embeddings, Attention, and Fine‑Tuning

This article walks through the full LLM pipeline—from tokenization and embedding to transformer attention, pre‑training, instruction tuning, RLHF, inference, context windows, Retrieval‑Augmented Generation and agents—explaining each component, its role, and the engineering challenges such as hallucination and safety.

AttentionInstruction TuningLLM
0 likes · 17 min read
Demystifying the LLM Tech Stack: Tokens, Embeddings, Attention, and Fine‑Tuning
Code of Duty
Code of Duty
May 28, 2026 · Fundamentals

Why You Should Avoid Blindly Using git push --force

The article explains why force‑pushing after a commit has been shared can corrupt team history, contrasts reset and revert, shows safe alternatives, and outlines scenarios where force‑push might be acceptable.

Force Pushgitreset
0 likes · 6 min read
Why You Should Avoid Blindly Using git push --force
Code of Duty
Code of Duty
May 27, 2026 · Artificial Intelligence

Configuring Codex Coding Rules with AGENTS.md: A Practical Guide

The article explains why Codex needs explicit project rules, distinguishes between collaboration rules in AGENTS.md and command‑permission rules in .codex/rules, and provides concrete examples, templates, and a checklist for writing effective, specific rules that keep Codex aligned with team conventions.

AGENTS.mdAI programmingCodex
0 likes · 11 min read
Configuring Codex Coding Rules with AGENTS.md: A Practical Guide
Code of Duty
Code of Duty
May 26, 2026 · Industry Insights

From SEO to GEO: New Content Rules in the AI Era

The article explains how the shift from traditional search‑engine optimization (SEO) to Generative Engine Optimization (GEO) changes content strategy, requiring brands to make their information understandable, trustworthy, and citable by AI assistants rather than merely ranking on search results.

AIGEOGenerative Engine Optimization
0 likes · 9 min read
From SEO to GEO: New Content Rules in the AI Era