<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rizwan Rasheed</title>
    <description>The latest articles on DEV Community by Rizwan Rasheed (@rizwan884_11).</description>
    <link>https://dev.to/rizwan884_11</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4273882%2F0e69d503-a4e4-400b-9991-29e213cc4c78.jpg</url>
      <title>DEV Community: Rizwan Rasheed</title>
      <link>https://dev.to/rizwan884_11</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rizwan884_11"/>
    <language>en</language>
    <item>
      <title>A parental control is only as strong as its bypass surface</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:57:07 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/a-parental-control-is-only-as-strong-as-its-bypass-surface-482i</link>
      <guid>https://dev.to/rizwan884_11/a-parental-control-is-only-as-strong-as-its-bypass-surface-482i</guid>
      <description>&lt;p&gt;Building the control is the easy half. The hard half is that your user is being actively worked around by someone who has unlimited time, physical access to the device, and more patience than you do.&lt;/p&gt;

&lt;p&gt;Parental controls are the rare consumer feature with a real adversary - and the adversary is eight.&lt;/p&gt;

&lt;h2&gt;
  
  
  Threat model first
&lt;/h2&gt;

&lt;p&gt;Most consumer software assumes a cooperative user. A parental control cannot. The person operating the device wants the restriction gone, and will explore the state space exhaustively to find the gap.&lt;/p&gt;

&lt;p&gt;Children are extremely good at this, for structural reasons: they have time, they are not embarrassed to try obviously silly things, and they share findings with each other.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where restrictions actually leak
&lt;/h2&gt;

&lt;p&gt;The control surface is rarely the weak point. The surrounding state transitions are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Vector&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Kill the app&lt;/td&gt;
&lt;td&gt;Restriction stops with the process&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reboot&lt;/td&gt;
&lt;td&gt;Does anything re-apply on launch?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delete and reinstall&lt;/td&gt;
&lt;td&gt;Settings return to defaults, lock gone&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change system settings&lt;/td&gt;
&lt;td&gt;Is the restriction reachable from outside the app?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change timezone or clock&lt;/td&gt;
&lt;td&gt;Breaks anything scheduled&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Another path to the same capability&lt;/td&gt;
&lt;td&gt;The control covered one route, not the capability&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That last one is the subtle killer. If you restrict a capability in one place but the platform exposes it somewhere else, you have built a speed bump with a signpost pointing around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a platform will and will not let you do
&lt;/h2&gt;

&lt;p&gt;Mobile operating systems deliberately limit how much one app can constrain another. That sandboxing is correct - you would not want arbitrary apps able to override system behaviour - and it sets a hard ceiling on what any third-party control can promise.&lt;/p&gt;

&lt;p&gt;Which makes honesty part of the design. There is a meaningful difference between:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;This prevents accidental changes and casual circumvention&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;This cannot be bypassed&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first is achievable and genuinely valuable. The second is not something a third-party app can truthfully claim, and claiming it produces parents who stop supervising because they believe the software has it covered. That is a worse outcome than no tool at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design notes that hold up
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Protect configuration, not just the control.&lt;/strong&gt; A lock whose settings screen is open is not a lock.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Re-apply on every launch and resume.&lt;/strong&gt; Assume the process died, because it did.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Persist state outside the session.&lt;/strong&gt; Anything held only in memory resets on the first force quit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make tampering visible.&lt;/strong&gt; A parent who can see the restriction stopped is better served than one who silently loses it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fail toward the restriction.&lt;/strong&gt; On ambiguous state, re-apply rather than release.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the PIN flow boring.&lt;/strong&gt; No hint, no 'forgot PIN' path that a child can complete.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The usability tension
&lt;/h2&gt;

&lt;p&gt;Every hardening step costs the legitimate user something. A parent who cannot quickly change a setting on their own device is being punished by your threat model.&lt;/p&gt;

&lt;p&gt;The resolution that works is asymmetry: make the restricted action cheap for whoever holds the PIN, and uniformly expensive for everyone else. Not clever - but most parental controls fail by making it inconvenient for the adult and merely interesting for the child.&lt;/p&gt;




&lt;p&gt;These are the constraints behind &lt;a href="https://apps.apple.com/app/id6760347207" rel="noopener noreferrer"&gt;Volume Lock&lt;/a&gt;, which sets a maximum volume ceiling on iOS behind a PIN. It is designed to stop accidental and casual changes, which is what a third-party app can honestly offer. If you have shipped in this category, I would like to know which vector caught you out.&lt;/p&gt;

</description>
      <category>security</category>
      <category>ios</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Curation beats generation: what makes a prompt library useful</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:56:55 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/curation-beats-generation-what-makes-a-prompt-library-useful-4hj2</link>
      <guid>https://dev.to/rizwan884_11/curation-beats-generation-what-makes-a-prompt-library-useful-4hj2</guid>
      <description>&lt;p&gt;There are two ways to help someone write a better prompt: generate one for them, or hand them one that already works. The second sounds lazier and is usually more useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why prompt generators disappoint
&lt;/h2&gt;

&lt;p&gt;A prompt generator takes a short description and expands it into a longer one. The output is fluent, plausible and untested - which means you have swapped a prompt you understand for a prompt you do not.&lt;/p&gt;

&lt;p&gt;Three failure modes show up repeatedly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Padding passes for quality.&lt;/strong&gt; Adding &lt;em&gt;ultra detailed, 8k, masterpiece&lt;/em&gt; makes a prompt longer, not more specific, and much of it is inert.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No feedback loop.&lt;/strong&gt; The generator never saw the output, so nothing in the process selects for prompts that worked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your intent gets diluted.&lt;/strong&gt; The one specific thing you wanted ends up as one clause among twenty, weighted the same as the filler.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A curated library inverts that: every entry is there because someone ran it, looked at the result, and kept it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes a library worth keeping
&lt;/h2&gt;

&lt;p&gt;Not size. A collection of ten thousand prompts with no structure is a search problem, not a resource.&lt;/p&gt;

&lt;h3&gt;
  
  
  Organised by outcome, not by technique
&lt;/h3&gt;

&lt;p&gt;People arrive wanting a logo, a profile picture, a sticker, a product shot. They do not arrive wanting &lt;em&gt;cyberpunk style&lt;/em&gt;. Categories should match the job, because that is what the person knows at the moment they open the app.&lt;/p&gt;

&lt;h3&gt;
  
  
  Specific enough to be reproducible
&lt;/h3&gt;

&lt;p&gt;A good entry pins down the parts that determine the result - framing, lighting, treatment - and leaves open only what should vary. Vague entries produce the generic centroid, which is what the person was already getting on their own.&lt;/p&gt;

&lt;h3&gt;
  
  
  Honest about scope
&lt;/h3&gt;

&lt;p&gt;A prompt library is text. It does not generate images, and saying so plainly sets the right expectation and keeps the tool small and fast.&lt;/p&gt;

&lt;h3&gt;
  
  
  Maintained
&lt;/h3&gt;

&lt;p&gt;Models change. Prompts that relied on a quirk stop working. A library with dated entries and periodic pruning stays useful; one that only accretes slowly fills with things that no longer work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The copy-paste constraint is a feature
&lt;/h2&gt;

