Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Best practices

How experienced engineers actually work with a technology. Each guide on Sefism goes practice by practice: why it matters, what to do, what to avoid and a real example, checked against the official docs.

  • 46 guides
  • 1341 practices
  • 7 categories

Looking for checklists instead? See every checklist.

Stacks and tools

17

Languages, frameworks, databases and the tools around them.

  • Best practices · Stacks and tools

    React Best Practices

    Modern React best practices for 2026: pure components, lean state, fewer effects, React Compiler, form actions, accessibility and testing.

    Chapters

    1. 1Components and purity
    2. 2State and data flow
    3. 3Effects, and when you do not need one

    + 5 more

    • 8 chapters
    • 36 practices
  • Best practices · Stacks and tools

    Modern CSS Best Practices

    Modern CSS best practices: cascade layers, low specificity, custom properties, Grid and Flexbox layout, responsive design, container queries, :has() and nesting, plus Tailwind CSS v4 tips.

    Chapters

    1. 1Foundations: support, units and a sane base
    2. 2The cascade, specificity and cascade layers
    3. Custom properties and design tokens

    + 6 more

    • 9 chapters
    • 37 practices
    Opens with credits
  • Best practices · Stacks and tools

    TypeScript Best Practices

    Modern TypeScript best practices for 2026: strict settings, TypeScript 7, modeling data with unions, safe narrowing, runtime validation, generics and typed linting.

    Chapters

    1. 1Compiler settings and TypeScript 7
    2. 2Modeling data with types
    3. Avoiding unsafe escape hatches

    + 4 more

    • 7 chapters
    • 33 practices
    Opens with credits
  • Best practices · Stacks and tools

    Next.js App Router Best Practices

    Next.js 16 App Router best practices: Server Components, Cache Components and use cache, secure Server Actions, proxy.ts, metadata and images.

    Chapters

    1. 1Server and Client Components
    2. 2Caching with Cache Components
    3. Securing Server Actions and data access

    + 4 more

    • 7 chapters
    • 33 practices
    Opens with credits
  • Best practices · Stacks and tools

    Node.js API Best Practices

    Build Node.js REST APIs that hold up in production: structure, validation, error handling, security headers, rate limits, logging, testing and graceful shutdown.

    Chapters

    1. 1Project structure and configuration
    2. 2Validation and error handling
    3. Async code and the event loop

    + 4 more

    • 7 chapters
    • 29 practices
    Opens with credits
  • Best practices · Stacks and tools

    Git Best Practices for Developers

    Git best practices for everyday work: clear commits, clean branches and pull requests, rebase vs merge, safe force pushes, secrets, signing and recovering mistakes.

    Chapters

    1. 1Commits and commit messages
    2. 2Branches and pull requests
    3. Rebase vs merge

    + 4 more

    • 7 chapters
    • 26 practices
    Opens with credits
  • Best practices · Stacks and tools

    Code Review Best Practices

    Code review best practices for reviewers and authors: the approval standard, what to look for, review speed, writing kind and useful comments, handling disagreement and small changes.

    Chapters

    1. 1The standard for approving a change
    2. 2What to look for in a review
    3. Review speed

    + 4 more

    • 7 chapters
    • 31 practices
    Opens with credits
  • Best practices · Stacks and tools

    Docker Best Practices

    Write smaller, faster, safer Docker images: multi-stage Dockerfiles, layer caching, non-root users, build secrets, health checks and Compose.

    Chapters

    1. 1Writing the Dockerfile
    2. 2Image size and security
    3. Secrets in builds

    + 3 more

    • 6 chapters
    • 28 practices
    Opens with credits
  • Best practices · Stacks and tools

    PostgreSQL Best Practices

    Design, index, query and run PostgreSQL well: data types, constraints, EXPLAIN, zero-downtime migrations, pooling, transactions, backups and roles.

    Chapters

    1. 1Schema design and data types
    2. 2Constraints that protect your data
    3. Indexing and EXPLAIN

    + 4 more

    • 7 chapters
    • 32 practices
    Opens with credits
  • Best practices · Stacks and tools

    Python Best Practices

    Write Python that stays maintainable: supported versions, pyproject and lockfiles, Ruff, type hints, errors, logging, concurrency, pytest and security.

    Chapters

    1. 1Versions, environments and project setup
    2. 2Style, formatting and linting
    3. Type hints and data modelling

    + 5 more

    • 8 chapters
    • 37 practices
    Opens with credits
  • Best practices · Stacks and tools

    React Native Best Practices

    React Native best practices for 2026: Expo and the New Architecture, fast lists, smooth animations, safe storage, deep links, accessibility and release builds.

    Chapters

    1. 1Project setup and upgrades
    2. 2Components and styling
    3. Lists that scroll smoothly

    + 5 more

    • 8 chapters
    • 35 practices
    Opens with credits
  • Best practices · Stacks and tools

    Software Testing Best Practices

    Testing best practices for unit, integration and end-to-end tests: test design, test doubles, flaky tests, coverage and fast CI, with examples in TypeScript and Python.

    Chapters

    1. 1Choosing what to test and at which level
    2. 2Writing good unit tests
    3. Test doubles and mocking

    + 5 more

    • 8 chapters
    • 34 practices
    Opens with credits
  • Best practices · Stacks and tools

    Flutter Best Practices

    Flutter best practices for 2026: sound null safety, cheap build methods, layered architecture, smooth frames, go_router, accessibility, testing and safe releases.

    Chapters

    1. 1Dart and null safety
    2. 2Widgets and build methods
    3. Architecture and state

    + 5 more

    • 8 chapters
    • 41 practices
    Opens with credits
  • Best practices · Stacks and tools

    Spring Boot Best Practices

    Build Spring Boot 4 services that are easy to change and safe to run: injection, configuration, REST layer, JPA, virtual threads, Actuator, tests and shutdown.

    Chapters

    1. 1Versions, starters and dependencies
    2. 2Structure and dependency injection
    3. Configuration and profiles

    + 6 more

    • 9 chapters
    • 37 practices
    Opens with credits
  • Best practices · Stacks and tools

    ASP.NET Core Best Practices

    Build fast, safe ASP.NET Core 10 APIs: DI lifetimes, validated options, minimal APIs, problem details, async rules, EF Core, rate limits, tests and health checks.

    Chapters

    1. 1Versions and project setup
    2. 2Dependency injection and configuration
    3. Endpoints, validation and OpenAPI

    + 5 more

    • 8 chapters
    • 30 practices
    Opens with credits
  • Best practices · Stacks and tools

    REST API Design Best Practices

    Design HTTP APIs clients enjoy using: resources and URLs, methods, status codes, problem details errors, pagination, idempotency keys, ETags, versioning and OpenAPI.

    Chapters

    1. 1Resources and URLs
    2. 2HTTP methods and their promises
    3. Status codes

    + 5 more

    • 8 chapters
    • 31 practices
    Opens with credits
  • Best practices · Stacks and tools

    MongoDB Best Practices

    Model, index, query and run MongoDB well: access-pattern schemas, validation, the ESR rule, aggregation limits, write concern, transactions, drivers and security.

    Chapters

    1. 1Versions and deployment
    2. 2Schema design
    3. Schema validation

    + 5 more

    • 8 chapters
    • 30 practices
    Opens with credits

