Skip to main content Dennis Traub - Software Engineer & Developer Advocate

Posts on Ai

  1. Writing CSS selectors with Amazon Q Developer

    I’m notoriously bad at CSS! 😅

    I rarely work with it, so advanced selectors always leave me scratching my head. But thanks to AI, I don’t need to memorize them anymore!

    Today’s example: I needed to style specific elements, but only if they weren’t the first one. Instead of googling CSS selectors for the hundredth time, I let Amazon Q’s new Inline Chat handle it for me. Here’s my workflow:

    1️⃣ Select the CSS snippet
    2️⃣ Press Ctrl+i (Cmd+I on Mac) for Q’s Inline Chat
    3️⃣ Explain what I need in plain English
    4️⃣ Review Q’s generated diff
    5️⃣ Quick sanity check and accept!

    Using AI without interrupting my coding flow really is a game changer!

    /* End of post */
  2. Temperature and Top-k demystified

    Most AI models provide temperature and top-k to control response randomness, here’s what they do:

    🌡️ Temperature (creativity level) - Like a chef in the kitchen: Low means sticking to recipes, high means getting creative with flavors.

    ▼ Top-k (word choice limits) - Like restricting your chef’s pantry. Rarely useful in practice.

    Pro tip from AI engineers: Use temperature alone. Let your chef focus on creativity without restrictive ingredient lists!

    /* End of post */
  3. Jekyll or Hugo?

    After years of procrastination, I finally dove into static site generators. Jekyll didn’t click, but Hugo won me over - taking just a few hours to set up with help from Claude. Here’s how that conversation went.
    » Read more