SShortSingh.

Programming

0
ProgrammingDEV Community ·

Python Library Domonic Releases Version 1.8.5 With New Features

Domonic, a Python library available on PyPI, has released version 1.8.5. The update is described as bringing a range of new additions and improvements over earlier versions. Existing users are encouraged to upgrade their installations to take advantage of the latest changes. The release announcement was shared via the DEV Community platform, targeting developers already working with the library.

0
ProgrammingDEV Community ·

Six LLMs Tested on AI Workflow Recovery Decisions; Four Score Perfect 100%

A developer built the Paused Workflow Recovery Benchmark to evaluate how large language models handle paused automated workflows across 30 synthetic scenarios with six possible recovery actions. The benchmark was run on September 26, 2026, testing six models from Google, Anthropic, and OpenAI. Four models — Claude Opus 4.8, Gemini 3.1 Pro Preview, GPT-6 Astra, and Gemini 3.7 Flash — achieved perfect 100% accuracy, while Claude Haiku 4.5 and Claude Sonnet 4.5 each scored 93.33%, both misclassifying the same two scenarios. The two lower-scoring models incorrectly chose RESUME over RETRY in cases where the scenario did not explicitly state whether a temporary fault had been resolved, suggesting sensitivity to ambiguous phrasing. Run costs across all models were minimal, ranging from roughly $0.01 to $0.13 per full evaluation.

0
ProgrammingDEV Community ·

MFA Confirms Identity But Cannot Replace Proper Authorization Controls

Multi-factor authentication (MFA) strengthens the login process by verifying who a user is, but it does not determine what that user is permitted to do. Successfully completing MFA only means a user has been identified, not that they have been granted access to specific resources or actions. Treating a passed MFA check as implicit permission skips the critical authorization step entirely. Developers must enforce server-side authorization for every sensitive request, evaluating the subject, the action, and the specific resource involved. MFA belongs in the identity verification path and should never serve as a substitute for proper permission controls.

0
ProgrammingDEV Community ·

Ghanaian Developer Builds Automated Platform to Bypass Slow USSD Mobile Data Menus

A full-stack developer in Ghana has built an automated mobile data purchasing platform called Cheap Data Bundle Shop, designed to replace the slow and manual USSD menu process used by providers like MTN. The platform uses PHP, MySQL, and Tailwind CSS on the backend, and integrates payment gateways with inbound SMS parsing to deliver data instantly once a Mobile Money payment is confirmed. It supports multiple bundle sizes, sub-agent reselling margins, and is optimized for mobile users who form the bulk of its traffic. The developer plans to integrate custom Paystack USSD codes in the next phase, enabling users to trigger automated purchases entirely offline. The project highlights the engineering challenges and creative problem-solving required to build practical telecom infrastructure solutions in Africa.

0
ProgrammingHacker News ·

LLM Watermarking May Alter AI Agent Behavior, Security Blog Warns

A security analysis published by Lasso Security examines how watermarking techniques applied to large language models can affect the behavior of AI agents. The concept, referred to as the 'provenance tax,' suggests that embedding watermarks into LLM outputs may introduce unintended side effects. Watermarking is increasingly discussed as a method to trace AI-generated content back to its source model. The findings raise questions about the trade-offs between content provenance tracking and the reliability of AI agent performance. The post has drawn early attention on Hacker News, though detailed public discussion is yet to emerge.

0
ProgrammingDEV Community ·

Why Your Git Diff Shows Hundreds of Changes When You Edited One Line

Large, unexpected diffs in pull requests are often caused by invisible character differences rather than actual code changes. Common culprits include mismatched line endings between Windows (\r\n) and Linux (\n) systems, trailing whitespace added by editors on save, and encoding shifts such as BOM insertion or latin-1 to UTF-8 conversions. Developers can diagnose these issues using commands like git diff --ignore-cr-at-eol or git diff -w to isolate real changes from whitespace noise. To prevent such problems, teams can standardize settings through a .gitattributes file using text=auto eol=lf and align editor behavior via .editorconfig. Reviewing diffs with whitespace-ignoring flags before pushing is recommended to keep pull requests clean and reviewable.

0
ProgrammingDEV Community ·

Brazil's CBDC Drex Uses Zero-Knowledge Proofs to Shield User Transaction Data

Brazil's Central Bank Digital Currency, Drex, is being engineered with privacy as a core design challenge rather than an add-on feature. Early pilot tests in 2023–2024 revealed that transactions on the Hyperledger Besu network were visible to all participating institutions, prompting authorities to launch a technical competition for privacy-preserving solutions. The leading approach uses Zero-Knowledge Proofs, which mathematically verify a transaction's validity without exposing amounts or participant identities to third parties on the ledger. A selective disclosure model ensures regulators can access specific records only via legal triggers such as court orders, aligning with Brazil's data protection law, the LGPD. Experts caution, however, that strong cryptography alone is insufficient, as smart contract vulnerabilities and metadata patterns could still compromise user privacy if implementation is not carefully hardened.

0
ProgrammingDEV Community ·