&lt;p&gt;A library that stays tool-agnostic works wherever the user already is - whichever image tool they prefer, today and after they switch.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Integrated generator&lt;/th&gt;
&lt;th&gt;Tool-agnostic library&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tied to one backend&lt;/td&gt;
&lt;td&gt;Works with any tool&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Breaks when the API changes&lt;/td&gt;
&lt;td&gt;Unaffected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Needs keys or credits&lt;/td&gt;
&lt;td&gt;Needs neither&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Heavier app&lt;/td&gt;
&lt;td&gt;Stays small and offline-capable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The trade is real: no previews, no one-tap generation. For a reference tool people dip into, portability is worth more.&lt;/p&gt;

&lt;h2&gt;
  
  
  Curation as the actual product
&lt;/h2&gt;

&lt;p&gt;The uncomfortable thing about prompt tooling is that the valuable part is not technical. It is someone having run hundreds of variations, kept the ones that worked, organised them by what people actually ask for, and thrown away the rest.&lt;/p&gt;

&lt;p&gt;That is editorial work, not engineering. It does not demo impressively and it is the reason a good library beats a clever generator.&lt;/p&gt;




&lt;p&gt;This is the thinking behind &lt;a href="https://apps.apple.com/app/id6754501908" rel="noopener noreferrer"&gt;PixPrompter&lt;/a&gt;, a tool-agnostic library of over a thousand copy-paste prompts for images, logos, stickers and profile pictures, organised by outcome. If you maintain a prompt collection, I would be curious how you decide when to retire an entry.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>promptengineering</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why AI photo edits look generic, and the vocabulary that fixes it</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:56:42 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/why-ai-photo-edits-look-generic-and-the-vocabulary-that-fixes-it-2b0k</link>
      <guid>https://dev.to/rizwan884_11/why-ai-photo-edits-look-generic-and-the-vocabulary-that-fixes-it-2b0k</guid>
      <description>&lt;p&gt;Ask an image model to make a photo look cinematic and you get the model's average idea of cinematic. Everyone asking that question gets the same average, which is why so much AI-edited imagery looks interchangeable.&lt;/p&gt;

&lt;p&gt;The fix is not a better model. It is naming the thing you actually want.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why vague adjectives converge
&lt;/h2&gt;

&lt;p&gt;Words like cinematic, aesthetic, professional and high quality are &lt;em&gt;evaluations&lt;/em&gt;, not descriptions. They tell the model you want something good without specifying along which axis.&lt;/p&gt;

&lt;p&gt;Faced with that, the model returns the centroid of everything labelled that way in training. The centroid is competent and completely generic - and it is the same centroid for everybody.&lt;/p&gt;

&lt;h2&gt;
  
  
  Photographic vocabulary is a control surface
&lt;/h2&gt;

&lt;p&gt;Photography already has precise terms for the things people mean by cinematic. Using them turns a vibe request into parameters:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Vague&lt;/th&gt;
&lt;th&gt;Specific&lt;/th&gt;
&lt;th&gt;What it controls&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cinematic&lt;/td&gt;
&lt;td&gt;Shallow depth of field, backlit, low key&lt;/td&gt;
&lt;td&gt;Depth and lighting direction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Warm&lt;/td&gt;
&lt;td&gt;Golden hour, low sun angle&lt;/td&gt;
&lt;td&gt;Colour temperature and shadow length&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Professional&lt;/td&gt;
&lt;td&gt;Soft key light, neutral background&lt;/td&gt;
&lt;td&gt;Lighting setup&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vintage&lt;/td&gt;
&lt;td&gt;Film grain, slight halation, faded blacks&lt;/td&gt;
&lt;td&gt;Texture and tonal response&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dreamy&lt;/td&gt;
&lt;td&gt;Diffusion, lifted shadows, soft falloff&lt;/td&gt;
&lt;td&gt;Contrast curve&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dramatic&lt;/td&gt;
&lt;td&gt;Hard side light, deep shadow&lt;/td&gt;
&lt;td&gt;Contrast and direction&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each right-hand term maps to something the model has seen described consistently, because photographers use these words consistently. That is the whole mechanism: borrow a vocabulary that is already precise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The axes worth naming
&lt;/h2&gt;

&lt;p&gt;For photo-style prompts, most of the useful variance lives in five places:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Light direction&lt;/strong&gt; - front, side, back, top. Changes the subject more than anything else on this list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Light quality&lt;/strong&gt; - hard or soft, which sets how shadows terminate.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Depth&lt;/strong&gt; - what is sharp and what falls away.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Colour treatment&lt;/strong&gt; - temperature, saturation, how blacks are handled.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Texture&lt;/strong&gt; - grain, clarity, halation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Name three of those and the output stops looking like everyone else's.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why exclusions matter as much as instructions
&lt;/h2&gt;

&lt;p&gt;Models have strong defaults, and the defaults are often the thing making your output look synthetic: over-smoothed skin, exaggerated symmetry, plastic highlights, saturated teal-and-orange grading.&lt;/p&gt;

&lt;p&gt;Stating what to avoid is frequently higher leverage than adding another positive adjective, because you are correcting a default rather than competing with it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A practical structure
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SUBJECT    what is in frame
LIGHT      direction + quality
LENS       depth, perspective
COLOUR     temperature, grading
TEXTURE    grain, clarity
AVOID      the defaults you do not want
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Slot-based prompts are also debuggable. When output is wrong you can see which slot was empty, instead of rereading a paragraph trying to work out which word caused it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why libraries beat improvisation here
&lt;/h2&gt;

&lt;p&gt;Most people do not want to learn lighting terminology to edit a photo, and they do not need to. A tested prompt for a specific look is a reusable artefact, and the specificity that makes it work is exactly the part that is tedious to write from scratch each time.&lt;/p&gt;

&lt;p&gt;The reason curated prompts outperform improvised ones is not mystique. It is that someone already did the iteration and kept the version that worked.&lt;/p&gt;




&lt;p&gt;I maintain a set of these in &lt;a href="https://apps.apple.com/app/id6754223912" rel="noopener noreferrer"&gt;PromptCraft&lt;/a&gt;, a library of photo-editing prompts you paste into whichever image tool you use. If you have a sixth axis worth naming, I would like to add it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>promptengineering</category>
      <category>design</category>
    </item>
    <item>
      <title>What you can and cannot infer from a single body photo</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:56:30 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/what-you-can-and-cannot-infer-from-a-single-body-photo-4oeg</link>
      <guid>https://dev.to/rizwan884_11/what-you-can-and-cannot-infer-from-a-single-body-photo-4oeg</guid>
      <description>&lt;p&gt;A single phone photo contains almost none of the information you would need to measure a body. Any feature built on one is doing estimation, and the honest design question is what to do about that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why monocular estimates are hard
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Scale is unrecoverable from one image
&lt;/h3&gt;

&lt;p&gt;A photograph has no inherent sense of size. A subject close to the lens and a larger subject further away can project identically. Without a reference object, a depth sensor, or a known camera-to-subject distance, absolute measurements are not derivable - they are inferred from priors about typical proportions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lens geometry distorts proportion
&lt;/h3&gt;

