Skip to content
tezvyn:

All bites

The whole library, newest first. Filter by what you are here for, or pick a topic if you already know.

8668 bites

Page 70

Android & Kotlin2 min read

R8 shrinking, obfuscation, and optimization

Shrinking removes unused code/resources, obfuscation renames symbols to short opaque names, optimization inlines and simplifies; shrinking also strips unreachable code that could be exploited.

Android & Kotlin1 min read

Build a custom layout in Jetpack Compose

Use the Layout composable with a MeasurePolicy, measure each child once with constraints, then place children and report your size.

Analytics & Metrics1 min read

Define and calculate Weekly Active Users

Define a meaningful active action, count distinct users over a rolling 7-day window, and exclude bots and background syncs.

Analytics & Metrics1 min read

Use Difference-in-Differences without an A/B test

Give a scenario like a region-wide launch, apply Difference-in-Differences comparing treated vs control over time, and state the parallel-trends assumption.

Analytics & Metrics1 min read

Determine A/B test sample size

Define baseline rate, minimum detectable effect, significance (alpha), and power (1-beta); smaller effects and stricter thresholds need more users.

Analytics & Metrics1 min read

Design analytics event schema validation

Define a schema registry, validate at both client (fast feedback) and server (authoritative gate), and quarantine failures to a dead-letter store.

Analytics & Metrics2 min read

Calculate MRR with SQL including annual plans

Sum monthly_price for subscriptions active this month, filter on start and end dates, and normalize annual plans by dividing annual price by 12.

Analytics & Metrics2 min read

Interpret a p-value in an A/B test

Define it as P(data this extreme | null true), interpret 0.03 against a 0.05 threshold, and state what it is NOT.

Analytics & Metrics1 min read

Define a consistent day across timezones

Store events in UTC, capture the local/source timezone, then convert to a single reporting timezone at query time.

Analytics & Metrics1 min read

Implement CDC from OLTP to warehouse

Contrast log-based CDC with query-based timestamp polling, cover deletes and load on source, then pick log-based for minimal impact.

Analytics & Metrics1 min read

Design a multi-touch attribution model

Pick a model (time-decay, position-based, or data-driven Shapley), stitch touchpoints by user identity into ordered paths, then assign fractional credit.

Analytics & Metrics1 min read

Reframe time series for a tree model

Lag and rolling-window features, calendar and cyclical encodings, then split chronologically to avoid leakage.

Analytics & Metrics1 min read

Find leading indicators of long-term churn

Cohort renewers vs churners, compare first-30-day engagement depth and breadth, validate correlations and check causality.

Analytics & Metrics1 min read

Calculating Daily Active Users in SQL

Need per-event user_id and timestamp and a clear active definition; count distinct user_id within the day in a fixed timezone.

Analytics & Metrics1 min read

Client vs server tracking: pros, cons, examples

Client-side wins on UI context but loses data to blockers and tampering; server-side wins on reliability and trust but misses pure UI events.

Analytics & Metrics2 min read

Building a conversion funnel in SQL

Count distinct users reaching each ordered step, compute step-over-step conversion; the biggest drop-off is the lowest consecutive ratio.

Analytics & Metrics2 min read

Bundled analytics vs warehouse-native trade-offs

Warehouse-native gives one source of truth and SQL flexibility but shifts modeling, performance, and UX onto your team; bundled tools are turnkey but siloed.

Analytics & Metrics2 min read

Investigating analytics vs database count gaps

Causes include ad-blocker loss, differing identity logic, timezone mismatches, filtering, and pipeline delay; investigate by aligning definitions and tracing one user.

Analytics & Metrics2 min read

Architecting multi-touch attribution

Ingest touchpoints, resolve to one identity, order into paths, apply a model; last-touch is trivial, time-decay needs the full path.

Analytics & Metrics1 min read

SQL for a three-step onboarding funnel

Anchor the 30-day signup cohort, count distinct users reaching each later step in timestamp order; conversion is each step over the prior.