Skip to main content

Skills neste repositório

maxrave-dev/kotlin-footguns - Página 3

O SkillsMP coletou 224 skills de maxrave-dev/kotlin-footguns. Abra uma skill para revisar a origem e os detalhes.

maxrave-dev/kotlin-footguns

Mostrando 40 de 224 skills coletadas.

ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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"…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
ocupação
sem classificação
descrição

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…

Idioma do texto original: inglês

atualizado
Mostrando 40 de 224 skills coletadas.