How Raw Logistics CSV Data Was Transformed Into a Power BI Management Tool

A business intelligence project for JCars Logistics, a vehicle sales and logistics company operating across branches in Kenya, involved building a complete Power BI solution from a messy 276-row, 32-column CSV dataset covering 2025–2026. The source data contained 21 categories of quality issues, including duplicate order IDs, mixed date formats, invalid calendar entries, inconsistent categories, multiple currencies, and unreliable revenue figures. Before any dashboard could be built, the data was profiled, cleaned, and standardised in Power Query, with a stable audit key added to replace an untrustworthy Order ID column. A dimensional model was then constructed alongside explicit DAX measures to track revenue, profit, branch performance, delivery service levels, logistics costs, and vehicle return rates. The project concluded with an interactive executive report and a structured set of findings and recommendations for management decision-making.

0
ProgrammingDEV Community ·

n8n vs Make 2026: Pricing Models Differ More Than Most Comparisons Admit

Automation platforms n8n and Make use fundamentally different billing units: Make charges per module execution within a workflow, while n8n charges a flat fee per workflow run regardless of how many steps it contains. This distinction makes n8n significantly cheaper for complex, multi-step workflows run at volume, whereas Make can be more cost-effective for simple, high-frequency automations. Make's 2026 paid plans start at $9/month for 10,000 credits, while n8n Cloud starts at 20 EUR/month for 2,500 executions; n8n also offers a self-hosted community edition with no execution limits for roughly $5–50/month in server costs. n8n supports Git-based version control and self-hosting, making it better suited for developer-led teams with compliance or infrastructure requirements. Make's visual interface is easier for non-technical users to maintain, which the article identifies as a genuine organisational advantage over any purely technical feature comparison.

0
ProgrammingDEV Community ·

Slow test suites often measure database overhead, not actual code logic

A common reason test suites run slowly is that every test connects to a real PostgreSQL instance and runs migrations, even when the test itself never truly needs database interaction. The real cost is not total runtime but the delay between writing code and getting feedback, which breaks developer focus. The recommended fix is to apply the database schema once per session and wrap each test in a transaction that rolls back automatically, eliminating repeated setup overhead. Developers should distinguish tests that genuinely require database behavior — such as queries, constraints, or transaction boundaries — from those that merely use the database as a convenient way to build objects. Keeping a small, clearly marked set of true database integration tests while converting the rest to use plain objects can significantly reduce per-test setup cost.

0
ProgrammingDEV Community ·

LLM Gateway Launches Decision API That Returns Typed Values Instead of Text

LLM Gateway has released a dedicated decision API endpoint, /v1/systemone, designed for classification and evaluation tasks that do not require text generation. The API accepts a state input and a set of typed questions, returning structured answers as probabilities, choices, or scores rather than free-form language. It supports three question types — yes/no (noul), multiple choice, and scored ratings — each accompanied by confidence scores to help developers set precise decision thresholds in code. The first available model on the endpoint is typesafe/jev-1.13.0, priced at $0.042 per million input tokens with output tokens provided free. The endpoint does not support text generation, tool calls, streaming, or use via the standard /v1/chat/completions route, and is intended specifically for calls whose sole purpose is to produce a structured value.

0
ProgrammingDEV Community ·

How Difficulty-Based LLM Routing Can Cut $100k Monthly Inference Bills by Up to 60%

Companies spending $100,000 a month on large language model inference can significantly reduce costs by routing requests to cheaper models based on task difficulty, according to a cost analysis published by LLM Gateway. The model assumes a representative request of 2,000 input tokens and 500 output tokens, with per-request costs ranging from $0.0045 for Claude Haiku to $0.0225 for Claude Opus. Under an aggressive routing scenario where 60% of traffic shifts to the cheapest model, projected net savings reach around $59,500 per month, while even a conservative mix yields roughly 36% savings. A classifier that determines request difficulty costs approximately $0.0001 per call, making it cost-effective as long as at least 1.2% of routed traffic can be downgraded to a cheaper model. The analysis cautions that quality is not guaranteed when pushing requests to lower-tier models, and that real-world traffic mixes will vary, so organizations are advised to measure their own request difficulty distribution rather than rely on illustrative figures.

0
ProgrammingDEV Community ·

LLM Gateway Launches Auto Model Routing Based on Request Difficulty

LLM Gateway has introduced a smart routing feature that automatically selects the most cost-effective AI model based on the complexity of each incoming request. Users can trigger this by setting the model parameter to 'smart' or 'auto' in their API calls, without changing anything else in their existing code. The system uses a classifier called Jev to rate request difficulty and route it to a model within the appropriate price band, covering up to 30 models configured by the organization. To avoid redundant classification, requests within the same chat session are classified only once and then kept on the same model for consistency. If no suitable model is available for a request, the system returns a 400 error rather than silently falling back, and all routing decisions are logged for auditability.

0
ProgrammingDEV Community ·

Smart Routing cuts LLM costs vs premium models but trails cheaper fixed options

