SShortSingh.
0
ProgrammingDEV Community ·

Why Price-Per-Token Is the Wrong Way to Pick an AI Model Endpoint

As AI agents move from demos to production, choosing the right model endpoint based solely on cost-per-token pricing is proving inadequate for real workloads. Agent traffic differs fundamentally from chat traffic, often arriving in bursts of parallel tool calls rather than steady streams, which can overwhelm endpoints optimised for throughput. Three key factors should guide the decision: traffic shape, data sensitivity, and the team's capacity to manage infrastructure. Free hosted tiers suit steady, non-sensitive, low-maintenance use cases, while self-hosting better serves spiky, latency-sensitive, or privacy-critical workloads. A practical stress-test script that measures success rate, rate-limit events, and latency percentiles at varying concurrency levels is recommended to evaluate any endpoint before committing to production.

0
ProgrammingDEV Community ·

How Node.js Should Handle SMS OTP Cooldowns and Attempt Limits Securely

A technical guide published on DEV Community outlines best practices for building passwordless phone login systems using Node.js and Express, specifically for gaming storefronts. The core argument is that the backend must own all SMS OTP resend cooldowns, attempt caps, and anti-abuse counters, never trusting the browser or game client to enforce these rules. The recommended design models authentication as a state machine with distinct states — ready, code_sent, verified, expired, and locked — with a database serving as the authoritative source for expiry and counters. Atomic database transactions are emphasized to prevent race conditions where multiple server workers could simultaneously approve a resend and waste SMS send capacity. The guide also warns that client-visible countdowns are purely UX elements, while stored server-side deadlines constitute actual security policy.

0
ScienceWIRED ·

Home Egg Pasteurization Tested: Can You Kill Salmonella Without Cooking?

A Wired journalist explored whether eggs can be safely pasteurized at home without cooking them. The experiment was conducted with guidance from infectious disease experts to ensure scientific credibility. The motivation behind the test was to find a low-effort method for reducing Salmonella risk in raw eggs. Salmonella is a common foodborne pathogen associated with raw or undercooked eggs. The findings aimed to determine whether home cooks can effectively make eggs safer without relying on commercial pasteurization.

0
TechnologyTechCrunch ·

Zillow and Redfin Reach Settlement With FTC in Antitrust Case

Real estate platforms Zillow and Redfin have settled an antitrust case brought against them by the Federal Trade Commission. As part of the agreement, Redfin is required to reenter the rental advertising market. The settlement resolves the FTC's competition concerns regarding the two major property listing companies. No further financial or operational terms of the deal were disclosed in the announcement.

0
ProgrammingDEV Community ·

How to Measure Brand Consistency in AI Search Beyond Traditional Rankings

As AI-generated search experiences grow, traditional rank tracking alone no longer captures how a brand or product is represented across different queries. A business may appear in one AI-generated answer but be omitted or described differently when a closely related prompt is used. Experts recommend building a controlled query set that tests appearance rate, message accuracy, source attribution, and sensitivity to prompt wording. Consistency in this context means that comparable queries produce stable, accurate representations — not necessarily identical responses. Teams are advised to document each test systematically so that changes in AI output can be properly interpreted over time.

0
SpaceNASA ·

NASA's Roman Space Telescope Set for Falcon Heavy Launch on Aug. 30

NASA has announced coverage plans for the upcoming launch of the Nancy Grace Roman Space Telescope from Florida. The observatory is scheduled to lift off no earlier than 7:26 a.m. EDT on Sunday, August 30, aboard a SpaceX Falcon Heavy rocket. Roman is NASA's next-generation space telescope built to investigate some of the universe's most profound questions, including the nature of dark energy. The mission represents a major step forward in NASA's efforts to deepen our understanding of the cosmos.

0
ProgrammingDEV Community ·

Lottielab watermark is a single deletable JSON layer with index 12345679

A tool on GitHub called 'lottielab-watermark-remover' removes watermarks from Lottie animation files by deleting a single layer identified by the hardcoded index 12345679. Lottie files are JSON objects where all visible elements, including watermarks, are stored as layer objects in a layers array. The watermark layer uses the same structure as any other layer, with no checksum or cryptographic protection to verify its presence. Because Lottie's open format requires editable vector data to function, vendors have limited ability to enforce watermark integrity at the file level. Raster image watermarks composited into PNG assets are the one exception, as they share pixels with underlying artwork and cannot be removed through JSON manipulation alone.

0
ProgrammingDEV Community ·

Proposal Envelope Pattern Offers Structured Policy Control for AI Agents

As AI agents take on consequential business actions like sending emails, processing refunds, or updating records, the risk of ungoverned behavior grows significantly. A software design pattern called the 'proposal envelope' requires an AI agent to produce a structured record detailing the proposed action, its evidence, risk level, approval owner, and rollback path before any change is executed. This record passes through a policy check and human approval step, with a state re-check before the action is finally carried out and logged. Without such a unified framework, approval workflows tend to grow in a scattered, ad hoc manner across tools like Slack, email, and CRM systems, making oversight difficult. The pattern aims to give businesses a repeatable, auditable way to govern exactly what AI agents are permitted to do and when.

0
ProgrammingDEV Community ·

