هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
$ مستخدم عادي# بصلاحية root (أو مع sudo)
المهارات في هذا الفصل
- Developer experience — P1082–P1091
The inner loop: edit, build, test, feedback
Seconds, not minutes.
The inner loop is the part of the day you repeat: change a line, build, run a test, read the answer, change again. It is not a process diagram; it is the loop you actually live in, and its length decides how much you can try before lunch.
- Edit: One small diff, Branch from main, Editor, watch on
- Build And Test: Incremental build, Changed tests, Warm cache
- Feedback: Error, file and line, Failing test named, Timing per step
Full note: P1082 — The inner loop: edit, build, test, feedback
Dev environments that start in one command
Setup instructions are the part of a repository nobody reviews and everybody follows once. The failure is quiet: the page works for the author, on the laptop where it was written.
- One entry point: scripts/dev, just setup or make dev: one name, owned by the repository.
- Pinned layers: Runtime and tools in one version file, containers by digest.
- Warm caches: Mount the source, keep dependencies in a named volume.
- Proven cold: CI runs the command on a fresh runner and times it against a target.
Full note: P1083 — Dev environments that start in one command
Five things that slow a build down
Builds get slow one reasonable decision at a time, and nobody notices until a five-minute wait has become a habit people plan around.
- No cache between runs, so every dependency downloads again from the registry.
- A full rebuild for a one-line change, because nothing tracks what the diff touched.
- Tests that sleep for a fixed time instead of waiting on a condition.
- One serial job where the work splits cleanly across parallel runners.
Full note: P1084 — Five things that slow a build down
Test selection: changed, affected, full suite
Cheap checks first, full suite last.
Running every test on every push feels safe and is usually the reason the pipeline is slow enough to be bypassed. Selection is not about running less; it is about running the right tests first.
- Diff: Which files changed on this branch, and which package owns them.
- Impact: Walk the import graph outward: tests for callers, not for strangers.
- Focused: Run the matched tests first; a failure here stops the run.
- Widen: A shared change escalates to the wider suite before the merge.
Full note: P1085 — Test selection: changed, affected, full suite
Code review that moves fast
Review speed and review quality are usually described as a trade. They are not: the same three habits produce both, and the queue is where they are won or lost.
- Small and single: One change per pull request, with the risk named in the description.
- Read for behaviour: Tests, data flow, error paths and permissions, in that order.
- Ask for one thing: Observation, why it matters, and the change you would accept.
- Measure the wait: First response and time to merge, with an owner and a target.
Full note: P1086 — Code review that moves fast
Four numbers worth watching
Four numbers describe most of the developer experience, and none of them is a vanity metric if it has an owner and a target.
- Lead time: commit to production. Target: under one working day.
- Review time: first response. Target: within four working hours.
- Build time: pull request feedback. Target: under ten minutes on a warm cache.
- Focus hours: two uninterrupted blocks a day, held in the calendar.
Full note: P1087 — Four numbers worth watching
Killing tool sprawl without a reorg
Fewer tools, fewer seams.
Tool sprawl rarely arrives as a decision. It arrives as a good idea per team, and two years later there are three linters, two dashboards and a pipeline definition nobody can explain.
- Count what you already run: List tool and owner; Mark the overlaps; Price the seams.
- Cut one seam at a time: Pick a default per job; Keep an exit path; Migrate the loudest team.
- Make the default the easy path: One template, owned; Review tools like code; Publish the exceptions.
Full note: P1088 — Killing tool sprawl without a reorg
Onboarding to a codebase in a week
Onboarding is usually a tour: a week of meetings, a diagram, and a repository you are afraid to run. A better plan gives one artefact per day, and a change merged by Friday.
- Run it first: A working system on day one, and a pull request that fixes the setup.
- Map five boxes: Entry points, data, calls, third parties and owners, on one page.
- Ship by midweek: A small change through the real path: test, review, pipeline, deploy.
- Trace one request: From route to query and back, including where it fails.
Full note: P1089 — Onboarding to a codebase in a week
Five signs your platform is not adopted
Platform teams measure adoption in dashboards, and the honest signals are usually in the tickets.
- Teams ask the platform team to run the tool for them, ticket after ticket.
- Two teams keep their own copy of the pipeline, quietly diverging.
- Every new service starts with an exemption request.
- The internal portal is linked in every deck and opened by nobody.
Developer experience commands and tools
One command is the goal.
Developer experience is usually described in principles and delivered in commands. The commands are the part a new joiner can copy, so it is worth making them short, real and in one place.
- Setup:
docker compose up -d - Build:
make build - Test:
pytest -q -x - Review:
gh pr create --fill