Code with AI. Still know what you ship.

Practical programming tips for the AI era, from someone building with it every day. One issue every Saturday.

Join 9,500+ developers

Daniel's avatar
“One of my favorite newsletters.”
Daniel Moka, Software Engineer

Latest issues

Fresh every Saturday. Read the newest three.

New Nov 21, 2026 · 4 min read

Style the native select in 4 lines of CSS

The native select is finally stylable. Add appearance: base-select and get icons, descriptions and a custom dropdown with keyboard and screen reader support built in.

CSS HTML UI
Read the issue
css
select,
::picker(select) {
  appearance: base-select;
}

Nov 14, 2026 · 4 min read

Show users exactly what the AI changed before they accept it

AI rewrites look fine until one quietly changes a price. Show users a word-level diff with Accept and Reject in about 30 lines of JavaScript, no library.

AI JavaScript UX
Read the issue
javascript
function diffWords(before, after) {
  const a = before.match(/\S+\s*/g) ?? [];
  const b = after.match(/\S+\s*/g) ?? [];
  const lcs = a.map(() => new Array(b.length + 1).fill(0));
  lcs.push(new Array(b.length + 1).fill(0));

  for (let i = a.length - 1; i >= 0; i--) {
    for (let j = b.length - 1; j >= 0; j--) {
      lcs[i][j] = a[i] === b[j] ? lcs[i + 1][j + 1] + 1 : Math.max(lcs[i + 1][j], lcs[i][j + 1]);
    }
  }

  const parts = [];
  const push = (type, text) => {
    const last = parts.at(-1);
    if (last?.type === type) last.text += text;
    else parts.push({ type, text });
  };

  let i = 0, j = 0;
  while (i < a.length || j < b.length) {
    if (a[i] === b[j]) { push('same', a[i]); i++; j++; }
    else if (j === b.length || (i < a.length && lcs[i + 1][j] >= lcs[i][j + 1])) push('del', a[i++]);
    else push('ins', b[j++]);
  }
  return parts;
}
See all issues

Testimonials

What people say about the newsletter.

Marko's consultation was full of practical insights I could apply right away. I'd recommend it to anyone.
Image DevLuc Web Developer

The archive

Browse by topic.

69 issues, all practical.

Your AI chat scrolls wrong. Fix it in 4 lines of CSS Stop dragging users back to the bottom while the answer streams. Four lines of CSS make your chat follow new text, and stop the moment the user scrolls up. · 4 min read CSS AI Highlight search matches without touching the DOM Stop wrapping search matches in mark tags. The CSS Custom Highlight API paints every match without adding a single element to your page. · 4 min read JavaScript CSS Your articles need a "Copy for AI" button Your readers already paste your articles into AI chats. Give them a clean Markdown copy instead, with one button and about 30 lines of JavaScript. · 4 min read AI JavaScript Stream AI answers word by word in 15 lines Stop making users stare at a spinner while your AI feature thinks. Stream the answer word by word with 15 lines of JavaScript, no library, in every modern browser. · 4 min read AI JavaScript Let AI agents use your site with 3 HTML attributes AI agents guess their way through your UI. Add 3 HTML attributes to your search form and they call it like a function instead. No library, no backend. · 4 min read AI Forms Skeleton loaders in pure CSS Spinners make pages jump and flicker. Build a skeleton loader in pure CSS that only appears when loading is actually slow. Zero dependencies. · 4 min read CSS Performance

Browse all 69 issues

Get the next issue every Saturday.

One practical tip a week. 100% free, unsubscribe anytime.