Skip to main content

Skills en este repositorio

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

SkillsMP ha recopilado 224 skills de maxrave-dev/kotlin-footguns. Abre una skill para revisar su origen y sus detalles.

maxrave-dev/kotlin-footguns

Mostrando 40 de 224 skills recopiladas.

ocupación
sin clasificar
descripción

Inset consumption travels to a composable's descendants and never to its siblings, so two inset-aware bars stacked in one column each reserve the system bar and open a band of dead space exactly one bar tall. Covers parameterising a bar's `windowInsets` with…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A timestamp column written through an ORM type converter can hold the local wall clock encoded as if it were UTC — an exact round trip that is only correct through the converter, and the converter is chosen by the field's TARGET TYPE, so declaring a…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

One bridge joins a local component to a shared room, with the direction of travel decided by role — the source publishes what it does, the follower applies what arrived and publishes nothing — plus a flag held across the apply so a locally-observed side…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Sweep a travelling highlight through a label by putting a moving gradient on the TextStyle itself — the glyphs are painted by the brush, so there is no overlay, no clip and no measured width to keep in sync. Covers declaring the infinite transition…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Soften an app-wide touch ripple by alpha alone and give it the right bounds — the colour derives from the local content colour and stays correct inside a forced-scheme subtree, while pinning one paints darker than a near-black surface. Covers why the theme's…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A see-through selection chip — a drop shadow under a transparent shape shows THROUGH it as a dark ring, and zeroing the resting elevation does NOT remove it, because each interaction state carries its own independent token default. Covers dropping the…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Two vendors ship the same package name at different versions into different source sets of one multiplatform build, so a member function that one vendor has already turned into a top-level extension resolves on exactly one target — a specific import compiles…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A top-N query is right for a list and wrong for a share-of-the-whole — the cut tail shrinks the denominator and the entropy normaliser, inflating concentration and diversity alike — so the same grouped data needs two queries with different bounds. Covers why…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A parse-failure fallback must be a sentinel outside the legal domain, or expressed in the type — never a value the success path can also produce. Expose "not known" as its own question. Use when a field means two different things depending on where it came…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

When two looks of one screen each need a fit-exactly-one-screen measurement — measure the fixed blocks, split the remainder into equal gaps, floor it at a minimum — keep a copy per look instead of hoisting one; covers the effect keys the block needs, the…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

The order a WebSocket session has to be brought up and torn down — reader started before the first message because the answer comes back through it, the handshake settled on a deferred with a timeout, the close frame sent under a non-cancellable context, and…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A weighted child occupies its whole slot even when its content measures narrower, which pins the sibling beside it to the far edge; `weight(1f, fill = false)` releases the unused width back to the row's arrangement so child, gap and sibling read as one…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Draw a linear gradient at an arbitrary angle across a Compose box so both endpoints land exactly on the box edge — the per-quadrant endpoint formula from the requested angle, why rotating the diagonal overshoots and why clamping to the nearest edge distorts…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A rotating sweep-gradient ring around a card, chip or button, built from a clipped box, a full-size gradient and an opaque inset surface parked on its middle — where the modifier order is the whole mechanism and no blend mode is involved — plus why the…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A remote write can answer "ok" and still have discarded what you sent, saying so only in a secondary field riding along with the success. Model accepted-but-discarded as its own outcome, read that field on every write, and log a discard loudly. Reach for it…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Back an app up into one zip that lands in the user's own Downloads folder with no storage permission, keeping only the newest N archives. Covers checkpointing the database's write-ahead log before the file is copied, assembling the archive in cache first,…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Drive a screen's colours from its artwork — which extracted swatch to use for an accent versus for a large page background, luminance-adaptive darkening so overlaid text stays readable on any image, the hex parsing helper this needs, and what to do when…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Implement a programmatic audio fade — a sleep timer, an alarm ramp, a duck — on a gain line of its own instead of the user's volume, and restore that gain from the player's own completion path. Use when a fade drags the volume slider down in the UI, when the…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Hold Android audio focus once at app level when several player instances are alive at the same time — dual-player crossfade, precached players — and keep focus-driven ducking off whatever gain line a fade already owns. Use when background playback dies…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Wrap an integer flag set handed up from a lower layer in a single-field value class exposing contains and containsAny, so call sites stop writing raw bitwise tests against library constants. Covers keeping the wrapper allocation-free, why the flag constants…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Wire build-time configuration into a Kotlin Multiplatform app with BuildKonfig — secrets read from an untracked local properties file and injected as generated constants, with the no-secrets branch getting empty strings so the feature disables itself instead…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Serve the stored copy immediately, then the fresh one, from a single repository flow — and emit an error only when nothing was served, because an error after a successful emission replaces working content the user is already reading. Use when a screen shows a…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Sweeping a local cache database down to what the user actually owns — ordering container deletes before leaf deletes, telling "kept by state" columns apart from genuine garbage, re-checking conditions inside the DELETE, and pinning the record currently in…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Find and fix CI steps that only ever passed by timing luck — an asynchronous detach of a same-name mounted volume colliding with the next iteration's mount, and a downloader that quietly saves an error page as the artifact; reach for it when a step that ran…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Deleting the dependent rows that exist only to serve a state at the exact transition that ends that state — rather than leaving them to a later bulk sweep — and why a foreign key cannot do this for you when only a flag changes. Reach for it when tables grow…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Build a collapsing header from five siblings in one box — four sharing a single scroll state, one driven by a boolean instead — with artwork moved by a graphics layer at half the scroll rate, a title interpolated along a two-segment curve into the pinned bar,…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Turn several independent condition flows into one on/off gate with `combine` + `distinctUntilChanged` + `collectLatest`, make both the start and the teardown branch idempotent, and run teardown uncancellably. Use when a subsystem starts before it is fully…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