&lt;p&gt;Focal length changes apparent relationships between body parts. The same person photographed from close with a wide lens and from further back looks meaningfully different in proportion. Phone cameras at arm's length sit at the distorting end of that range.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pose and clothing dominate the signal
&lt;/h3&gt;

&lt;p&gt;Stance width, shoulder rotation, whether someone is braced or relaxed, and what they are wearing change the silhouette more than several weeks of training will. If your estimate reads the silhouette, it is reading those things too.&lt;/p&gt;

&lt;h3&gt;
  
  
  Lighting changes the contour
&lt;/h3&gt;

&lt;p&gt;Directional light creates shadow that reads as definition. The same body under two lighting setups produces two different edge maps, and anything derived from those edges inherits the difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  The design conclusion: measure change, not state
&lt;/h2&gt;

&lt;p&gt;Those error sources are large in absolute terms but largely &lt;strong&gt;consistent&lt;/strong&gt; if capture conditions are held steady. The same lens, the same distance, the same pose and similar light produce errors that mostly cancel when you compare two captures.&lt;/p&gt;

&lt;p&gt;Which flips what the feature should claim:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Framing&lt;/th&gt;
&lt;th&gt;Claim&lt;/th&gt;
&lt;th&gt;Honest?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Absolute measurement&lt;/td&gt;
&lt;td&gt;"Your body fat is X%"&lt;/td&gt;
&lt;td&gt;No - not derivable from one photo&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Absolute score&lt;/td&gt;
&lt;td&gt;"You scored 72/100"&lt;/td&gt;
&lt;td&gt;Only as an arbitrary scale&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Relative change&lt;/td&gt;
&lt;td&gt;"Compared with your last capture"&lt;/td&gt;
&lt;td&gt;Yes, given consistent conditions&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A comparison against the user's own previous capture is both more defensible and more useful than a number that implies clinical measurement.&lt;/p&gt;

&lt;h2&gt;
  
  
  Capture consistency is the feature
&lt;/h2&gt;

&lt;p&gt;If comparability depends on consistent conditions, then guiding capture is not polish - it is the accuracy strategy, and it is far cheaper than model work:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Show an alignment outline so distance and framing repeat.&lt;/li&gt;
&lt;li&gt;Prompt for similar lighting; warn on strong directional light.&lt;/li&gt;
&lt;li&gt;Specify a fixed pose and show it.&lt;/li&gt;
&lt;li&gt;Store capture conditions as metadata, and flag comparisons across very different ones.&lt;/li&gt;
&lt;li&gt;Reject obviously unusable frames instead of silently returning a bad estimate.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where this gets ethically sharp
&lt;/h2&gt;

&lt;p&gt;Body metrics are not neutral numbers. A score attached to someone's appearance, delivered with more confidence than the method supports, lands differently from a chart of lifting volume.&lt;/p&gt;

&lt;p&gt;A few constraints worth adopting before shipping anything in this space:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;State plainly that it is a visual estimate for training purposes, not a medical or diagnostic tool.&lt;/li&gt;
&lt;li&gt;Frame output as comparison over time rather than a verdict.&lt;/li&gt;
&lt;li&gt;Keep the emphasis on training behaviour, which the user controls, rather than appearance.&lt;/li&gt;
&lt;li&gt;Do not manufacture precision. One decimal place implies a measurement process you do not have.&lt;/li&gt;
&lt;li&gt;Keep the images on the device. This is among the most sensitive data a user can hand an app.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The restraint costs you a more impressive-looking demo. It also keeps you out of making health claims your method cannot support, which is the failure mode this category keeps repeating.&lt;/p&gt;




&lt;p&gt;This shaped the body scan in &lt;a href="https://apps.apple.com/app/id6787764376" rel="noopener noreferrer"&gt;Fyzik&lt;/a&gt;, where scans feed back into an adaptive training plan and are presented as comparisons over time rather than clinical measurements. If you have worked on capture-consistency UI, I would be interested in what moved accuracy most.&lt;/p&gt;

</description>
      <category>computervision</category>
      <category>ai</category>
      <category>ios</category>
    </item>
    <item>
      <title>Compiling a multi-speaker script into one audio track</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:56:04 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/compiling-a-multi-speaker-script-into-one-audio-track-516j</link>
      <guid>https://dev.to/rizwan884_11/compiling-a-multi-speaker-script-into-one-audio-track-516j</guid>
      <description>&lt;p&gt;Generating one line of speech is a solved API call. Turning a multi-speaker script into one continuous audio track is an assembly problem, and almost none of the difficulty is in the generation step.&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape of the problem
&lt;/h2&gt;

&lt;p&gt;You have a script: several characters, dozens of lines, interleaved. You want one audio file that sounds like a scene rather than a sequence of unrelated clips.&lt;/p&gt;

&lt;p&gt;The naive pipeline is obvious and wrong:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;script&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;audio&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="nf"&gt;tts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;voice&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;speaker&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It produces something technically correct and unlistenable. Here is what it misses.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Silence is content, not padding
&lt;/h2&gt;

&lt;p&gt;Concatenated clips butt directly against each other. Real dialogue has gaps, and the gap length is meaningful: a quick reply reads as agreement, a long pause reads as hesitation or weight.&lt;/p&gt;

&lt;p&gt;Uniform gaps are nearly as bad as none - they produce a metronomic quality that is immediately recognisable as machine-assembled. Gap duration needs to vary with what the line is doing: answering, interrupting, changing subject.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Level mismatch between voices
&lt;/h2&gt;

&lt;p&gt;Different voice models output at different perceived loudness. Concatenate them and the listener rides the volume control.&lt;/p&gt;

&lt;p&gt;This needs a normalisation pass across the assembled track rather than per clip, because per-clip normalisation flattens the intentional dynamics within a line.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Every clip carries its own edges
&lt;/h2&gt;

&lt;p&gt;Generated audio often has small artefacts at the start and end - a click, a breath-like onset, a trailing fade. Individually inaudible; across two hundred joins, it becomes a texture.&lt;/p&gt;

&lt;p&gt;Trimming leading and trailing silence to a consistent threshold, then applying a short crossfade at each join, removes most of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Regeneration must be line-scoped
&lt;/h2&gt;

&lt;p&gt;This is the one that decides whether the tool is usable. Someone will change line 47 of 200.&lt;/p&gt;

&lt;p&gt;If your pipeline regenerates the whole track, you pay full cost and - worse - every other line may come back subtly different, so a one-word fix alters the entire production. Caching per line, keyed on text plus voice plus settings, makes an edit cost one line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;cache_key&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;hash&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;voice_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That single decision is the difference between a demo and something anyone will finish a project in.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Speaker assignment is a parsing problem
&lt;/h2&gt;

&lt;p&gt;Scripts arrive in inconsistent formats - &lt;code&gt;NAME:&lt;/code&gt; prefixes, dashes, stage directions in brackets, inconsistent capitalisation. Stage directions must not be read aloud, which means distinguishing performance notes from dialogue reliably enough that a missed one does not end up spoken by a character.&lt;/p&gt;

