SShortSingh.

Programming

0
ProgrammingDEV Community ·

Retry Strategy for Failed Email Delivery Using Delayed Queues and Dead-Letter Handling

A developer guide argues that the most effective approach to retrying failed email delivery in a Node.js background job system is a queue with delayed retries combined with a dead-letter queue. The recommended design acknowledges a job only after the email provider accepts it, moves permanently failing messages aside for inspection, and makes the sender idempotent because standard queues deliver at least once. For monitoring, the article suggests alerting on the age of the oldest unacknowledged job, the failed-delivery rate, and retry concentration rather than raw queue depth, which can rise during healthy traffic peaks. It also recommends setting service-level objectives around report delivery deadlines instead of promising exactly-once delivery, and draining workers deliberately during shutdown.

0
ProgrammingDEV Community ·

Token generation speed is capped by memory bandwidth, not compute, a DDR3 test shows

A comparison of a 40B model running at 125 tokens per second on a laptop with a 7B model at 1.5 tokens per second on a 2011 CPU, with similar RAM, highlights that common explanations for the gap are often wrong. The author argues that generating each token from a dense model requires reading all weights from memory, so memory bandwidth sets the speed ceiling. Using a read-only benchmark on an old i5-2520M NAS with a single DDR3-1600 DIMM, the author measured about 9.0 GB/s, roughly 70% of theoretical peak. Adding threads plateaued near 10.5 GB/s, indicating the single memory channel is the limit rather than core count. Estimated ceilings and expected real-world speeds for 7B, 13B and 40B models are provided, with swapping identified as a common cause of very slow results.

0
ProgrammingDEV Community ·

Why design reviews must question necessity, not just whether code works

The author approved a pull request in minutes after automated checks passed, only to find weeks later that it had produced copy-pasted validation logic. They argue that design reviews should ask whether an abstraction is needed, not merely whether an implementation functions. In building a React form validation engine, they adopted a rule that a new named rule preset is added only once the same logic is needed in at least two places. The author notes that generality without present need leads to bloated, hard-to-maintain configuration. They acknowledge this policy can slow teams slightly but judge the tradeoff worthwhile, since duplicated code is easy to promote later while unnecessary presets are hard to remove.

0
ProgrammingDEV Community ·

AI-Run Music Label's Bio Link Broke in a Splice, Caught by a Second Reader

Persona500 LLC, a music label and merch store run largely by AI agents under founder Aldrin Payopay, launched a small test placing a product link in two author bios. An agent appended the offer sentence at an unseen cursor position, which spliced the text and fused the URL into a dead link. The agent's own check sampled only the start and end of the sentence and recorded the placement as verified. A second reader caught the splice and the 404, and the field was rewritten in full and the link reopened and confirmed working within about ten minutes. The agent drew lessons from the miss: verify the whole rendered unit, open links rather than reading their text, and rewrite fields whole rather than appending.

0
ProgrammingDEV Community ·

Why Diesel Engine Duty Cycles Determine How Long an Engine Lasts

Diesel engines often wear out sooner than their spec sheets suggest, and the reason frequently lies in how they are actually operated. The article argues that a duty cycle, a time-based profile of power, speed, and thermal load, reveals far more than a simple average load factor does. It contrasts short, peak-driven demands with sustained steady-state operation, comparing them to a sprinter versus a marathon runner. The author proposes using operational data rather than guesswork to match an engine to its application. The piece also introduces standardized duty cycle classifications used by international bodies and equipment makers.

0
ProgrammingDEV Community ·

Why B2B Inquiry Forms Lose Leads and How to Route Them Reliably

A shared-inbox inquiry form can cause duplicate replies, unowned contacts, and lost submissions when the CRM is unavailable. The article argues for a process that persists each submission before anything else happens, so a CRM outage does not erase the lead. It recommends splitting form fields into routing, context, and free-text groups, and never routing on free text. The author proposes using the local database as the source of truth, with the CRM acting as a downstream copy synced through an outbox. Deduplication via a keyed unique index on email and company within a rolling window is presented as a way to prevent double-submissions and race conditions.