The ordered list of probes, system properties and platform gates a Compose desktop entry point must run before its first window exists. Covers warming the JDK's desktop-integration API ahead of any native load, renderer and interop properties that are read…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Model an endpoint that returns a page plus a next-token as Flow<Resource<Pair<items, token?>>> — a null token means the end, the caller stores only the token, and a bounded prefetch primes the first pages before anything is shown. Use when wiring an…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Build a crossfade between two media items with one player instance per item and a second live instance during the blend, then keep transport commands and playback settings correct while two players are audible. Use when adding a fade to a player, or when…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Decide when a crossfade must NOT run — the item plays as video, the item is too short for the fade, or two consecutive items belong to the same album — and encode each rule so it survives shuffle, an auto-length fade and a queue that keeps growing. Use when a…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A client plugin that logs every outgoing request as one paste-ready curl command — POSIX single-quoting so a body full of quotes, dollars or newlines survives the shell, the whole command in a single log call, a redaction list, and a body read that does not…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A house style over Material3's ModalBottomSheet — transparent container plus your own surface, zeroed window insets with an explicit end spacer, a hand-rolled drag handle, and hide-then-dismiss so the sheet animates closed before it leaves composition. Use…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Replacing a media engine's default shuffle order so that tracks added mid-playback land contiguously after the current one instead of being scattered through the rest of the queue. Use when "play next" or an appended continuation page ends up in random…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A slim seek bar with a buffered-progress track behind it, built from Material3's Slider with custom track and thumb slots — including the fraction-not-your-own-scale rule that keeps the thumb from pinning at the end, and the state gate that stops incoming…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Drive periodic background work straight from the settings store, so a toggle or an interval change takes effect immediately without a restart. Covers combining several preference flows into one scheduling decision, the update-in-place enqueue policy that lets…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Wiring a custom URL scheme end to end on a JVM desktop app — per-OS registration, the argument filter at startup, single-instance forwarding, and delivering a callback's token to app state. Reach for it when clicking a link or returning from a browser…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

A second always-on-top, frameless desktop window for playback controls — its existence held as one boolean outside the composition, the same state object as the main window, a hand-rolled drag that anchors to absolute pointer coordinates, a native minimum…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Order a desktop app's startup so the single-instance guard runs before the dependency container and before anything opens on-disk state. Covers forwarding a second launch's arguments to the running instance and exiting, bridging a restore request from outside…

Idioma del texto original: inglés

actualizado
ocupación
sin clasificar
descripción

Wire a desktop app into each OS's system now-playing and transport surface behind one facade, so a failed native initialisation disables the integration and never takes playback down. Covers initialising on the platform's main thread inside a packaged app,…

Idioma del texto original: inglés

actualizado
Mostrando 40 de 224 skills recopiladas.