SShortSingh.

Programming

0
ProgrammingDEV Community ·

Recommended Reading Order for Event Sourcing and CQRS Books

A developer who uses Event Sourcing daily recommends a sequence for the many books on CQRS, starting with Vlad Khononov's Learning Domain-Driven Design for its real-world context. Eric Evans's classic DDD book is presented as the foundation for vocabulary, though its Java examples feel dated. The 2012 Microsoft guide is praised for candidly exposing the costs and complexity of the approach, especially around Sagas. Martin Dilger's Understanding Eventsourcing has a strong conceptual first half but an implementation section tied to the Kotlin and Spring ecosystem. The author also suggests Dilger's short Event Modeling book for its completeness-check concept, while noting its commercial content and its limits as a purely visual method.

0
ProgrammingDEV Community ·

Why a Pending-Actions View Should Be the First Screen Users See

A validator should not need to search through several lists to find the single request awaiting their decision. The article argues that the most useful first screen is a focused view of a user's pending actions, grouped by urgency and workflow level, rather than a dashboard of decorative metrics. Building such a view depends on correct role resolution, entity scoping, server-side filtering, and durable state. The author suggests that if this view is hard to compute, the underlying permissions or workflow model may be too fragmented. The landing experience, it concludes, should be designed around the decision the user came to make.

0
ProgrammingDEV Community ·

Keep secrets out of git: store values elsewhere and commit only templates

The author argues that code repositories are a poor place for secrets, since they get copied to clones, mirrors and tools indefinitely. Their approach keeps real values in a self-hosted password manager, with repos holding only placeholder example files that list required variable names. Real values are written to the target machine at deploy time and never committed, and scripts contain no fallback defaults. Safeguards include checking staged changes, ignoring the real environment file from the first commit, and running a pre-commit secret scanner. If a secret is committed, the author stresses that it must be rotated at its source, since deleting it from later commits leaves it exposed in history.

0
ProgrammingDEV Community ·

10 Small Developer Tools That Cut Down Everyday Testing Friction

Developers often lose time to many minor interruptions during testing, such as generating identifiers, building test profiles, or checking data formats. A roundup from DEV Community highlights ten small utilities and workflows meant to streamline these tasks. Among them are UUID generators supporting v4 and v7 formats, synthetic profile and custom schema generators that avoid using real customer data, and address and IBAN tools for realistic form testing. The article also covers password generators for test accounts, while noting that generated IBANs only confirm format validity, not the existence of a real account.

0
ProgrammingDEV Community ·

Designing a Location-Based Vehicle Rental Discovery Platform for China

The article examines how developers and product teams can build a mobility marketplace that helps users find, compare, and reserve rental vehicles in China. It argues that discovery should start by capturing the user's transportation intent, such as trip type, duration, and vehicle category, rather than showing an unfiltered inventory list. The piece recommends modeling locations as structured hierarchies, separating provinces, metropolitan hubs, districts, and individual storefronts to improve pickup accuracy. It also stresses clear availability, documentation and licensing requirements, and pricing transparency to build user trust in complex regional markets.

0
ProgrammingDEV Community ·

What APIs Are and How They Work, Explained for Beginners

This beginner-friendly guide explains APIs using everyday analogies, starting with a weather app that needs temperature data without owning any sensors. An API is described as a defined interface that lets one software component request services or data from another. The article notes that modern applications, such as food delivery apps, rely on many separate systems connected through APIs. It compares APIs to a restaurant menu, which lists what can be ordered and what to expect back without revealing the kitchen's inner workings. The piece also previews a Python request tutorial, the main API types, and five practice projects.

0
ProgrammingHacker News ·

Blogger Recounts How AI Tools Went From Helpful to Frustrating

A Substack post titled "AI was great until it was not" describes one writer's shifting experience with artificial intelligence tools. The piece is shared on Hacker News, where it has gathered 7 points and no comments at the time of listing. The available material offers only the headline and link metadata, so the specific reasons behind the author's change of view cannot be confirmed from this source. Readers would need to visit the original article to understand the author's full argument and examples.

