Latest Tutorials

Learn about the latest technologies from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
NEW

Reactive, Deliberative, and Multi-Agent: Choosing the Right Agent Type Before Writing Code

The choice between Reactive, Deliberative, and Multi-Agent patterns isn't a progression. These are different decision models. Pick the wrong one, and you pay in latency, tokens, and debugging time. Reactive agents respond to current input without memory or planning. Think security alerts that…
Thumbnail Image of Tutorial Reactive, Deliberative, and Multi-Agent: Choosing the Right Agent Type Before Writing Code
NEW

dotenv in Node for AI Coding Tools: Safe API Key Setup for OpenAI, Anthropic, and MCP Apps

Every AI key you paste into a source file is one git push away from going public. Setting up dotenv in Node takes a few minutes. dotenv is a small package that moves those keys into a local .env file, and your code reads them at runtime through process.env (Node's built-in object for environment…
Thumbnail Image of Tutorial dotenv in Node for AI Coding Tools: Safe API Key Setup for OpenAI, Anthropic, and MCP Apps

I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

This has been a really good investment!

Advance your career with newline Pro.

Only $40 per month for unlimited access to over 60+ books, guides and courses!

Learn More
    NEW

    Build Your First AI Agent: Define the Tool Contract Before the Loop

    {"article":" \n\n## Why the tool contract comes before the loop\n\nThe tool contract stopped being optional the moment you tried to ship an assistant that does real work. Skip it and you get loops that never terminate, tools called with malformed arguments, and a token bill that grows every turn.…
    Thumbnail Image of Tutorial Build Your First AI Agent: Define the Tool Contract Before the Loop
    NEW

    Examples of Reinforcement Learning in LLM Apps: From RLHF to Safer Business Outputs

    Watch: Reinforcement Learning from Human Feedback (RLHF) Explained by IBM Technology In our experience, preference-tuned models can outperform much larger unaligned counterparts on human preference evaluations — alignment work often matters as much as raw scale when the target is human preference.…
    Thumbnail Image of Tutorial Examples of Reinforcement Learning in LLM Apps: From RLHF to Safer Business Outputs
    NEW

    Reinforcement Learning in Python for LLM Fine-Tuning: Build a Simple RLHF PPO Pipeline

    Short version: RLHF with PPO starts from a supervised-fine-tuned model and nudges it toward preferred outputs. You train a reward model on pairwise comparisons, then use PPO to update the policy while keeping it tethered to the starting checkpoint. The training loop generates completions, scores…
    Thumbnail Image of Tutorial Reinforcement Learning in Python for LLM Fine-Tuning: Build a Simple RLHF PPO Pipeline

    Email Newsletter

    Trusted by 200,000+ developers!

    Popular Topics