Skip to main content

Skills dans ce dépôt

maxrave-dev/kotlin-footguns - Page 3

SkillsMP a collecté 224 skills depuis maxrave-dev/kotlin-footguns. Ouvrez un skill pour examiner sa source et ses détails.

maxrave-dev/kotlin-footguns

Affichage de 40 skills collectés sur 224.

métier
non classé
description

The state a relay pushes to a new member is the source's last command replayed, so its position is however old that command is — obeying it drops the joiner at the start of something everyone else is halfway through. Ask for the live position the moment you…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A lazy list's `spacedBy` arrangement applies between every pair of items and compounds with each item's own edge padding, so blocks that must read as one unit belong in ONE item carrying its own tighter spacing rather than in three items relying on the list's…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Build refracting "liquid glass" surfaces in Compose with a backdrop library, and avoid the three failures that waste the most time — a rim highlight that is directional by default and so goes nearly invisible on small round buttons, a backdrop source nested…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Ship every icon as a generated ImageVector extension property on one receiver object, fetched from the icon font's own Compose generator, so the bytecode shrinker can drop the ones you never reference. Covers the generator request and its axis parameters, the…

Langue du texte source : anglais

mis à jour
métier
non classé
description

An opt-in switch that mirrors a local flag onto a signed-in remote account — turning it on back-fills everything already flagged, turning it off stops mirroring and deliberately does not undo, and the per-item call is three-valued so "not attempted" is…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Estimate a peer's clock offset from ping/pong round trips — take the peer's own processing time out before halving, weight each sample against the best round trip seen, insist the local time source is monotonic, and fall back to the uncorrected value while…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Build a ranked mosaic (one big tile plus smaller ones) with an arm for every possible count, so no entry is silently dropped and no arrangement leaves an empty rectangle — plus one clip around the whole block rather than one per tile. Use when a "top five"…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A top-level tab has to be registered in every navigation surface that holds its own copy of the tab list — bottom bar, rail, and a stylized bar that keeps two lists — plus the graph and the flag that gates it, or the tab exists in code and never renders. The…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A child toggle gated by a parent condition must key its auto-disable effect on the parent's current value, grey out rather than hide when the gate is closed, and be gated again at the consumer — otherwise the child sticks ON with no way for the user to clear…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Make one stored value mean the same thing on two unrelated audio backends by defining the band centres, the width and the range once, verifying both against a reference implementation instead of by ear, and declining the platform's built-in effect whose…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Return a whole period's figures as one immutable snapshot from a single suspend call, rather than as a dozen independent flows the screen has to line up — a screen comparing two spans needs each span coherent, and separate emissions let a count from this…

Langue du texte source : anglais

mis à jour
métier
non classé
description

An optional build-time dependency of a media engine may be missing from another platform's bundle, and the engine rejects the WHOLE chain string when one stage in it is unknown — so retry without the optional stage rather than losing the mandatory one, and…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A palette generator that flips its state to Loading before its own suspension point reports no colour for the entire duration of every generation, and a generation cancelled part-way leaves it Loading with nothing to restart it — so any surface reading the…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Print the share of input a distribution could actually classify, computed with exactly the predicates that built the buckets, and keep that line reachable when coverage is zero. Use when a chart is built over a nullable join or a parsed text column, when the…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Model "asked, and not yet answered" as its own field, because without it a rejected request and a peer who simply has not looked at their screen are indistinguishable — both look like nothing happened. Covers the one set against many clears, clearing locally…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Decide whether the freshly-loaded item should start, and where it should start, before you build it — then pass both into the load call, rather than loading with a hardcoded "start playing" and correcting it a moment later. Reach for it when a follower in a…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Keep a group of clients together by publishing the playhead with every command, correcting it for the time the command spent in flight, and seeking only when the local gap exceeds a tolerance — rather than by making everyone wait for the slowest member. Use…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Derive "which preset is this" by comparing the presets against the value in force instead of storing a label beside it, so editing drops to Custom by itself and returning re-selects — and derive any per-preset field that is a function of the preset's own…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Build a seek control from a progress indicator plus a transparent pointer layer instead of from a slider — a hit box taller than the visual, drags consumed so an ancestor pager cannot steal a scrub, the drag's own fraction shown while interacting, a thumb…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Speak protobuf from shared Kotlin by annotating ordinary data classes with field numbers instead of generating a code layer — with the encoder setting that makes the bytes match a generated encoder, the equality override a byte-array field needs, and the…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Every publisher in a shared session is edge-triggered off a change, so a participant who was already running when they took the publishing role emits nothing and the group sits in silence — publish a full snapshot on becoming the source, and again when a new…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A barrier that holds a group until every member reports ready — answer it on bufferedness rather than on playing, answer only when you are actually named, name who is being waited for in the UI, and understand that one member that never answers freezes…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Cache a large published index by parsing it into indexed rows once and re-checking it with the server's own ETag, so a routine freshness check costs a couple of hundred bytes — replaying the stored validator only while rows exist, treating a 200 that parses…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Every bitmap a home-screen widget draws is copied into the RemoteViews payload handed across a process boundary, and the platform rejects an update whose bitmaps exceed a fixed budget — so decoding each image at the size it is drawn is not an optimisation, it…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Delete a feature that duplicates a newer one — two effects on one output multiply — after auditing what else uses the handle the removed feature appeared to own, deleting the no-op stubs on the other platforms, and force-stopping before judging whether the…