Cloud and DevOps

4

Shipping, running and watching software in production.

  • Best practices · Cloud and DevOps

    Kubernetes Best Practices

    Run workloads on Kubernetes that schedule well, survive restarts and node drains, and stay locked down: resources, probes, PDBs, Pod Security and RBAC.

    Chapters

    1. 1Workloads and manifests
    2. 2Resource requests, limits and scaling
    3. Health probes and graceful shutdown

    + 3 more

    • 6 chapters
    • 27 practices
    Opens with credits
  • Best practices · Cloud and DevOps

    Terraform Best Practices

    Write Terraform that teams can review and change safely: file layout, version pinning, remote state with locking, secrets, modules, refactoring and tests.

    Chapters

    1. 1Structure and style
    2. 2Versions and dependencies
    3. State: remote, locked and split

    + 3 more

    • 6 chapters
    • 24 practices
    Opens with credits
  • Best practices · Cloud and DevOps

    CI/CD Best Practices

    Build pipelines that are fast, trustworthy and safe to deploy from: trunk-based flow, fast tests, locked-down workflows, signed artifacts, canaries and DORA metrics.

    Chapters

    1. 1Integrating small changes often
    2. 2Fast feedback and tests you can trust
    3. Securing the pipeline

    + 3 more

    • 6 chapters
    • 25 practices
    Opens with credits
  • Best practices · Cloud and DevOps

    Observability Best Practices

    Know when production is hurting users and why: SLOs, golden signals, metric naming and cardinality, structured logs, OpenTelemetry traces and burn-rate alerts.

    Chapters

    1. 1Deciding what to measure
    2. 2Metrics that stay useful and affordable
    3. Logs you can search and join

    + 3 more

    • 6 chapters
    • 23 practices
    Opens with credits

