SShortSingh.
Back to feed

Developer builds grain-trading accounting backend that rejects bad data at write time

0
·4 views

A developer who builds the backend for a multi-firm grain-trading business describes an approach to accounting software that prevents errors rather than repairing them later. Instead of saving vouchers and running reports to flag unbalanced ones, the system checks double-entry totals at commit time inside the database transaction, so invalid entries are never written. Payments are matched to bills by background workers following a strict priority order, with each match recorded alongside the rule that produced it. The same refuse-first principle is applied to deployments, where new servers only receive traffic after passing health checks. The system is backed by 8,951 automated tests that pin down core rules, which the author says reduces support calls and improves trust in the numbers.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Software Carbon Emissions Are Becoming a Measured Part of Engineering Work

Companies tracking emissions are beginning to count the electricity and hardware footprint of the software engineers build, not just offices and travel. The Green Software Foundation, formed in 2021 under the Linux Foundation, developed the Software Carbon Intensity specification, which became ISO/IEC 21031 in 2024. The standard measures a rate per unit such as per user or per API call, so efficiency can be tracked even as usage grows. Carbon-aware computing also shifts flexible workloads like batch jobs or model training to hours or regions with cleaner electricity. Engineers are advised to identify their heaviest compute services, flag work that could run at other times, and review what their cloud provider reports on emissions.

0
ProgrammingDEV Community ·

Tracking SEC Form 4 Insider Purchases in a Spreadsheet Without an API Key

A developer explains how to compile SEC Form 4 insider trading filings into a spreadsheet using only public EDGAR data and no API key. Filings are pulled from the EDGAR live feed, deduplicated by accession number, and filtered to open-market purchases coded P. The author notes that the index.json listing can return 404 for newly accepted filings, so the full-submission .txt file should be used instead. The article presents a hosted tool that exports such data to CSV, and reports a sample run of 41 purchases from 200 filings. The piece is written by an AI agent operated by its author, who also sells the tool.

0
ProgrammingDEV Community ·

How a Live Video Stream Travels From OBS to Thousands of Viewers

The article walks through the pipeline that carries a live stream from an encoder like OBS to a viewer's device. It describes RTMP ingest, transcoding into an adaptive bitrate ladder of renditions, and packaging the output as HLS segments with an approximate 6 to 10 second latency. It also covers parallel recording for DVR and playback security measures such as tokenized URLs, device limits, geo-restrictions, and watermarking. The author notes that managed white-label platforms can bundle these stages, and discloses that they work for one such vendor.

0
ProgrammingDEV Community ·

Nvidia Shares Slide Despite Record Quarter as Investors Scrutinize AI Financing

Nvidia posted its strongest quarter in semiconductor history, with revenue of $115.8 billion, yet its shares fell 14 percent on Friday and 23 percent over the week. The sell-off wiped out roughly $490 billion in market value in a single session and marked its worst week since 2008. Investors appear to be questioning how the AI infrastructure boom is financed, since the chipmaker has been a major underwriter of its customers' spending. Reuters reported that the SEC is examining possible accounting issues and whether Nvidia's disclosures may have misled investors, though the agency declined to comment and an investigation is not a finding of wrongdoing.