&lt;h2&gt;
  
  
  A better pipeline
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;parse script      -&amp;gt; [{speaker, text, directions}]
resolve voices    -&amp;gt; speaker -&amp;gt; voice_id
generate (cached) -&amp;gt; per-line audio
trim              -&amp;gt; consistent edges
normalise         -&amp;gt; across the whole track
space             -&amp;gt; context-aware gaps
join              -&amp;gt; short crossfades
export            -&amp;gt; one track
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Only step three touches a model. Everything else is ordinary audio engineering, and it is where the perceived quality actually comes from.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this unlocks
&lt;/h2&gt;

&lt;p&gt;Done properly, a category of project that previously needed a cast becomes a single-person afternoon: audio drama, fiction podcasts, dialogue-based language practice, multi-character audiobooks, two-host explainers that are actually scripted.&lt;/p&gt;

&lt;p&gt;The constraint that remains is performance, not production. Timing-dependent delivery and overlapping speech are still beyond this, and a scene that depends on an interruption landing precisely is still better recorded by people.&lt;/p&gt;




&lt;p&gt;This is the pipeline behind the Story Builder in &lt;a href="https://apps.apple.com/app/id6775396336" rel="noopener noreferrer"&gt;Fish Audio&lt;/a&gt;, which compiles multi-speaker scripts into a single track on iOS. If you have found a principled way to derive gap length from dialogue context rather than heuristics, I would like to read it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>audio</category>
      <category>programming</category>
    </item>
    <item>
      <title>Prompts are not portable: structuring templates that survive a model change</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:55:52 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/prompts-are-not-portable-structuring-templates-that-survive-a-model-change-5gbg</link>
      <guid>https://dev.to/rizwan884_11/prompts-are-not-portable-structuring-templates-that-survive-a-model-change-5gbg</guid>
      <description>&lt;p&gt;A prompt is not portable. It is a set of instructions tuned to one model's habits, and moving it to another model is closer to a port than a copy.&lt;/p&gt;

&lt;p&gt;Anyone who has maintained a prompt library across model versions has felt this. The template that produced clean structured output last quarter produces something subtly different after a version bump, and nothing in your code changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why prompts do not transfer cleanly
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Models differ in default verbosity
&lt;/h3&gt;

&lt;p&gt;The same instruction yields three sentences from one model and three paragraphs from another. Any prompt that relied on an implicit length convention now needs that convention stated.&lt;/p&gt;

&lt;h3&gt;
  
  
  Format compliance varies
&lt;/h3&gt;

&lt;p&gt;Ask for JSON and you may get JSON, JSON wrapped in a code fence, or JSON preceded by a friendly sentence. If your parser assumed one of those, it breaks on the others - and this varies by model &lt;em&gt;and&lt;/em&gt; by version.&lt;/p&gt;

&lt;h3&gt;
  
  
  Instruction priority differs
&lt;/h3&gt;

&lt;p&gt;When a prompt contains conflicting requirements - be thorough, be brief - models resolve the conflict differently. Ports often fail because an unnoticed conflict was previously resolved in your favour.&lt;/p&gt;

&lt;h3&gt;
  
  
  Few-shot examples carry style, not just structure
&lt;/h3&gt;

&lt;p&gt;Examples teach more than the format. They transmit tone, vocabulary and length, and the degree to which a model absorbs that is model-specific.&lt;/p&gt;

&lt;h2&gt;
  
  
  Structure a prompt so the fragile parts are isolated
&lt;/h2&gt;

&lt;p&gt;Treating a prompt as one block of text makes every edit risky. Separating it by purpose makes the portable parts obvious:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ROLE         who the model is acting as        - usually portable
TASK         what to produce                   - portable
CONTEXT      inputs and constraints            - portable
FORMAT       exact output shape                - rarely portable
EXAMPLES     one or two demonstrations         - rarely portable
GUARDRAILS   what not to do                    - needs re-tuning
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Role, task and context survive a model change nearly intact. Format, examples and guardrails are where the breakage concentrates - and a template that keeps them in separate slots can be re-tuned without rewriting the whole thing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Templates beat finished prompts
&lt;/h2&gt;

&lt;p&gt;A finished prompt solves one instance of a problem. A template with explicit variables solves the class:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Bad:  "Write a product description for a blue ceramic mug."
Good: "Write a {length} product description for {product}.
       Audience: {audience}. Tone: {tone}.
       Avoid: {exclusions}."
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second version is reusable, diffable, and makes its assumptions visible. More importantly, when output quality drops you can see which variable was underspecified instead of staring at a wall of prose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Field-specific beats general
&lt;/h2&gt;

&lt;p&gt;General-purpose prompt collections tend toward the generic, because they target no particular output. The prompts that hold up are domain-shaped: an SEO brief needs different scaffolding from a code review, which needs different scaffolding from a sales email.&lt;/p&gt;

&lt;p&gt;That is an argument for organising a library by job rather than by model. The model is the part that changes; the job does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Maintaining a library without it rotting
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Practice&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Version prompts alongside code&lt;/td&gt;
&lt;td&gt;A prompt change is a behaviour change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Record which model a prompt was tuned on&lt;/td&gt;
&lt;td&gt;Otherwise you cannot tell why it broke&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Keep a few fixed test inputs&lt;/td&gt;
&lt;td&gt;Lets you compare output after a model change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Separate format from intent&lt;/td&gt;
&lt;td&gt;Re-tune one slot, not the whole prompt&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Date your entries&lt;/td&gt;
&lt;td&gt;Stale prompts are worse than none&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The honest summary: a prompt library is not a list of clever strings. It is a small body of tested artefacts with maintenance costs, and treating it as anything less is why most of them quietly stop working.&lt;/p&gt;




&lt;p&gt;I maintain a library along these lines in &lt;a href="https://apps.apple.com/app/id6760140851" rel="noopener noreferrer"&gt;PromptGenius&lt;/a&gt;, which organises prompts by field and lets you fill template variables rather than copy fixed text. Curious whether anyone has found a format slot that genuinely survives model changes - I have not.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>promptengineering</category>
      <category>programming</category>
    </item>
    <item>
      <title>Seeds and batches: designing image generation for iteration, not demos</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:55:40 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/seeds-and-batches-designing-image-generation-for-iteration-not-demos-26ip</link>
      <guid>https://dev.to/rizwan884_11/seeds-and-batches-designing-image-generation-for-iteration-not-demos-26ip</guid>
      <description>&lt;p&gt;Most image generation UIs optimise for the wrong moment. They make the first generation fast and the eleventh one painful.&lt;/p&gt;

&lt;p&gt;That is backwards, because nobody gets what they wanted on the first try. Image generation is a search process, and the interface should be built for searching rather than for demoing.&lt;/p&gt;

&lt;h2&gt;
  
  
  One at a time is the wrong default
&lt;/h2&gt;

&lt;p&gt;The standard loop is: type prompt, wait, look, adjust, wait, look. Each cycle costs your full attention, and you are comparing the current result against a memory of the last one.&lt;/p&gt;