Langue du texte source : anglais

mis à jour
métier
non classé
description

The five stages a remote response passes through — transport model in a per-integration service module, a pure parser layer, a domain model, a result envelope, then collection — with the rule that each integration is its own module so one source's breakage…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Gate an adaptive layout on the window's own width-versus-height, never on the platform, and flip every geometry value the gate owns in the same breath — frame sizing, content scale and scrim height. Use when a layout is right on a phone and wrong in a narrow…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Tell an opt-in marker from a restricted-to marker before adding suppressions — the first is enforced by the compiler and demands acknowledgement, the second demands nothing and means something different and worse; includes how to read which one an API carries…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Give every reconnect loop exponential backoff, a ceiling, a class of failures it refuses to retry, and a lifecycle gate — then give the feature a health signal, because one that fails silently stays broken for months. Use when a background connection drains…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Turn a user-facing feature off for the duration of a mode with a runtime override on the component, never by writing the stored preference — a process death mid-mode would leave the user's real setting permanently changed. Use when entering a mode has to…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Two playback backends need opposite plumbing for the same setting — one whose per-stream consumers sample a shared field needs no push at all, one whose every new handle starts blank needs an explicit re-apply at each creation site. Use when a setting reaches…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Inside a layout scope, a scope-extension composable of the same name wins over the top-level one — silently, since both compile — so a call written for the plain version gets the scoped version's defaults and layout behaviour; covers fully qualifying to force…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Split one screen into a shell that owns every cross-look concern and a content layer that only renders, connected by two holders — a state snapshot and an actions bag — so adding a second look costs one branch instead of a parameter-list edit; covers why the…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Filtering a paging stream only ever searches the pages already loaded, so whether an item is findable depends on how far the user happened to scroll — the search must query the store and render as a sibling overlay, leaving the paged reader and its…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A component that renders nothing when its feature is unavailable cannot remove the container someone else wrapped it in — gate the slot on the same availability predicate, publish that predicate beside the component, and branch the slot's clickable and…

Langue du texte source : anglais

mis à jour
métier
non classé
description

Build a radar/fingerprint chart whose axes are normalised 0..1 from your own data — no external corpus, one guarded denominator per axis, and a second polygon (the previous period) because a lone shape on self-normalised axes says nothing. Use when a "usage…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A relay that owns the shared state stamps its own default onto fields your command did not set — most painfully forcing "not running" onto every item change — so a follower that obeys the message verbatim stops the thing it just loaded. Carry the previous…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A selection dialog that maps the chosen localized label back to a stored value breaks the day two labels translate identically — the write is skipped or lands on the wrong option, with no error; covers carrying the id instead of the text, making the miss…

Langue du texte source : anglais

mis à jour
métier
non classé
description

The moment an app shell paints its content panels in anything other than colorScheme.background, every gradient, scrim and fade whose tail converges on colorScheme.background ends on a hard seam — the decoration is still correct, its destination colour is…

Langue du texte source : anglais

mis à jour
métier
non classé
description

A vertical slide transition defaults to HALF the element's height, so it appears already halfway through its own movement and the first part is missing — which reads as a pop, not a slide. Covers passing the full height, the sign that decides which edge it…

Langue du texte source : anglais

mis à jour
Affichage de 40 skills collectés sur 224.