Data and ML

5

Pipelines, analysis and putting models into production.

  • Best practices · Data and ML

    Data Pipeline Best Practices

    How to build data pipelines you can re-run, test and trust: idempotent tasks, orchestrator hygiene, layered transformations, data tests, freshness, ownership and monitoring.

    Chapters

    1. 1Idempotent, re-runnable tasks
    2. 2Orchestration code hygiene
    3. Layered transformations

    + 3 more

    • 6 chapters
    • 23 practices
    Opens with credits
  • Best practices · Data and ML

    Data Analysis Best Practices

    An analyst's workflow in SQL, pandas and Polars: framing the question, reading data correctly, joins and grain, aggregation pitfalls, reproducible notebooks, checking results and sharing findings.

    Chapters

    1. 1Frame the question first
    2. 2Read the data correctly
    3. Joins without surprises

    + 4 more

    • 7 chapters
    • 28 practices
    Opens with credits
  • Best practices · Data and ML

    Data Modeling Best Practices

    Dimensional data modeling for analytics: declaring the grain, fact and dimension tables, slowly changing dimensions, dbt marts, naming, tests, contracts and a semantic layer.

    Chapters

    1. 1Start from the business process and the grain
    2. 2Fact tables
    3. Dimension tables

    + 4 more

    • 7 chapters
    • 26 practices
    Opens with credits
  • Best practices · Data and ML

    Machine Learning Best Practices

    How to build and evaluate an ML model you can trust: problem framing and baselines, leak-free splits, features, tuning, metrics and error analysis, reproducibility and fairness checks.

    Chapters

    1. 1Problem framing and baselines
    2. 2Data splits and leakage
    3. Features

    + 4 more

    • 7 chapters
    • 30 practices
    Opens with credits
  • Best practices · Data and ML

    Data Visualization Best Practices

    How to make charts that are clear, accessible and honest: choosing the chart, encoding, color, axes and scales, annotation, dashboards and avoiding misleading charts.

    Chapters

    1. 1Start from the question and choose the chart
    2. 2Encoding and clutter
    3. Color and accessibility

    + 4 more

    • 7 chapters
    • 29 practices
    Opens with credits

Security

7

