Computer science Ultimate Study Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

41 Terms

1
New cards

Kotlin out (covariance)

Declaration-site modifier that makes a type parameter covariant (read-only producer), mapping to Java's ? extends E.

2
New cards

Kotlin in (contravariance)

Declaration-site modifier that makes a type parameter contravariant (consumer only), mapping to Java's ? super E.

3
New cards

inline

Inline function modifier that allows the compiler to expand the function body and lambda at call sites, avoiding lambda allocation.

4
New cards

reified

Type parameter modifier for inline functions that preserves the actual type at runtime, usable only in inline functions.

5
New cards

by lazy

Delegation mechanism that computes a property value on first access and caches it; supports SYNCHRONIZED, PUBLICATION, and NONE thread-safety modes.

6
New cards

Sealed class

Kotlin class hierarchy where subclasses are known at compile time, enabling exhaustive when checks.

7
New cards

Inline value class

Single-field wrapper class annotated with @JvmInline that is usually eliminated at runtime, avoiding object allocation.

8
New cards

Sequence

Lazy collection pipeline that processes elements one at a time, reducing intermediate collection allocations for large chains.

9
New cards

Continuation (suspend compilation)

Compiler-generated state machine enabling a suspend function to pause and resume while preserving local state.

10
New cards

Structured concurrency

Concurrency design where child coroutines are bound to a parent scope so cancellation and failures propagate predictably.

11
New cards

supervisorScope

Scope function where failure of one child does not cancel sibling coroutines.

12
New cards

StateFlow

Hot Flow holding a single current value that conflates updates and skips emissions when the new value equals the previous one.

13
New cards

SharedFlow

Hot Flow for event emission with configurable replay and buffer overflow policies.

14
New cards

callbackFlow

Flow builder that adapts callback-based APIs and requires awaitClose to release resources.

15
New cards

Happens-before

Memory model guarantee that one action's effects are visible to another action that follows it.

16
New cards

volatile

Keyword ensuring writes are visible across threads and preventing certain reorderings, needed for safe double-checked locking.

17
New cards

Zygote

Android process that starts all app processes by forking from a preloaded framework process.

18
New cards

Looper

Message loop on a thread that dequeues and dispatches messages from its MessageQueue.

19
New cards

singleTop

Android Activity launch mode that reuses an existing instance at the top of the task and routes new intents to onNewIntent.

20
New cards

SavedStateHandle

Android mechanism that stores UI state in a Bundle, surviving process death, and is accessed via SavedStateHandle in ViewModels.

21
New cards

WorkManager

Android background work API with guaranteed deferred execution, constraints, chaining, and reboot persistence.

22
New cards

Binder

Linux kernel IPC mechanism enabling efficient cross-process calls, interfaces defined via AIDL.

23
New cards

Compose rendering phases

Compose phase order: composition, then layout, then drawing; deferring state reads to later phases skips earlier work.

24
New cards

@Stable

Compose annotation promising observable changes notify Compose and equals is consistent.

25
New cards

@Immutable

Compose annotation promising a value never changes after construction, enabling skipping.

26
New cards

derivedStateOf

Compose function that computes a derived value only when its state inputs change, avoiding unnecessary recomposition.

27
New cards

Interceptor

OkHttp component that intercepts and modifies requests and responses in a chain.

28
New cards

Single source of truth (SSOT)

Room-based offline architecture where the local database is the single source of truth for the UI.

29
New cards

Conditional HTTP caching

Retrofit or OkHttp mechanism reusing a cached response via ETag and If-None-Match, receiving 304 Not Modified.

30
New cards

Idempotency key

Server-side guarantee that repeating a request with the same key does not duplicate its effect, used for safe payment retries.

31
New cards

UID sandbox

Android sandbox where each app runs under its own Linux UID for isolation.

32
New cards

Android Keystore

Hardware-backed secure key storage that keeps cryptographic keys non-extractable from the app process.

33
New cards

CertificatePinner

OkHttp feature pinning expected server certificate public keys to prevent MITM attacks.

34
New cards

Build cache

Gradle build feature caching task outputs and reusing them across builds to skip work.

35
New cards

Convention plugin

Gradle build setup defining reusable build logic in a build-logic composite build.

36
New cards

Time To Initial Display (TTID)

Android 2-minute start-up measurement from process start until the first frame is drawn.

37
New cards

Baseline Profile

Ahead-of-time compiled profile shipped with an app to speed up startup by pre-compiling critical code paths.

38
New cards

StrictMode

Android tool for detecting violations of threading and VM policies, such as disk reads on the main thread.

39
New cards

Treeification

Java HashMap mechanism converting long collision chains into red-black trees, typically at 8 entries per bucket.

40
New cards

LruCache

Memory-safe Android cache that evicts the least recently used entries when a size limit is reached.

41
New cards

Unidirectional Data Flow (UDF)

Pattern wrapping the same instance of a database or UI state into a single observable state holder to avoid inconsistent views.