0
ProgrammingDEV Community ·

How Exporters Can Build an SEO-Friendly B2B Website That Ranks on Google

Many export companies launch professional websites yet receive few inquiries because search engines rarely surface them to overseas buyers. The article attributes this mainly to sites built without search intent, clear structure, and core technical fundamentals rather than to product or pricing. It recommends mapping commercial keywords that buyers actually type, assigning one primary keyword family per page, and organizing pages in a flat hierarchy within three clicks of the homepage. Practical on-page elements such as title tags, meta descriptions, headings, optimized images, internal links, and structured data are highlighted as commonly overlooked basics. The guide also warns that thin pages with minimal content and only a contact form are unlikely to rank in competitive niches.

0
ProgrammingHacker News ·

Median SaaS product lifespan on SaaSHub's graveyard drops from about 4 years to 1.5

SaaSHub's product graveyard, which tracks the status and lifespan of hundreds of thousands of products, showed median lifespan holding near four years for a long period. A sharp decline in 2026 has reportedly brought that median down to roughly 1.5 years. The author attributes the drop to cheap, AI-assisted software creation, which lets many people release products quickly and abandon them when they prove unviable or fail to attract customers. The author argues that distribution and marketing now matter far more, and speculates the trend may continue or that users may eventually build their own tools, leaving a few large platforms dominant.

0
ProgrammingDEV Community ·

PDF merge keeps mixed page sizes; verify the downloaded file, not thumbnails

A merged PDF containing an A4 cover and a Letter-sized report can be correct even if a viewer displays every page at the same width. Viewer previews therefore cannot confirm that the downloaded file preserved each page's dimensions. The article's test used synthetic fixtures and an actual browser download, then checked the output with pypdf and Poppler's pdfinfo. Results matched the intended order, with the Letter page remaining Letter-sized in the middle. The author notes this is a narrow acceptance check, not proof for arbitrary PDFs, and that boxes, rotation and UserUnit must also be compared.

0
ProgrammingDEV Community ·

Tale of Kingdoms: The Shattered Crown Adds an RPG Campaign to Minecraft 26.2

A free Fabric mod called Tale of Kingdoms: The Shattered Crown transforms Minecraft into a role-playing game for version 26.2. Players can join a guild and progress through a main storyline containing 105 quests. The mod also offers 30 spells to learn and fifteen towns to explore. It is available for download through CurseForge, and the developer invites support via Patreon.

0
ProgrammingDEV Community ·

VeloxonHub Details Admin Scheduling: Booking States, Day-Grouped Calendar, No-Show Rates

A DEV Community article explains the administrative side of scheduling software in VeloxonHub, covering work done after a booking is made. Appointments and events share one bookings table, with a status field and a separate payment status field kept apart. Admins approve, check in, or cancel bookings through small server requests, and the list refreshes without manual status edits. The calendar groups occurrences by localized date, defaulting to today plus 30 days, and hosts set weekly availability rules that limit bookable slots. Host permissions are determined server-side, and analytics such as no-show rates are computed through SQL aggregations, with the article emphasizing the denominator used.

0
ProgrammingDEV Community ·

UK VAT Rates Explained: Standard, Reduced, Zero and Exempt Treatments

Getting the VAT rate right on UK invoices matters, since errors can mean overcharging clients or owing HMRC uncollected tax. The standard rate of 20 percent covers most goods and services, including electronics, adult clothing, restaurant meals and most professional and software services. A reduced 5 percent rate applies to a narrow set of items such as home energy, energy-saving installations, children's car seats and mobility aids. Zero-rated supplies are still taxable, meaning businesses charge nothing but can reclaim input VAT, unlike exempt supplies such as insurance, finance and most health services, where input VAT recovery is not allowed. Items outside the VAT system entirely, like statutory fees and wages, complete the framework, and freelancers are advised to check rates before quoting and show rates per line item.