&lt;p&gt;Generating a batch changes the unit of work. Eight variations of one prompt let you compare side by side rather than sequentially, which is how people actually judge visual options. You stop asking 'is this good?' and start asking 'which of these is closest?' - a far easier question to answer.&lt;/p&gt;

&lt;p&gt;The gain is not throughput. It is better decisions per cycle.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seeds are the difference between iteration and gambling
&lt;/h2&gt;

&lt;p&gt;Without a fixed seed, every generation is a fresh sample. Change one word in your prompt and you have changed two variables - the prompt and the noise - so you cannot attribute the difference to either.&lt;/p&gt;

&lt;p&gt;Lock the seed and the loop becomes an experiment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;seed = 184320, prompt = "..."                  -&amp;gt; composition you like
seed = 184320, prompt = "... , golden hour"   -&amp;gt; same composition, new light
seed = 184320, prompt = "... , overcast"      -&amp;gt; same composition, compared fairly
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you are testing one variable at a time, which is the only way to learn what your phrasing actually does.&lt;/p&gt;

&lt;p&gt;Practical rule: &lt;strong&gt;generate unlocked to explore, lock to refine.&lt;/strong&gt; A UI that hides the seed forces everyone to stay in explore mode forever.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sessions matter more than a gallery
&lt;/h2&gt;

&lt;p&gt;Most apps store output as a flat grid of images. But the artefact you want back next week is rarely the image - it is the prompt that produced it, plus the settings, plus the near misses you rejected.&lt;/p&gt;

&lt;p&gt;Organising by session rather than by file preserves that. It is closer to a conversation history than a photo album, and it means picking up an idea two weeks later does not start from nothing.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Flat image gallery&lt;/th&gt;
&lt;th&gt;Session history&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Output only&lt;/td&gt;
&lt;td&gt;Prompt, settings and output together&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No lineage&lt;/td&gt;
&lt;td&gt;The path through variations is visible&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rejected attempts discarded&lt;/td&gt;
&lt;td&gt;Near misses still available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hard to resume&lt;/td&gt;
&lt;td&gt;Resume where you stopped&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Failure handling is a real feature
&lt;/h2&gt;

&lt;p&gt;Generations fail - timeouts, content filters, transient errors. The lazy handling is an error toast that clears the form, which costs the user their prompt and their place.&lt;/p&gt;

&lt;p&gt;Retry in place, preserving prompt and settings, is a small piece of engineering that removes the single most annoying moment in the whole loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case for keeping it local
&lt;/h2&gt;

&lt;p&gt;Prompt history is surprisingly personal. It contains half-formed ideas, client work, things people are embarrassed by, and plenty they would not want associated with an account.&lt;/p&gt;

&lt;p&gt;Keeping history on-device solves that by construction. It also removes the account flow, removes a breach surface, and makes the history browsable offline. The trade-off is real - no sync across devices - but for a creative scratchpad, that is usually the right side of the trade.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you are building one
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Batch by default, single when explicitly asked.&lt;/li&gt;
&lt;li&gt;Expose the seed, and make locking it one tap.&lt;/li&gt;
&lt;li&gt;Store prompt plus settings plus output as one unit.&lt;/li&gt;
&lt;li&gt;Retry in place; never discard a prompt on failure.&lt;/li&gt;
&lt;li&gt;Offer custom dimensions, not just presets - the preset list is never complete.&lt;/li&gt;
&lt;li&gt;Default to local storage and make any upload explicit.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;These are the decisions behind &lt;a href="https://apps.apple.com/app/id6788649609" rel="noopener noreferrer"&gt;PixelForge&lt;/a&gt;, an iOS text-to-image app with batch generation, seed locking and on-device session history. Interested in how others present seeds without scaring off beginners - that is the tension I keep running into.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>ux</category>
      <category>ios</category>
    </item>
    <item>
      <title>Designing UI for AI estimates that users should not fully trust</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:55:17 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/designing-ui-for-ai-estimates-that-users-should-not-fully-trust-17jc</link>
      <guid>https://dev.to/rizwan884_11/designing-ui-for-ai-estimates-that-users-should-not-fully-trust-17jc</guid>
      <description>&lt;p&gt;If your app shows a number, people will treat it as authoritative - no matter what the disclaimer underneath says.&lt;/p&gt;

&lt;p&gt;I ran into this building an identification feature where the model estimates what an object is and roughly what it is worth. The technical part was tractable. The hard part was presenting an estimate without accidentally impersonating an expert.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why disclaimers do not work
&lt;/h2&gt;

&lt;p&gt;The instinct is to render the number, then add 'this is an estimate' in grey text below it. This fails reliably, for three reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visual weight equals credibility.&lt;/strong&gt; A large bold figure above small grey text reads as 'the answer, plus some legal boilerplate'.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Precision implies confidence.&lt;/strong&gt; A specific figure signals a specific process behind it. Round numbers read as estimates; precise ones read as measurements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;People screenshot the number.&lt;/strong&gt; Whatever context you wrapped around it does not travel with it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The disclaimer is not a design solution. It is what you write after the design has already made a promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uncertainty belongs in the data structure
&lt;/h2&gt;

