SMRTR Programming

Programming stories

Get hand-picked daily summaries of the best, most informative programming articles from around the web. Browse recent summaries, then jump to the original source when you want the full article.

Latest storyDec 8, 2024

Prompts.js

A new JavaScript library called Prompts.js offers async alternatives to browser alert(), confirm(), and prompt() functions. Using await, developers can create user-friendly modal dialogs that pause execution until the user responds. The library uses the element for improved accessibility and automatic screen dimming. Available on npm as prompts-js, it can be easily integrated via CDN. The project demonstrates how...

Latest stories

Don't undo what you haven't done

Laravel's withoutLogging function temporarily disables logging for sensitive operations, caches the initial state, executes the action, and restores logging, preventing accidental re-enabling in nested scenarios and ensuring data...

Build an AI Assistant Using NodeJS

Stream Chat has introduced a NodeJS server solution that enables frontend chat SDKs to start and stop AI assistants in chat channels. The server integrates with external LLM providers like Anthropic and OpenAI, simplifying...

SMRTR Programming

Get the next batch of curated stories in your inbox.

This archive is built from SMRTR newsletter stories. Subscribe for hand-picked stories without the extra noise.

More recent stories

Advent of Criminally Bad Ruby Code

Ruby programmers Marco Roth and Jared Norman experimented with unconventional coding during an Advent of Code challenge. They overrode operators, used refinements to modify classes locally, and created unusual aliases for Array...

Learn TypeScript from A to Z

TypeScript enhances JavaScript by adding static typing, improving code readability and catching errors early. It introduces basic types, arrays, tuples, enums, interfaces, and classes to strengthen JavaScript's capabilities....

Parse a Regex with NimbleOptions

Phx2ban's new configuration option lets users exclude specific routes from Web Application Firewall rules using strings or regex, offering Phoenix developers more flexibility in customizing security settings.

Astro's blasting off again

Astro 5.0 launches with stabilized core APIs, simplified rendering modes, and new features like Vite 6 support and experimental responsive image tools. The update introduces an SVG component, automatic srcset creation, image...

Build a SolidJS app with Deno

SolidJS and Deno combine to create a powerful stack for building web applications. This tutorial demonstrates how to build a simple dinosaur catalog app using SolidJS for the frontend and Hono for the backend API, showcasing key...

SOLID principles for JavaScript

Object-Oriented Programming (OOP) introduced key concepts like inheritance and encapsulation. To improve software design, Robert C. Martin developed the SOLID principles: Single Responsibility, Open-Closed, Liskov Substitution,...