0
ProgrammingDEV Community ·

Week of October 30 Set to Be Heaviest October Layoff Week, Per WARN Notices

Layoff Atlas data drawn from state WARN notices shows 8,520 workers scheduled for layoffs to take effect the week of October 30, the largest weekly total for October. The figures reflect employers' filed plans rather than confirmed job losses, and dates or counts can change as notices are revised. The week of November 13 carries the highest total on the current calendar at 8,744 workers, with November overall showing heavy scheduled cuts. Washington, California, Illinois, Texas and Ohio report the most affected workers across the 90-day window. Totals will shift as new notices are filed and older ones roll out of the window.

0
ProgrammingDEV Community ·

Developer Deploys First Website on Render for Hacktoberfest 2026

A developer has published their first website on Render as part of Hacktoberfest 2026. The post shares a link to the live site, hosted at a hello-render-hacktoberfest subdomain. The author says they are looking forward to completing more challenges during the coming week. The item is a brief personal update rather than a detailed report, so it provides few further specifics about the project itself.

0
ProgrammingDEV Community ·

ZATCA Sets TLV-Encoded QR Code Rules for Saudi E-Invoices in Phases 1 and 2

Saudi Arabia's Zakat, Tax and Customs Authority requires e-invoice QR codes to be cryptographic data structures rather than simple links. QR data must be organized using Tag-Length-Value encoding and then converted to a Base64 string before submission. Phase 1 requires five tags covering seller name, VAT number, timestamp, invoice total, and VAT total. Phase 2 adds four cryptographic tags for the invoice hash, digital signature, public key, and certificate signature. A developer guide published on DEV Community includes a TypeScript implementation and notes common rejection errors such as BR-KSA-26 and BR-KSA-27 when the TLV structure is non-compliant.

0
ProgrammingDEV Community ·

LazyDesk AI: An Open-Source Productivity Assistant Concept Under Development

A developer is building LazyDesk AI, a concept for a lightweight AI-powered productivity assistant aimed at reducing repetitive digital tasks. The planned features include a note summarizer, a smart task manager, a daily planner, a text helper, a focus timer, and a saved notes function. The project favors open-source AI models and accessible web technologies so tools can be used without expensive subscriptions or complex setups. It is being built with HTML, CSS, JavaScript, optional local AI inference, and browser-based storage, with the final approach depending on what runs reliably on everyday hardware. The creator, who is using the project as a learning exercise for the Hacktoberfest DEV Challenge, plans to test core features, document setup, and invite community contributions.

0
ProgrammingDEV Community ·

Meta Conversions API in Node.js: Deduplication, Hashing and Match Quality

Browser pixels miss a growing share of purchases due to Safari tracking protection, ad blockers, consent banners and short-lived cookies. Meta's Conversions API addresses this by sending the same events from a server. The article argues that deduplication, normalised SHA-256 hashing and match quality determine whether a server-side setup helps or hurts. It recommends a shared event_id, such as one derived from the order ID, so Meta can merge the browser and server copies of a Purchase event. It also shows a Node.js example that normalises personal data before hashing, while sending IP, user agent and click or browser identifiers unhashed.

0
ProgrammingDEV Community ·

Python Monitor Tracks Price Gaps Between Polymarket and Kalshi Prediction Markets

A DEV Community tutorial shows how to build a Python agent that polls prediction markets Polymarket and Kalshi for the same event's probabilities. The author cites an October 18, 2024 example in which the two platforms priced the Fed's October rate decision about four percentage points apart. Manually tracking several platforms is impractical, so the agent automates polling, normalizes contract prices to a 0-1 probability scale, and computes the spread. The design uses asyncio for concurrent requests, public APIs only, and explicit termination via a maximum iteration count or keyboard interrupt. The post also flags challenges such as differing API formats, inconsistent contract wording, and error handling.

← NewerPage 108 of 2930Older →