&lt;p&gt;If a result can be uncertain, the uncertainty is part of the result, not an annotation on it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Identification {
  label
  confidence: HIGH | MEDIUM | LOW
  attributes: [{ name, value | NOT_DISCERNIBLE }]
  value_estimate: { low, high, basis } | null
  verification_hints: [string]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two things in that shape do most of the work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;NOT_DISCERNIBLE&lt;/code&gt; as a first-class value.&lt;/strong&gt; Some attributes genuinely cannot be judged from a photograph. Printing method, paper type, fine texture - these need the physical object. A field that can say 'cannot tell from this image' is more useful than one that guesses, and it teaches the user where the method's limits are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A range instead of a point.&lt;/strong&gt; Values are distributions. Rendering &lt;code&gt;low&lt;/code&gt; to &lt;code&gt;high&lt;/code&gt; is both more honest and more useful, because the width of the range itself carries information about how confident the estimate is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give people a path to verify
&lt;/h2&gt;

&lt;p&gt;The single most useful field turned out to be &lt;code&gt;verification_hints&lt;/code&gt;: the search terms that would let someone check the result themselves.&lt;/p&gt;

&lt;p&gt;It changes the app's role from oracle to starting point. The user who cares about the answer now has somewhere to go, and the result stops being a dead end that must be trusted or discarded.&lt;/p&gt;

&lt;h2&gt;
  
  
  Design rules that came out of it
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Instead of&lt;/th&gt;
&lt;th&gt;Do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A single precise figure&lt;/td&gt;
&lt;td&gt;A range, with the basis stated&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hiding low confidence&lt;/td&gt;
&lt;td&gt;Showing confidence at the same visual weight as the result&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Guessing missing attributes&lt;/td&gt;
&lt;td&gt;Marking them as not discernible&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A disclaimer below the number&lt;/td&gt;
&lt;td&gt;Wording in the result itself: 'may be', 'estimated'&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Treating it as a verdict&lt;/td&gt;
&lt;td&gt;Offering verification terms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The commercial objection
&lt;/h2&gt;

&lt;p&gt;An honest version of this UI demos worse. 'Estimated range, medium confidence, three attributes not discernible' loses to a confident single number in a side-by-side comparison, every time.&lt;/p&gt;

&lt;p&gt;It also does not generate the support thread that starts with someone selling something based on your figure. For any app that touches valuation, that asymmetry is the whole argument - the cost of overclaiming is paid by the user, and then by you.&lt;/p&gt;




&lt;p&gt;This came out of &lt;a href="https://apps.apple.com/app/id6761055547" rel="noopener noreferrer"&gt;Stamp Identifier&lt;/a&gt;, which identifies postage stamps from a photo and gives an estimated value range with verification terms, explicitly not an appraisal. If you have shipped uncertainty UI that users actually calibrated on, I would like to see it.&lt;/p&gt;

</description>
      <category>ux</category>
      <category>ai</category>
      <category>design</category>
    </item>
    <item>
      <title>Identifying a trading card from a photo is harder than OCR</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:55:05 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/identifying-a-trading-card-from-a-photo-is-harder-than-ocr-55eg</link>
      <guid>https://dev.to/rizwan884_11/identifying-a-trading-card-from-a-photo-is-harder-than-ocr-55eg</guid>
      <description>&lt;p&gt;Reading the text off a trading card is easy. Knowing &lt;em&gt;which&lt;/em&gt; card it is can be close to impossible from the text alone.&lt;/p&gt;

&lt;p&gt;This is a fine-grained visual classification problem wearing an OCR costume, and it is a good case study in why 'just run OCR on it' fails for a whole category of recognition tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  The text is not the identifier
&lt;/h2&gt;

&lt;p&gt;A card might read: player name, team, year, manufacturer. Four strong signals. And they are often not enough to determine what you are holding, because the same printed front can exist as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The base card&lt;/li&gt;
&lt;li&gt;A parallel distinguished only by border colour&lt;/li&gt;
&lt;li&gt;A foil or refractor version with identical layout&lt;/li&gt;
&lt;li&gt;A numbered variant, where the number appears in small print or on the back&lt;/li&gt;
&lt;li&gt;A reprint from a later anniversary set&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Those can differ in value by two or three orders of magnitude. The text layer is identical across all of them. The distinguishing feature is a colour, a finish, or a tiny serial - exactly the signals that compress away in a phone photo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four problems that make this hard
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Colour is the label, and colour is unreliable
&lt;/h3&gt;

&lt;p&gt;When a border colour &lt;em&gt;is&lt;/em&gt; the class, white balance becomes a correctness issue rather than an aesthetic one. The same card under warm indoor light and daylight produces materially different RGB values. Anything built on raw colour thresholds will misclassify by lighting.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Foil and refractor finishes fight the camera
&lt;/h3&gt;

&lt;p&gt;The visual signature of a refractor is how it behaves across viewing angles - which a single exposure captures badly. Blown highlights from a flash can erase the very texture that identifies the variant.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. The class count is enormous and open
&lt;/h3&gt;

&lt;p&gt;Across decades of sets, manufacturers, sports and trading card games, the label space is huge and grows every release season. Any model trained on a fixed snapshot starts decaying immediately. New releases are not an edge case here, they are a quarterly event.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Condition is a separate judgement entirely
&lt;/h3&gt;

&lt;p&gt;Centering, corner wear, edge chipping and surface scratches are assessed differently from identity, at a different scale, and often from the parts of the image with the least contrast.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing is its own trap
&lt;/h2&gt;

&lt;p&gt;Identification only gets you halfway. Then you need a value, and the obvious source is wrong:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Problem&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Active listings&lt;/td&gt;
&lt;td&gt;Asking prices, not transaction prices&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Average of all sales&lt;/td&gt;
&lt;td&gt;Mixes graded and raw copies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Most recent sale&lt;/td&gt;
&lt;td&gt;One outlier sets the number&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Completed sales, segmented by grade&lt;/td&gt;
&lt;td&gt;What you actually want&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Raw and graded copies of the same card are different assets with different markets. Collapsing them into one average produces a figure that is wrong for both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Designing for uncertainty
&lt;/h2&gt;

&lt;p&gt;The interesting design question is not how to be right more often. It is what to do when you are not sure - and in this domain, that is frequently.&lt;/p&gt;

&lt;p&gt;Options, roughly in order of honesty:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Return the top guess silently.&lt;/strong&gt; Highest perceived accuracy, worst failure mode: a confidently wrong valuation leads to a bad sale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Return a ranked list of candidates.&lt;/strong&gt; Pushes the parallel question to the person holding the card, who can actually see it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Return a range rather than a point.&lt;/strong&gt; Prices are distributions, so showing one is more truthful than a single figure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Say you could not determine it.&lt;/strong&gt; Unsatisfying, and sometimes correct.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The pull toward option 1 is strong because it demos well. It is also how you end up with users who trusted a number and lost money on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What transfers to other domains
&lt;/h2&gt;

&lt;p&gt;If you are building any photo-based identification feature, three things generalise:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Find out whether your distinguishing feature survives the camera pipeline.&lt;/strong&gt; If the signal is a subtle colour or a micro-texture, compression may have removed it before your model sees it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design the capture step, not just the model.&lt;/strong&gt; Guidance on lighting and framing moves accuracy more cheaply than model work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Label uncertainty in the UI, not just in the response payload.&lt;/strong&gt; Users calibrate on what they see.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;These trade-offs come from &lt;a href="https://apps.apple.com/app/id6762130458" rel="noopener noreferrer"&gt;CardVault&lt;/a&gt;, an iOS app that identifies sports and trading cards from a photo and estimates value from completed sales. Curious how others have handled open-set class growth - that is the part I find least tractable.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Cloned voices do not fail on timbre - they fail on prosody</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:54:52 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/cloned-voices-do-not-fail-on-timbre-they-fail-on-prosody-4m1j</link>
      <guid>https://dev.to/rizwan884_11/cloned-voices-do-not-fail-on-timbre-they-fail-on-prosody-4m1j</guid>
      <description>&lt;p&gt;Cloned voices rarely fail on timbre. They fail on everything around it.&lt;/p&gt;

&lt;p&gt;If you are building or evaluating text-to-speech with voice cloning, the useful mental model is that a voice model reproduces &lt;em&gt;how a voice sounds&lt;/em&gt;, not &lt;em&gt;how a person speaks&lt;/em&gt;. Those are different problems, and the second one is where listeners notice something is off.&lt;/p&gt;

&lt;h2&gt;
  
  
  The timbre problem is mostly solved
&lt;/h2&gt;

&lt;p&gt;Give a modern system a clean thirty-second sample and the spectral character comes back convincingly. Pitch range, resonance, the general colour of the voice - that part works.&lt;/p&gt;

&lt;p&gt;This is why demos sound great. A demo is one sentence, read neutrally, with no surrounding context to contradict.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks at paragraph length
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Prosody drift
&lt;/h3&gt;

&lt;p&gt;Humans vary sentence melody across a paragraph. We drop pitch at the end of a thought, lift slightly when a list continues, and compress pacing when something is parenthetical. Generated speech tends toward a stable contour, so sentence twelve carries the same shape as sentence one. Individually fine; cumulatively robotic.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pause semantics
&lt;/h3&gt;

&lt;p&gt;Pause length carries meaning. A short pause groups clauses, a long one separates ideas, and a pause in an unexpected place signals irony or hesitation. Systems generally derive pauses from punctuation, which is a weak proxy. Punctuation encodes grammar, not timing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Emphasis without markup
&lt;/h3&gt;

&lt;p&gt;"I didn't say she took the money" has seven meanings depending on stress. Plain text contains none of that information. Unless the tool exposes per-line control, you get the model's default reading, which is usually the least interesting one.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pronunciation of the words that matter most
&lt;/h3&gt;

&lt;p&gt;Proper nouns, product names, acronyms and loanwords are exactly the terms a script cannot afford to get wrong, and they are the ones with the least training support. Worse, they are often repeated - so one error recurs throughout.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why sample quality dominates everything downstream
&lt;/h2&gt;

&lt;p&gt;A noisy reference sample does not just add noise. The model learns the room, the compression artefacts and any background music as part of the voice, and reproduces them as character. Common failure sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Background music under the reference - the model may learn a musical quality in the voice&lt;/li&gt;
&lt;li&gt;Heavy dynamic compression from a podcast export - flattens the dynamic range it learns&lt;/li&gt;
&lt;li&gt;A performed sample - every later generation inherits that performance&lt;/li&gt;
&lt;li&gt;Multiple speakers in the clip - blended characteristics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The practical rule: a clear thirty seconds in a quiet room beats five minutes of anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it is genuinely good
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Use case&lt;/th&gt;
&lt;th&gt;Works well&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Long-form narration&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Consistent delivery is an asset, not a flaw&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Correcting one line in a finished piece&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Matches surrounding audio from the same model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Localisation into other languages&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Avoids re-casting per language&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scratch tracks while editing&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Replaceable later, speed matters more than nuance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Comedy and timing-dependent delivery&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Meaning lives in the pause&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Overlapping conversational speech&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Turn-taking is not modelled&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Design implications if you are building one
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Expose per-line controls.&lt;/strong&gt; Tone, speed and volume per line beats a global setting, because a script is not uniform.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat the reference sample as the main UX problem.&lt;/strong&gt; Most bad output is a bad sample. Guide recording conditions before generation, not after.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make regeneration cheap at line granularity.&lt;/strong&gt; Nobody wants to re-render eight minutes to fix one word.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build a pronunciation override.&lt;/strong&gt; Proper nouns will be wrong and users need a way to fix them permanently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ship a consent surface.&lt;/strong&gt; Not legal theatre - voice-likeness rules are tightening, and an app that normalises cloning arbitrary voices is building on sand.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The consent part
&lt;/h2&gt;

&lt;p&gt;Clone your own voice freely. Beyond that, the line is simple: do not clone a voice you do not have permission to use. Platforms increasingly remove synthetic speech published without consent, and several jurisdictions are actively legislating on voice likeness. If you are shipping a product in this space, that is a design constraint, not a footnote.&lt;/p&gt;




&lt;p&gt;These trade-offs came out of building &lt;a href="https://apps.apple.com/app/id6766869439" rel="noopener noreferrer"&gt;VoiceTwin AI&lt;/a&gt;, a voice cloning and TTS app for iOS with per-line emotion, speed and volume control. Happy to compare notes if you are working on something similar.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>ios</category>
    </item>
    <item>
      <title>Recurring date reminders are harder than cron</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:54:27 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/recurring-date-reminders-are-harder-than-cron-4o8a</link>
      <guid>https://dev.to/rizwan884_11/recurring-date-reminders-are-harder-than-cron-4o8a</guid>
      <description>&lt;p&gt;A birthday reminder sounds like a cron job. It is not, and the gap between those two ideas is where every date bug lives.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;0 9 * * *&lt;/code&gt; fires at nine o'clock every day. A birthday reminder has to fire once a year, at a useful hour, in the user's current timezone, for a date that may not exist this year, possibly several days in advance, on a device that was switched off at the moment it was due.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cases that break naive implementations
&lt;/h2&gt;

&lt;h3&gt;
  
  
  February 29
&lt;/h3&gt;

&lt;p&gt;Roughly one in 1,461 people has a birthday your calendar logic does not have. Three years in four you must decide: notify on the 28th, notify on March 1, or skip. There is no correct answer, only a documented one - and a silent skip is the option users notice.&lt;/p&gt;

&lt;h3&gt;
  
  
  Timezone drift
&lt;/h3&gt;

&lt;p&gt;A date without a timezone is not a point in time. If a reminder is scheduled in the timezone where it was created and the user then flies somewhere else, it fires at the wrong local hour. Store the intent - 'the 14th, local time, wherever they are' - not a resolved absolute timestamp.&lt;/p&gt;

&lt;h3&gt;
  
  
  Daylight saving transitions
&lt;/h3&gt;

&lt;p&gt;Schedule something for 02:30 local time and in some zones, on some dates, that instant does not exist. In others it happens twice. Most date libraries have an opinion about this, and it is worth finding out what yours is before a user does.&lt;/p&gt;

&lt;h3&gt;
  
  
  The year is optional
&lt;/h3&gt;

&lt;p&gt;People often know a friend's birthday but not their birth year. If your schema has a non-nullable &lt;code&gt;date_of_birth&lt;/code&gt;, you have forced a lie - usually a fake year that then surfaces as a wrong age.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;BirthdayEntry {
  month: 1-12        // required
  day: 1-31          // required
  year: int | null   // optional - age only when present
  lead_times: [0, 1, 7]   // days before, user-chosen
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Device off at the critical moment
&lt;/h3&gt;

&lt;p&gt;Local notifications are scheduled with the OS ahead of time rather than evaluated when due. That changes the design: you are not running a daily check, you are maintaining a rolling window of registered notifications, which has to be reconciled whenever entries change.&lt;/p&gt;

&lt;h3&gt;
  
  
  Platform notification limits
&lt;/h3&gt;

&lt;p&gt;Mobile operating systems cap how many local notifications an app can have pending. With multiple lead times per person, a few hundred contacts will exceed that cap. The fix is to schedule only a forward window and top it up, rather than registering everything up front.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lead time is the whole product
&lt;/h2&gt;

&lt;p&gt;The functional insight is unglamorous: &lt;strong&gt;a same-day reminder is usually useless.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;By the time it fires, whatever you might have done - ordered something, arranged a call, written something personal - is no longer possible. The reminder tells you that you have already failed, which is strictly worse than not knowing.&lt;/p&gt;

&lt;p&gt;So lead time is not a preference toggle, it is the core feature:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lead time&lt;/th&gt;
&lt;th&gt;What it enables&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;7 days&lt;/td&gt;
&lt;td&gt;Order a gift, arrange something&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1 day&lt;/td&gt;
&lt;td&gt;Write something real, plan a call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same day&lt;/td&gt;
&lt;td&gt;Send a message&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Which means multiple lead times per entry, not one global setting. The people you want a week for and the people you want the morning of are different people.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why local-first fits this problem
&lt;/h2&gt;

&lt;p&gt;A birthday list is a social graph. Names, dates, relationships - it is exactly the kind of data that is uncomfortable to hold on someone else's server, and it carries no benefit from being there.&lt;/p&gt;

&lt;p&gt;The app does not need a backend to compute anything. Date arithmetic is local, notifications are local, storage is small. Keeping it on-device removes a breach surface, removes an account flow, and removes the recurring cost of running infrastructure for a utility that earns very little per user.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist if you are building recurring reminders
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Store month/day separately from year, and make year nullable.&lt;/li&gt;
&lt;li&gt;Decide and document your February 29 policy.&lt;/li&gt;
&lt;li&gt;Persist the scheduling intent, not a resolved UTC timestamp.&lt;/li&gt;
&lt;li&gt;Reconcile scheduled notifications on launch, on timezone change, and on data edit.&lt;/li&gt;
&lt;li&gt;Respect the platform's pending-notification cap with a rolling window.&lt;/li&gt;
&lt;li&gt;Support multiple lead times per entry.&lt;/li&gt;
&lt;/ol&gt;




&lt;p&gt;I hit all of these building &lt;a href="https://apps.apple.com/app/id6760343022" rel="noopener noreferrer"&gt;BDVibes&lt;/a&gt;, a birthday and anniversary reminder app for iOS with configurable lead times and on-device storage. If you have a better answer for February 29 than 'pick one and document it', I would like to hear it.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>ios</category>
    </item>
    <item>
      <title>A loan is not an expense: modelling debt in a personal finance app</title>
      <dc:creator>Rizwan Rasheed</dc:creator>
      <pubDate>Tue, 01 Dec 2026 03:54:06 +0000</pubDate>
      <link>https://dev.to/rizwan884_11/a-loan-is-not-an-expense-modelling-debt-in-a-personal-finance-app-op5</link>
      <guid>https://dev.to/rizwan884_11/a-loan-is-not-an-expense-modelling-debt-in-a-personal-finance-app-op5</guid>
      <description>&lt;p&gt;Most personal finance apps model one thing: money leaving. That assumption quietly breaks half the ledger.&lt;/p&gt;

&lt;p&gt;If you have ever built or used an expense tracker, you have hit this. You lend a friend money. What is it? It is not an expense - the money is coming back. It is not a transfer between your own accounts. It is not income. Most apps make you pick one of those three, and whichever you pick makes your reports wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the standard schema fails
&lt;/h2&gt;

&lt;p&gt;The typical minimal transaction model looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Transaction {
  id, date, amount, category, note
  type: INCOME | EXPENSE
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Everything is forced into a binary. A loan given out has to masquerade as an expense, so your spending total inflates and your net worth silently drops by an amount you still own. A repayment received has to masquerade as income, so your earnings look better than they were.&lt;/p&gt;

&lt;p&gt;Neither entry is wrong on its own. Together they produce a ledger that balances and still misrepresents reality.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the model actually needs
&lt;/h2&gt;

&lt;p&gt;A loan is not a transaction. It is an &lt;strong&gt;obligation with a lifecycle&lt;/strong&gt;, and transactions attach to it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Loan {
  id
  direction: LENT | BORROWED
  counterparty
  principal
  currency
  opened_at
  status: OPEN | SETTLED | WRITTEN_OFF
}

Repayment {
  id, loan_id, date, amount, note
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That shape answers the questions people actually ask, none of which the flat model can answer:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;How much is outstanding on this loan right now?&lt;/li&gt;
&lt;li&gt;How much am I owed in total, across everyone?&lt;/li&gt;
&lt;li&gt;Has this person paid anything back since August?&lt;/li&gt;
&lt;li&gt;What is my position if every open loan settles?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Four edge cases that decide your schema
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Partial and irregular repayment
&lt;/h3&gt;

&lt;p&gt;Informal loans are not amortised. Someone pays back whatever they have, whenever they have it. Any model that assumes a schedule will not survive contact with real lending between friends.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Direction can reverse
&lt;/h3&gt;

&lt;p&gt;You lend someone money, they lend you some later, and the net position flips. If &lt;code&gt;direction&lt;/code&gt; is immutable on the loan, that is two loans. If you try to net them automatically, you will produce a number neither party recognises.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Multi-currency
&lt;/h3&gt;

&lt;p&gt;Lend in one currency, get repaid in another, and now you need a rate - and a decision about &lt;em&gt;which&lt;/em&gt; rate. The honest options are: store both amounts as entered and do not convert, or store a rate per repayment. Converting silently at today's rate produces a balance that changes when nobody paid anything.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Write-offs
&lt;/h3&gt;

&lt;p&gt;Some loans are never repaid. The status needs to distinguish &lt;em&gt;settled&lt;/em&gt; from &lt;em&gt;written off&lt;/em&gt;, because they mean opposite things in a report even though both close the loan.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why receipts matter more than you expect
&lt;/h2&gt;

&lt;p&gt;The feature request that keeps coming up for informal lending is not analytics. It is a shareable record.&lt;/p&gt;

&lt;p&gt;Informal loans run on memory, and memory diverges. A dated PDF showing principal and every repayment resolves a conversation that otherwise turns into two people being sincerely certain of different numbers. That makes export a core feature rather than a nice-to-have.&lt;/p&gt;

&lt;h2&gt;
  
  
  Offline-first is not optional here
&lt;/h2&gt;

&lt;p&gt;Expense logging has a brutal decay curve: a transaction not recorded within a minute or two is often never recorded. If the app needs a connection to accept an entry, you lose entries - and for a ledger, a missing entry is worse than an imprecise one.&lt;/p&gt;

&lt;p&gt;Local-first storage with optional backup sidesteps the whole problem. It also avoids holding other people's financial details on a server, which is a liability you do not want for a solo-maintained app.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Concern&lt;/th&gt;
&lt;th&gt;Flat transaction model&lt;/th&gt;
&lt;th&gt;Loan as an entity&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Outstanding balance&lt;/td&gt;
&lt;td&gt;Manual arithmetic&lt;/td&gt;
&lt;td&gt;Derived&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total owed to you&lt;/td&gt;
&lt;td&gt;Impossible&lt;/td&gt;
&lt;td&gt;One query&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Spending reports&lt;/td&gt;
&lt;td&gt;Inflated by lending&lt;/td&gt;
&lt;td&gt;Accurate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Partial repayment&lt;/td&gt;
&lt;td&gt;Unrelated rows&lt;/td&gt;
&lt;td&gt;Attached to the loan&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shareable record&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;Generated from the loan&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If you are building anything that touches money people lend each other, model the obligation before you model the transaction. Retrofitting it later means migrating every historical row and guessing at intent.&lt;/p&gt;




&lt;p&gt;I applied this in &lt;a href="https://apps.apple.com/app/id6763291145" rel="noopener noreferrer"&gt;IncomeMap&lt;/a&gt;, an iOS expense tracker with a loan and debt manager, offline logging and PDF receipts. Interested in how others have modelled write-offs - it is the case I am least happy with.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
