Resources for working developers
Tutorials, guides, documentation and snippets you can copy straight into your project. Written by engineers, reviewed by engineers.
12 resources
Build a mock API from an OpenAPI spec in 10 minutes
Go from a YAML file to a running mock server, with realistic data and failure modes.
- APIs
- OpenAPI
A practical guide to API versioning
URL, header or date-based? Trade-offs, migration playbooks and how to deprecate without angry emails.
- APIs
- Design
Authentication reference
API keys, OAuth 2.0 and short-lived tokens across every DeveloperJar API.
- Docs
- Security
Retry with exponential backoff
A small, dependency-free retry helper with jitter for flaky network calls.
async function retry(fn, { retries = 4, base = 300 } = {}) {
for (let i = 0; ; i++) {
try { return await fn(); }
catch (err) {
if (i >= retries) throw err;
const wait = base * 2 ** i + Math.random() * 100;
await new Promise(r => setTimeout(r, wait));
}
}
}
- JavaScript
- Reliability
Why we stopped writing changelogs by hand
How generating release notes from pull requests saved hours and made them better.
- Process
- Docs
Ship preview environments for every pull request
Wire Git, containers and DNS together so reviewers can click instead of clone.
- DevOps
- CI/CD
Chunk any iterable in Python
Process large lists in fixed-size batches without loading everything into memory.
from itertools import islice
def chunked(items, size):
it = iter(items)
while batch := list(islice(it, size)):
yield batch
- Python
- Performance
Designing error responses developers can act on
Status codes, error shapes and messages that shorten debugging instead of prolonging it.
- APIs
- DX
What “API-first” actually costs (and saves)
An honest look at the upfront effort and where the payoff shows up.
- APIs
- Strategy
Delete merged Git branches
One line to tidy your local repo after a busy sprint.
# keep main and the current branch
git branch --merged | grep -v "\*\|main" | xargs -n 1 git branch -d
- Git
- Productivity
SDK quickstart: Node, Python and Go
Install, authenticate and make your first call in under five minutes.
- SDK
- Quickstart
Notes on building offline-first developer tools
Local-first sync, conflict handling and why your CLI should work on a plane.
- Architecture
- Rust