Skip to main content

Skills in diesem Repository

maxrave-dev/kotlin-footguns - Seite 6

SkillsMP hat 224 Skills aus maxrave-dev/kotlin-footguns gesammelt. Öffne einen Skill, um Quelle und Details zu prüfen.

maxrave-dev/kotlin-footguns

Es werden 24 von 224 gesammelten Skills angezeigt.

Beruf
nicht klassifiziert
Beschreibung

A rebuild-state flag on the queue marks "being rebuilt" versus "stable" (two operative values, whatever the enum declares), so re-entrant load requests return early and nothing snapshots the queue while it is half-built. Use when pagination fires twice for…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Running a bytecode shrinker over a JVM desktop app — which optimization families must stay off and why, why obfuscation breaks the rendering and reflection layers, the keep-rule families a native-binding plus coroutines plus HTTP-client app needs, and how to…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Read a build log by going to the bottom for the verdict and then to the FIRST error marker for the cause — never a fixed-size window from either end, because the causal message and the failure banner sit at opposite ends of the output. Use when a background…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Expose state through `asStateFlow()` rather than an upcast of the mutable holder, and turn a cold source flow hot with `stateIn(scope, WhileSubscribed(timeout), initial)` so it survives collector churn without running forever. Use when a screen re-queries its…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

One table of method shapes for a repository sitting over a local database plus a remote API — local reads as a cold flow moved onto the IO dispatcher, remote reads as a flow of a success/error envelope, writes as withContext. Use when adding methods to a…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Ship prebuilt native libraries to a multiplatform desktop build by splitting bundling into two Gradle tasks with different homes — a dev-machine task that builds the slices, packs tarballs and prints their digests, and a CI task that only downloads and…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Why a raw-query DAO method runs on a read-only connection, so database compaction fails there with "attempt to write a readonly database" while a checkpoint on the same connection succeeds and hides the problem. Reach for it when a bulk delete frees no disk…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

When two nearly identical things behave differently, count the variables that still differ and run one swap-or-trade test that eliminates at least half of them, before writing any fix. Use when the same symptom has survived two or more attempted fixes, when…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

A small @Stable holder for multi-select in a Compose list — keyed by stable id rather than list position, with every mutation funnelled through one private method so a hard cap on the selection size cannot be bypassed, plus the toggle/clear/select-all…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Hold the colours that have no Material role — a liked-state pink, an active-line highlight, shimmer tones, overlays that sit on artwork — in an @Immutable token class provided through staticCompositionLocalOf, with the bytecode-level reason static is the…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

A self-measuring shimmer modifier plus skeleton composables that stand in for a list while it loads — how the modifier learns its own size, why the base colour under the sweep is load-bearing, why the modifier order between clip and background changes what…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Build a scrim that melts artwork into the page background without a visible seam — smoothstep easing so the ramp is flat at both ends, colour stops interpolated in Kotlin rather than left to the renderer, and a transparent stop that carries your own RGB…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Why `x NOT IN (subquery)` matches zero rows and still reports success whenever a NULL is actually present in the subquery result — a standing risk for any nullable column — how to guard every such subquery, and how to make a silently-inert statement…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

A conflating state holder keeps one slot, so a callback that writes it several times per event makes write ORDER the correctness question — collectors see only the last write. Use when a spinner sits over content that is already loaded, when a loading flag…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Ship a build with crash reporting and a build with none from one codebase, by swapping a module that exposes three top-level functions instead of an interface, so call sites are byte-identical and the no-tracking build provably contains no reporting code.…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

One list row carrying three gestures at once — tap, long-press-to-select, and swipe-sideways-for-an-action — plus a mode flag that changes what the tap means. Covers the pointerInput key that decides whether the swipe detector sees the current mode or the one…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Handling a transitive dependency whose strict version constraint overrides the version you chose, dragging a shared lower-level library up or down for the whole build — how to find who pinned what, when to force a version back versus align everything with the…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

A small keyed cache for values that drift — each entry carries the moment it was fetched and answers an isStale check against a time-to-live constant, the whole map is stored as one JSON string in key-value preferences, and decoding is lenient plus wrapped so…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Lay out a type-safe Navigation-Compose graph so it stays readable as the destination list grows — one serializable route object per file grouped by area, area graphs as extension functions on the graph builder, a single transition set on the host, and…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

The shape a workaround should take when the bug is in a library you cannot patch — trace the mechanism as far as you actually got, name the tradeoffs you accepted, leave an escape hatch so a failure degrades instead of going silent, write the explicit…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Ship a self-signed MSIX (the modern Windows application package format) that end users can actually install without a hosted update site — bundle an install script plus the signing certificate beside the package, script the trust-then-sideload steps, and keep…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Detect that a desktop app is running inside a virtual machine on Windows after the classic command-line management query tool was removed in Windows 11 — query the management layer through PowerShell, probe both the manufacturer and the model field, and pick…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Write an agent skill that survives an adversarial review — a description carrying both the trigger and the error symptom the reader is staring at, a short orientation, a Traps section that dominates the file, and verification commands you have actually run.…

Quellsprache: Englisch

Aktualisiert
Beruf
nicht klassifiziert
Beschreibung

Sequence a large XML-to-Compose migration — hardest screen first, expect the real work to be consolidating scattered state rather than swapping widgets, and plan for navigation to drag a route-serialization migration in with it. Use when planning a…

Quellsprache: Englisch

Aktualisiert
Es werden 24 von 224 gesammelten Skills angezeigt.