0
ProgrammingDEV Community ·

Python Script Converts RSS and Atom Feeds into JSON and CSV

A DEV Community tutorial explains how to turn RSS and Atom feeds into structured data using Python. The formats vary in how they structure dates and descriptions, and descriptions are often wrapped in HTML, which complicates processing. The author provides a short script built on the standard library plus requests that discovers a site's feed, normalizes its items, and exports them to CSV. Feed discovery works by reading alternate link tags on a page or checking common feed paths, and a known feed URL can be fetched directly instead.

0
ProgrammingDEV Community ·

Canvas text draws in fallback font before custom web font loads

A developer found that the first fillText call on a canvas draws with the fallback system font even when a custom web font is declared with @font-face. Tests across Chromium, Chrome, Firefox and WebKit showed no errors, and the font request is only sent when the draw happens, so the text ignores the font still in transit. Redraws after 50 ms or more used the correct font, with the delay depending on network timing. A control test confirmed the font was not requested before the first draw, meaning canvas does not wait for it. The reported fix is to await document.fonts.load() with the font string and text before drawing, which worked in all four browsers.

0
ProgrammingDEV Community ·

Git rerere Can Reuse Your Merge Conflict Fix So You Resolve It Once

Developers running multiple AI coding agents on separate branches often hit the same merge conflict repeatedly when combining their work. The article demonstrates how Git's rerere feature, short for reuse recorded resolution, solves this by remembering how a conflict was resolved. Once enabled, Git automatically reapplies a saved resolution whenever the identical conflict reappears during later merges or rebases. The walkthrough sets up a demo repository with two worktrees simulating agents editing the same login function. It then shows how to enable rerere, inspect what will be recorded with status and diff, and commit the resolution once for reuse.

0
ProgrammingDEV Community ·

Discovery Phase AI vs ChatGPT: Which Fits Your Requirements Work

A comparison piece argues that general chat assistants like ChatGPT are useful for drafting discovery material such as problem statements, requirement lists and meeting summaries. The author notes that these tools struggle to keep a multi-stage discovery consistent across weeks of work and multiple people. The article lists strengths of chat assistants, including fast first drafts, rewording, brainstorming edge cases and flexible output formats. It identifies limits such as the lack of built-in structure, answers that do not connect across conversations, and manual copy-and-paste editing with no change history. The piece is written by the team behind the product it compares, a point the article itself discloses.

0
ProgrammingDEV Community ·

REA, a trending GitHub tool, tested on .NET apps: can AI reverse-engineer compiled code?

A GitHub repository called REA, or Reverse Engineer Anything, gained about 183,000 stars in one week and topped GitHub's weekly trending list. It is marketed as letting AI coding agents analyze programs without their source code, including converting machine code back into readable form. A developer tested it on a small C# image-to-ASCII app compiled three ways, using REA's .NET metadata reader and a reconstruction by a fresh AI given only the extracted JSON. The AI rebuilt the app in about 85 seconds, and its output matched the original byte for byte by SHA-256 hash. The test suggests that obfuscation and Native AOT offer limited protection for embedded secrets such as API keys.

0
ProgrammingDEV Community ·

Trimming AI agent tool schemas cut prompt size 47% and sped up local model turns

A developer running self-hosted AI agents on a 6GB GPU found that most of each request was spent describing unused tools, not the model itself. Tool schemas made up roughly 74% of one captured 18,400-token prompt, and prefill was the main bottleneck. By checking real tool-call history in a local database, they disabled toolsets that were never or rarely used, cutting tool schemas by 47% across five specialist profiles. A duplicate YAML key initially made the change appear applied while disabling nothing, which cost considerable debugging time. The fix relied on the agent framework's disabled_toolsets setting, verified against a wire-capture rig before production use.

0
ProgrammingDEV Community ·

Using WebView in Flutter to Reuse an Existing Website Inside a Mobile App

