freek.dev

https://freek.dev

85 posts · 13 Votes

Tech 99% · Life 1%

Subscribe via RSS

  1. PHP Attributes: What, Why, How and When

    A deep dive into PHP attributes, from metadata and Reflection to practical design patterns, Laravel examples, performance, testing, and the cases where explicit code is better. Read more

    0
  2. Claude Code Routines: A Third Way Beyond /goal and /loop

    There's a third way to automate Claude Code, and unlike /goal and /loop, it doesn't need your laptop open at all. Anthropic just shipped routines: cloud-hosted automations triggered by a schedule, an API call, or a GitHub event. Read more

    0
  3. Supercharge your PHP apps with Go-powered PHP extensions

    A practical conference session on building PHP extensions with Go and FrankenPHP, then wiring them into Laravel and Symfony as native-feeling features. It uses an in-memory LRU cache as the example and offers a nice tour of framework flexibility and PHP internals. Read more

    0
  4. How I tricked Claude into leaking your deepest, darkest secrets

    A sharp writeup on how a malicious site could trick Claude into exfiltrating memory-derived personal data through its web browsing flow. It walks through the attack chain, the prompt injection setup, and Anthropic's eventual mitigation. Read more

    0
  5. New in PHP 8.6: Faster array_map with first-class callables

    In this video, Tideways shows how PHP 8.6 speeds up array_map when you use first-class callables.

    0
  6. The Laravel Scheduler Under the Hood

    A deep dive into the Laravel Scheduler, from event registration and cron evaluation to mutexes, background processes, sub-minute tasks, and production-safe scheduling. Read more

    0
  7. Modernizing My Dotfiles

    Stefan Zweifel shares how he reorganized his dotfiles into a minimal setup, split private config into a separate repo, and streamlined setup and Brewfile syncing with a few small scripts. Read more

    0
  8. A tour of my dotfiles

    Over the years, I've built up a collection of aliases, shell functions, and CLI tools that make my terminal feel like home. All of it lives in a single repository: my dotfiles. It's a backup of every terminal tool and configuration I rely on, and it means I can set up a brand new Mac from scratch in about five minutes. Colleagues at Spatie use it as a starting point for their own setups too. Let me walk you through what's in there. I'll cover the tools and tricks first, with installation and…

    0
  9. Rewriting Bun in Rust

    Jarred Sumner explains why the Bun team is moving from Zig to Rust, after years of fighting memory safety issues in a codebase that mixes GC and manual memory management. He also shares how Claude helped make a mechanical, test-suite-driven rewrite realistic without pausing feature work for a year. Read more

    0
  10. CLAUDE.md is RAM, not disk

    CLAUDE.md isn't documentation, it's working memory. A practical approach to keeping it lean and focused instead of letting it grow into an unreadable 300-line dumping ground. Read more

    0
  11. Charging AI Agents Per Request: A Practical Guide to the Machine Payments Protocol

    Agentic commerce is a buzzy term, but is still pretty abstract for developers asking what they can actually build today. This post explains MPP through a working Laravel example, and introduces the new square1/laravel-mpp package. Read more

    0
  12. Leave a failing test before you go on vacation

    Every year I dread coming back from vacation not because of the work, but because I have no idea where I left off. A failing test, a well-written TODO, and a slow first day back are all you need to ease back in. Read more

    9
  13. UUIDs, ULIDs and Sqids: A Practical Deep Dive

    A practical deep dive into UUIDs, ULIDs, and Sqids, from generation models and sorting behavior to database storage, public IDs, and security trade-offs. Read more

    1
  14. How AI is changing (the way I do) UX

    Nick Houtman shares how AI is reshaping UX work: clients arrive with better prototypes, common patterns get safer and more generic, and real research still matters most. Read more

    0
  15. Your Laravel routes can carry metadata now, and Flare shows it

    Laravel now supports attaching arbitrary metadata to routes, and the latest laravel-flare client shows that context in error reports and performance traces. Read more

    0
  16. Everything About the Context Facade

    A deep dive into Laravel Context, from request metadata and automatic log enrichment to hidden context, scoped values, queues, scheduled commands, and internals. Read more

    0
  17. Storied Colors

    A lovely growing index of colors, each with its own provenance, chemistry, and often grim history. Beautifully made, and exactly the kind of rabbit hole I enjoy falling into. Read more

    0
  18. Learn Anything With My /teach Skill

    Matt Pocock shows how his /teach skill turns Claude Code into a personalized teacher that adapts lessons to your goals, level, and progress. It creates structured lessons, resources, quizzes, and a learning record so you can keep building on what you learned. Read more

    0
  19. Life is too short for a slow terminal

    Mijndert Stuij shares a bunch of practical ways to make your terminal feel instant, from skipping shell frameworks and caching completions to lazy-loading slow tools. A good reminder that tiny bits of latency add up fast when you live in your terminal all day. Read more

    0
  20. Context-aware headings in HTML

    A look at the new experimental headingoffset attribute, which lets heading levels adapt to their context instead of hardcoding h2s and h3s. A thoughtful explanation of where this could be genuinely useful, especially in component-based UIs. Read more

    0
  21. Improving Laravel Architecture With Expressive

    Learn how Expressive can improve a Laravel application by keeping Eloquent as the database layer while moving business logic to fully typed objects. Read more

    0
  22. Eloquent Query Classes Pattern

    Learn how to use Eloquent Query Classes to organize important database logic in Laravel without adding a full repository layer. Read more

    0
  23. Architecture Decision Record

    A concise explanation of ADRs: short documents that capture an important decision, the context behind it, and its consequences. Good practical advice on keeping them lightweight, readable, and useful over time. Read more

    0
  24. Building RAG in Laravel: Four Ingestion Bugs That Silently Wreck Retrieval

    Every Laravel RAG tutorial builds the same ingestion pipeline (chunk, embed, store) and stops the moment the agent answers on screen. None of them check whether retrieval is any good. But retrieval quality is decided at ingestion, before the model runs once, and four decisions there fail with no error, no exception, no failed test: Chunking that severs the answer mid-sentence, so answer@1 falls while source hit@1 still looks healthy. An HNSW index built with vector_l2_ops while you query with…

    0
  25. Feature Flags in Laravel with Pennant

    How we use class-based Laravel Pennant features, with a kill switch on every flag and a config-driven path to general availability. Read more

    0
  26. How PHP Attributes Changed the Way I Write Livewire

    Bert De Swaef shows how PHP attributes made his Livewire components easier to read by attaching validation, URL sync, and event listeners directly to the properties and methods they belong to. Nice piece on how attributes reduce mental overhead, improve IDE support, and make components feel more self-documenting. Read more

    0
  27. Rust Tutorial For PHP and JavaScript Developers

    Read more

    0
  28. Caching get_certificate lookups in Caddy

    Mattias open sourced a small Caddy module that caches get_certificate HTTP lookups, avoiding a backend fetch on every TLS handshake. A nice write-up on the problem, the design, and the trade-offs. Read more

    0
  29. The ghost domain problem in DNS, and what we're doing about it

    A good write-up on the ghost domain problem in DNS: domains removed from a registry can still appear healthy to uptime checkers because recursive resolvers keep stale delegations warm. The Oh Dear team explains the edge case and how they're tightening their resolver setup to reduce that blind spot. Read more

    0
  30. Multi-Agent Orchestration in Laravel: When You Actually Need It

    A practical take on multi-agent setups in Laravel: another agent only earns its place when it needs its own model, tools, or instructions. Good piece on delegation tradeoffs, context handoff, and how to test routing before it becomes an expensive latency tax. Read more

    0