SShortSingh.
Back to feed

Measuring Component Volatility and Ordering Dependencies by Change Frequency

0
·4 views

A chapter on software design turns the idea of a volatile module into a measurable quantity: a non-negative score reflecting how often a component is expected to change. It describes four estimation methods of increasing sophistication, from simply counting commits over a period to predictive machine-learning models, and suggests starting with historical commit counts drawn from the repository. Volatility values are normalized by the largest observed value so they fall between zero and one, with the user interface layer typically scoring highest. The chapter then defines a volatility-compatible ordering, where each dependency points from a component to one at least as volatile, and proves such an ordering exists in an acyclic graph exactly when every dependency satisfies this condition. It also introduces volatility distance, the absolute difference between two components' volatilities, whose average across dependencies gives an alignment score where lower indicates better design.

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 ·

Developer Builds Five Landing Page Templates in a Day and Sells Them for $29

A developer grew tired of building landing pages from scratch and decided to package reusable designs as a digital product. The five templates cover SaaS, agency, app, product, and portfolio use cases, each built with Tailwind CSS via CDN and delivered as a single HTML file. The templates use no JavaScript frameworks and require no build step or package dependencies. The developer listed them on Gumroad for $29, noting the setup took about 15 minutes, and argued that digital products have near-zero marginal cost and that simple designs suit template sales.

0
ProgrammingDEV Community ·

Coding agents should store artifacts in S3-compatible storage that outlives their machines

Coding agents often run on disposable machines whose disks are wiped when they stop, so reports, build outputs, and logs disappear unless saved elsewhere. Pasting large files into pull request comments does not scale, which is why object storage is recommended. The guide suggests keeping only reviewer-relevant items such as test and coverage reports, release builds, failure logs, and screenshots, while excluding caches, the working tree, and anything containing secrets. It recommends one bucket per project with a per-run prefix tied to an audit-trackable ID, and walks through creating a bucket and a narrowly scoped, expiring access key using Sandscale's CLI. Access keys are created by a person and stored in Vault so they stay out of shell history.

0
ProgrammingDEV Community ·

Guidance on Tracking SMS Template Revisions for Logistics Signup Notifications

The article advises that an SMS template should stay with the team that approves its wording, with each signup notification event recording the template revision used. For a logistics signup, application ownership fits when one release controls both the verification link and its surrounding text, while separate messaging-service ownership requires a clear publishing contract. Shared ownership is presented as a third option, though it creates deployment dependencies on variable names. Throughout, the piece stresses that an accepted send request is not the same as a completed account verification. It uses a synthetic, executable TypeScript example to illustrate release diagnostics without assuming any particular provider's API.

0
ProgrammingDEV Community ·

Hunny Bunny: A Moderated Browser-Based Random Video Chat After Omegle's Closure

Omegle shut down in November 2023, leaving a gap for spontaneous video chats that was filled by unmoderated clones plagued by bots and spam. A developer has built Hunny Bunny, a random one-on-one video chat service that runs in mobile and desktop browsers over WebRTC without requiring an app download. The platform requires Google sign-in, age confirmation for users 18 and older, and a working camera, while incoming video stays blurred until an on-device check clears it. Calls and text are end-to-end encrypted and unrecorded, with only a single flagged frame kept if a moderation review is triggered. Users can also match by up to three interests, join friend groups via a six-digit code, and use report, block, and instant exit controls.