The article explains how developers can embed a website in a Flutter app by using a WebView, avoiding a full rebuild of an existing site for mobile. It notes that WebView provides access to browser features such as executing JavaScript, storing cookies, and sending requests to remote services. Setup requires adding the webview_flutter package via the Flutter pub tool. The piece walks through a WebViewController that configures JavaScript mode, navigation callbacks for page loading progress and errors, and methods for clearing cache and local storage and loading a URL.

0
ProgrammingDEV Community ·

BoundaryDesk: Using Shieldstral to Enforce LLM Guardrail Policies in Java

A developer built BoundaryDesk, a Java example that tests how an LLM application decides between conflicting policies, such as an internal security-research assistant versus a public support bot. The system uses Shieldstral, a classifier that scores inputs and outputs against a supplied policy, with Quarkus LangChain4j connecting it to the answering model. The article explains how classifier scores translate into application decisions and how to tell a rejected request apart from a classifier outage. It also covers evaluating thresholds, with deterministic tests for the request path and a separate real-model evaluation for the classifier. The project pins Java 21, Quarkus 3.38.1, and LangChain4j, and runs Shieldstral via vLLM behind an OpenAI-compatible API, which requires a Linux host with an NVIDIA GPU for the real-model path.

0
ProgrammingDEV Community ·

Ask Germany: an unofficial AI tool answering residence questions from official sources

A developer built Ask Germany, an unofficial tool that answers questions about German administrative procedures using only official government sources. Germany lacks a single federal information portal, as information is spread across federal, state and local websites. The tool answers in several languages, links each statement to its source page, and identifies the responsible local office. It declines to answer when no official text matches, instead directing users to the appropriate portal. The system indexes tens of thousands of pages, respects site crawling rules, and removes personal data from queries before processing.

0
ProgrammingDEV Community ·

Proxmox cluster formed cleanly but its heartbeat ran over the management network

A three-node Proxmox cluster appeared healthy and reported quorum after creation and joining. On closer inspection, one node's corosync cluster heartbeat was using its management interface instead of the intended server network, because the join command had no flag to pin the link address. The setup worked only because the management network happened to route to the other nodes, leaving a latent risk. Such a problem could have caused a node to fence and reboot if that network were firewalled or disrupted. The author fixed it by editing the corosync configuration, correcting the ring address, incrementing the config version, and restarting corosync node by node while quorum was maintained.

0
ProgrammingDEV Community ·

Spanish User Finds Meta's Muse AI Unavailable After Completing Sign-Up Steps

A self-described AI enthusiast in Spain discovered Meta's Muse, a personal AI agent launched in September 2026, through a YouTube tutorial. After confirming the tool was not generally available in Spain, they checked the Muse website and found a login option. They completed email verification and entered personal details before being told the service was not yet available in their region. The page offered only a waitlist option, which the writer did not join. The writer says they do not claim intentional deception and notes possible technical reasons for the registration sequence.

0
ProgrammingDEV Community ·

Unforgettable Car AI turns a portrait into a 15-second car reveal video

A developer has built Unforgettable Car AI, a web app that converts a user's portrait into a short car reveal video modeled on the viral card-and-lens-cover format. Users sign in with Google, upload a clear photo, and pick one of three cars and one of three settings, with no text prompt required. Completed clips appear in a personal library, where they can be watched and downloaded as silent 15-second 720p MP4 files. Public examples can be viewed free, while personal generation uses one-time paid packs starting at $12.99 USD, with failed jobs refunded. The creator notes that AI-generated footage may vary in facial detail, hands, and timing, and that uploads and videos are deleted after seven days and 30 days respectively.

0
ProgrammingHacker News ·

AWS Labs releases AIDLC workflows to steer AI coding agents adaptively

AWS Labs has published AIDLC, a set of adaptive workflow steering rules intended for AI coding agents, hosted on GitHub. The project is aimed at guiding how AI agents plan and carry out software development tasks. The source material is a brief Hacker News link post that drew 4 points and no comments at the time it was captured. The available text provides no detail on the rules' specific mechanics, performance, or adoption. Further information would need to be drawn from the project repository itself.

← NewerPage 423 of 3108Older →