AI Coding Tools Raise Concerns Over Developer Judgment and Accountability

AI-assisted development tools can now explain concepts, write code, and debug errors in seconds, fundamentally changing how software engineers learn and work. While this accelerates productivity, critics warn that over-reliance on AI may erode the deeper understanding developers build through hands-on problem-solving. AI systems can produce confident but incorrect or context-blind answers, making human engineering judgment essential for evaluating trade-offs. Unlike human developers, AI cannot be held professionally or legally accountable for flawed recommendations it provides. The responsibility for any decision based on AI output ultimately remains with the engineer who chooses to act on it.

0
ProgrammingDEV Community ·

How to Build a Fault-Tolerant Strapi Webhook Receiver with Idempotency and Retry Logic

A technical tutorial published on DEV Community outlines how to build a reliable Strapi webhook receiver that handles three common failure modes. Because Strapi retries failed webhook deliveries, receiving endpoints can process the same event more than once, potentially causing duplicate records or silent data loss. The guide demonstrates using idempotency keys derived from event metadata to reject duplicate deliveries before any processing occurs. An Express-based service acknowledges incoming webhooks immediately, then processes events asynchronously with exponential backoff to handle transient downstream failures. Events that fail permanently are written to a dead-letter database table rather than being silently dropped, making failures visible and recoverable.

0
ProgrammingDEV Community ·

Why P95 Latency, Not Averages, Is the Real Metric for Free AI APIs

Developers using free AI API tiers often misread performance by relying on average response times rather than tail latency, according to a technical analysis published on DEV Community. The article argues that the 95th percentile of time-to-first-token is the critical measure, since a model averaging 800ms but spiking to six seconds at p95 will feel broken to users. Free-tier endpoints run on shared infrastructure, making latency less predictable and more dependent on other tenants' usage patterns. The author recommends a lightweight async Python script to measure p50 and p95 latency across multiple requests, run at different times of day and from user-proximate regions. Practical mitigations include enabling streaming responses and capping concurrent requests with a semaphore to avoid retry penalties on rate-limited free endpoints.

0
ProgrammingDEV Community ·

Token Limits Can Train Developers to Write More Efficient AI Prompts

A perspective piece published on DEV Community argues that working within strict token limits helps developers build better prompt engineering habits. The author contends that when tokens are treated as a finite resource, prompts tend to become more focused and produce sharper model outputs. The article uses the analogy of a novelist constrained by a word count, suggesting that scarcity encourages discipline while abundance breeds inefficiency. The piece was written as part of outreach for MonkeyCode, an open-source project offering free model access and a ten-million-token allowance, though the author notes these terms may change. A sample shell script is included to help developers compare token costs between a verbose and a minimal version of the same prompt.

0
ProgrammingDEV Community ·

Git Workflow Explained: From Local Tracking to GitHub Collaboration

Git is a version control system that runs locally on a computer, enabling developers to track file changes, manage branches, and revert to earlier versions of a project. Unlike Git, GitHub is a cloud-based platform where repositories can be stored and shared for team collaboration. The core Git workflow involves four steps: staging changes with 'git add', saving them with 'git commit', and uploading to GitHub using 'git push'. A local project folder can be turned into a Git repository using 'git init', then linked to a remote GitHub repository via 'git remote add origin'. Mastering this edit-stage-commit-push cycle provides a solid foundation for effective version control and collaborative development.

0
IndiaNDTV ·

Gujarat Hostel Ragging Case: Student Allegedly Beaten, Blackmailed by Seniors

A ragging case has emerged at a hostel in Gujarat involving serious allegations against senior students. According to a complaint filed by a student's parent, the seniors repeatedly assaulted the victim using slippers and sticks. The accused allegedly forced the junior student to perform personal chores and give body massages. Seniors also reportedly compelled the student to smoke cigarettes while filming him, using the footage as blackmail material.

0
ScienceWIRED ·

A Reliable Meat Thermometer Is Your Best Defense Against Salmonella

Salmonella outbreaks have been occurring with increasing frequency, raising food safety concerns among consumers. Cooking meat to the correct internal temperature remains one of the most effective ways to prevent infection. A quality meat thermometer, or temperature probe, serves as a critical tool in ensuring food is safely cooked. Experts highlight that proper temperature monitoring is the final and most reliable safeguard against harmful bacteria. Using a probe thermometer at home can significantly reduce the risk of salmonella contamination in cooked meals.

0
ProgrammingDEV Community ·

Why JSON-LD Structured Data Determines If AI Answer Engines Cite Your Site

AI answer engines face two distinct challenges with any webpage: crawling it and understanding its content. Structured data, specifically schema.org JSON-LD, solves the second problem by explicitly labeling what a page is and what it contains, removing the need for engines to guess. While many sites technically include structured data, the real issue is incomplete schema blocks that pass validation checks but lack critical fields like author, publication date, or FAQ content. Malformed JSON-LD is silently discarded by parsers, meaning a broken block offers no benefit despite appearing present in the page's HTML. Choosing the right schema type per page and filling in all citation-critical fields is what determines whether an AI engine confidently cites a source or defaults to a competitor.

← NewerPage 212 of 3278Older →