Keeping apps, APIs and the data in them safe.

  • Best practices · Security

    Secrets Management Best Practices

    Keep API keys, passwords and tokens out of git, logs and browser bundles: secret managers, scanning, rotation, OIDC in CI and leak response.

    Chapters

    1. 1Where secrets should live
    2. 2Catching leaks before and after they happen
    3. Least privilege and short-lived credentials

    + 4 more

    • 7 chapters
    • 28 practices
    Opens with credits
  • Best practices · Security

    Authentication Best Practices

    Build sign-in that holds up: password rules from NIST, Argon2id hashing, login throttling, MFA and passkeys, secure sessions and safe account recovery.

    Chapters

    1. 1Password rules and storage
    2. 2The login flow and brute force protection
    3. Multi-factor authentication

    + 3 more

    • 6 chapters
    • 25 practices
    Opens with credits
  • Best practices · Security

    Secure Coding Best Practices

    Write code that resists attack: untrusted input, validation, parameterized queries, output encoding, safe parsing, uploads, SSRF and errors that fail closed.

    Chapters

    1. 1Treat all input as untrusted
    2. 2Injection: keep data out of commands
    3. Output encoding and sanitization

    + 3 more

    • 6 chapters
    • 22 practices
    Opens with credits
  • Best practices · Security

    Authorization Best Practices

    Get access control right: deny by default, object-level checks against IDOR, RBAC vs ABAC vs ReBAC, tenant isolation with row-level security, audits and tests.

    Chapters

    1. 1Deny by default, check on the server
    2. 2Object-level authorization: stop IDOR and BOLA
    3. Choosing a model: RBAC, ABAC and ReBAC

    + 4 more

    • 7 chapters
    • 22 practices
    Opens with credits
  • Best practices · Security

    Browser Security Best Practices

    Secure the front end and HTTP layer: XSS and Trusted Types, Content Security Policy, CORS, cookies, CSRF, framing, security headers, third-party scripts and postMessage.

    Chapters

    1. 1Cross-site scripting and Trusted Types
    2. 2Content Security Policy
    3. CORS done right

    + 4 more

    • 7 chapters
    • 22 practices
    Opens with credits
  • Best practices · Security

    Cryptography Best Practices for Developers

    Use cryptography safely in application code: vetted libraries, AEAD and nonces, secure randomness, key management and rotation, TLS settings and the post-quantum move.

    Chapters

    1. 1Choosing the right tool and library
    2. 2Encrypting data with AEAD
    3. Randomness, tokens and key derivation

    + 3 more

    • 6 chapters
    • 24 practices
    Opens with credits
  • Best practices · Security

    Threat Modeling Best Practices

    Make threat modeling a routine part of building features: the four questions, data flow diagrams, STRIDE, abuse cases, tickets and tests, and LLM features.

    Chapters

    1. 1The four questions and the right mindset
    2. 2What are we working on: diagrams and trust boundaries
    3. What can go wrong: STRIDE, abuse cases and attack trees

    + 3 more

    • 6 chapters
    • 24 practices
    Opens with credits

AI

4

Building with language models, retrieval and agents.

  • Best practices · AI

    Best Practices for Building LLM Apps

    How to build LLM apps and agents that hold up in production: prompts, evals, prompt injection, tool permissions, cost, logging and privacy.

    Chapters

    1. 1Prompt design and structured output
    2. 2Evals before shipping
    3. 3Prompt injection and the OWASP LLM Top 10

    + 4 more

    • 7 chapters
    • 31 practices
  • Best practices · AI

    Prompt Engineering Best Practices

    How to write prompts that work the same way on the hundredth input as on the first: clear instructions, structure, examples, reasoning, output control and testing.

    Chapters

    1. 1Clear instructions and context
    2. 2Prompt structure and long context
    3. Examples and few-shot prompting

    + 3 more

    • 6 chapters
    • 24 practices
    Opens with credits
  • Best practices · AI

    Best Practices for Building AI Agents

    How to design AI agents that finish real tasks: when to use one, tool design, context and memory, control loops, MCP and agent security, and evaluating agent runs.

    Chapters

    1. 1Choosing between a workflow and an agent
    2. 2Designing tools an agent can use well
    3. Context, memory and long-running tasks

    + 3 more

    • 6 chapters
    • 24 practices
    Opens with credits
  • Best practices · AI

    Best Practices for AI Coding Assistants

    How to get reliable code from AI coding assistants and agents: instruction files, task prompts, verification, review, security, dependencies and session hygiene.

    Chapters

    1. 1Project instruction files
    2. 2Writing task prompts
    3. Verification loops

    + 3 more

    • 6 chapters
    • 24 practices
    Opens with credits

Career

7