LLM Gateway published a benchmark testing its Smart Routing system against three fixed-model baselines across 80 standardised prompts covering arithmetic, reasoning, and instruction-following tasks. Smart Routing cost 33.2% less than the fixed premium baseline but was 35.6 times more expensive than the fixed low-cost option. On task success, Smart Routing scored 75 out of 80, comparable to the low-cost baseline at 74 and the mid-priced at 76, while the premium model also scored 74 under strict grading. The cost savings against the premium baseline carried wide statistical uncertainty, with the confidence interval ranging from a 4.3% increase to a 66.1% decrease, meaning no reliable reduction was established. The benchmark was authored by an LLM Gateway employee and prepared with AI assistance, which the publication disclosed upfront.

0
ProgrammingHacker News ·

Mistral AI CEO Arthur Mensch argues AI is controllable software

Arthur Mensch, CEO of French AI startup Mistral, has stated that artificial intelligence is fundamentally software and therefore can be controlled. The comments were published by Le Monde on September 24, 2026. Mensch's remarks appear to push back against narratives framing AI as an uncontrollable or existential threat. Mistral, one of Europe's leading AI companies, has positioned itself as an open and transparent alternative in the competitive AI landscape.

0
ProgrammingDEV Community ·

How One Engineering Team Debugged and Fixed Five Types of Cache Misses in Production

A software engineering team documented five real-world cache miss scenarios that caused or risked production outages in their system. Issues ranged from cold cache misses and corrupted deserialized data to thundering herd problems, cache penetration by bots querying nonexistent IDs, and a full cache stampede during the holiday season. For each failure mode, the team applied targeted fixes such as versioned cache keys, jittered TTLs with background refresh, negative caching, Bloom filters, and circuit breakers in front of the database. A poorly configured Redis Sentinel setup was identified as a contributing factor in their most severe incident, where every request simultaneously hit the database. The post serves as a practical reference for engineers implementing caching, emphasizing that many cache failures are silent and require deliberate logging and defensive architecture to detect and contain.

0
ProgrammingDEV Community ·

pgvector Works Without AI Models: How Feature Vectors Can Beat Semantic Search

Most developers associate pgvector with AI-powered semantic search, but the Postgres extension is fundamentally just a tool for finding nearest vectors — regardless of how those vectors are created. Engineers building a baseball 'find similar players' feature discovered that hand-crafted feature vectors, built from structured data using plain SQL arithmetic, can outperform embedding models for certain similarity problems. Unlike embeddings produced by machine learning models, feature vectors are explicitly designed by the developer, with each dimension carrying a named, interpretable meaning. The key distinction is that embeddings suit unstructured data where relevant features are unknown, while feature vectors excel when the data is structured and similarity criteria are well understood. The broader lesson is that pgvector's distance operators and approximate-nearest-neighbor indexes work equally well on any numeric vector, opening a wider design space than AI-centric tutorials typically suggest.

0
ProgrammingDEV Community ·

How Kubernetes Operators Handle Retries, Failures, and Status Visibility

A developer building a Kubernetes operator explored what happens when reconciliation fails, going beyond the happy path of resource creation. When the operator cannot create a ConfigMap, it now updates the custom resource status to Ready=False with a reason of ReconciliationFailed, making the failure visible at the resource level rather than only in operator logs. The operator also records Kubernetes Warning Events, allowing engineers to inspect failures directly via kubectl describe without digging through logs. To support event recording, additional RBAC permissions for get, create, and patch on events were added to the operator's ClusterRole. The developer also tested real authorization failures by editing the ClusterRole to remove ConfigMap permissions, validating the full failure-handling flow end to end.

0
ProgrammingDEV Community ·

Developer Uses Response Size Fingerprinting to Identify Real MCP Tool Callers

Ofir Baranes, an autonomous AI agent operator, devised a method to identify which clients genuinely invoked tools on his MCP server by analyzing HTTP response sizes logged in nginx. Since each MCP request type produces a distinct response size, only calls returning 34,264 bytes confirmed actual tool invocations rather than mere capability checks. On September 23, two crawlers — BrickBlueBot and SaSame-MCP-Audit — were verified as having made real tool calls, distinguishing them from several other bots that stopped at the tools/list stage. A later app log recorded two additional tool invocations with no corresponding nginx entries, leaving those calls unexplained. Baranes notes that two corroborated real-world tool calls from identifiable crawlers is meaningful but not yet conclusive proof of broader adoption.

0
ProgrammingDEV Community ·

Why Proper DNS Setup Is Critical for SaaS Email Deliverability

Misconfigured email DNS records are a common but costly oversight for SaaS founders, often causing legitimate emails to land in spam or leaving domains vulnerable to spoofing attacks. Emails sent by a platform typically fall into three categories: direct, transactional, and marketing, each with different deliverability risks. Experts recommend separating marketing emails from transactional ones using distinct subdomains to protect sender reputation. Key DNS records involved include MX records for routing incoming mail, SPF records for authorizing sending servers, and additional authentication mechanisms to prevent impersonation. A developer with five years of SaaS experience shared these configuration lessons to help others avoid the deliverability pitfalls they encountered early on.

← NewerPage 898 of 3179Older →