Profiles, new jobs, personal branding and growing as an engineer.

  • Best practices · Career

    Tech Lead Best Practices

    Tech lead best practices for engineers stepping up: define the role, set direction with design docs and ADRs, plan and unblock delivery, run healthy code review, grow people, handle incidents.

    Chapters

    1. 1Define the role
    2. 2Set technical direction
    3. Plan and unblock delivery

    + 4 more

    • 7 chapters
    • 27 practices
    Opens with credits
  • Best practices · Career

    Engineering Career Growth Best Practices

    Career growth best practices for engineers: read your ladder, grow scope and impact, own outcomes, work with your manager, use feedback, build promotion evidence, pick a staff or manager path.

    Chapters

    1. 1Understand how career ladders work
    2. 2Grow your scope and impact
    3. Own outcomes, not tasks

    + 5 more

    • 8 chapters
    • 32 practices
    Opens with credits
  • Best practices · Career

    Technical Writing Best Practices for Engineers

    Technical writing best practices for developers: write for your audience, clear sentences, scannable structure, design docs, READMEs and docs, PR descriptions, async updates and blog posts.

    Chapters

    1. 1Know your audience and purpose
    2. 2Write clear sentences
    3. Structure documents for busy readers

    + 6 more

    • 9 chapters
    • 31 practices
    Opens with credits
  • Best practices · Career

    How to Learn a New Programming Language or Framework

    Best practices for learning a new language or framework fast: set a goal, start with official docs, build small projects, practise deliberately, use spacing, read real code, learn with AI wisely.

    Chapters

    1. 1Set a clear learning goal
    2. 2Start with the official documentation
    3. Build small projects early

    + 5 more

    • 8 chapters
    • 28 practices
    Opens with credits
  • Best practices · Career

    Developer Career Best Practices for the AI Era

    How to stay valuable as a developer in 2026: read the evidence, use AI tools well, build judgment and review skills, verify everything, keep fundamentals, learn your domain and show shipped work.

    Chapters

    1. 1Read the evidence, not the headlines
    2. 2Use AI tools well
    3. Build judgment and review skills

    + 5 more

    • 8 chapters
    • 27 practices
    Opens with credits
  • Best practices · Career

    Personal Branding Best Practices for Developers

    Personal branding for developers without the hype: pick a focus, keep one consistent presence, show proof of work, learn in public, engage well and build a reputation that lasts.

    Chapters

    1. 1Understand what a developer brand is
    2. 2Choose a focus
    3. Keep one consistent presence

    + 5 more

    • 8 chapters
    • 32 practices
    Opens with credits
  • Best practices · Career

    Content Creation Best Practices for Developers

    How developers create useful public content: blog posts, newsletters, LinkedIn and X posts, YouTube and Shorts, choosing formats, staying consistent, repurposing, measuring and using AI honestly.

    Chapters

    1. 1Pick your formats
    2. 2Write technical blog posts
    3. Run a newsletter

    + 5 more

    • 8 chapters
    • 35 practices
    Opens with credits

Build and earn

2

Freelancing, shipping your own products and getting paid for your work.

  • Best practices · Build and earn

    Freelancing Best Practices for Developers

    Freelancing best practices for developers: pick a niche, find clients, price hourly, fixed or by value, write proposals that win, scope and handle changes, communicate, deliver and earn repeat work.

    Chapters

    1. 1Position yourself and choose a niche
    2. 2Find clients on purpose
    3. Price hourly, fixed or by value

    + 5 more

    • 8 chapters
    • 32 practices
    Opens with credits
  • Best practices · Build and earn

    SaaS Product Best Practices for Developers

    Build and grow a small software product as a developer: validate demand, scope the MVP, price and package, onboard and activate users, track MRR and churn, support, ship steadily, know when to stop.

    Chapters

    1. 1Validate demand before you build
    2. 2Scope an MVP you can ship in weeks
    3. Price and package the product

    + 5 more

    • 8 chapters
    • 32 practices
    Opens with credits

Free to learn. Credits keep it fair.

Reading is free. Adding a roadmap, keeping a cheat sheet or asking Tauseef a question uses credits, which only make sure the platform goes to people who are actually learning.

  • 15creditswhen you join
  • 1stroadmapfree to add
  • Morecreditson request, as you learn
Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com