We use privacy-friendly product analytics (no session recording, PII masked) to improve OpenStem. Load analytics? Privacy Policy
Software: explore STEM content (page 14 of 25) · openstem
Explore STEM Content
Search the community's STEM library — free to study, yours to make your own.
Software
Programming, algorithms and systems on openstem — flashcards, notes, quizzes, sketches and flowcharts shared by the community. Study free, or clone anything into your library.
A lightweight thread managed by the Go runtime, started with the `go` keyword. Goroutines are multiplexed onto OS threads by the scheduler, are very cheap (~2KB initial stack), so you can run hundreds of thousands concurrently.
Why do protocols like TLS use asymmetric crypto only for the handshake, not for bulk data?
AAsymmetric ciphers can't encrypt more than a few bytes at allBAsymmetric crypto is far slower than symmetric crypto, so it's used only to establish a shared session keyCSymmetric ciphers can't be implemented in hardwareDAsymmetric crypto is actually faster and preferred for everything
Two operations from different transactions 'conflict' when...
AThey both read the same data itemBThey belong to transactions that started at the same timeCThey access the same data item and at least one of them is a writeDThey appear in different tables of the schema
Software
Software · L5 · Database Theory & Query Optimization
One Job Each TypeScript's built-in utility types each transform an existing type in exactly one way. Reaching for the wrong one — or hand-writing a mapped type that already exists as a utility — makes signatures harder to read for no benefi
Software
Software · L2 · TypeScript: Picking the Right Utility Type
What is an error budget and what does it govern?1 / 9
The error budget is 1 minus the SLO (e.g. 99.9% SLO leaves a 0.1% budget) — the amount of unreliability the business tolerates over a window. It governs the release/risk tradeoff: while budget remains, teams can ship features and take risks; once it's exhausted, the org shifts focus to reliability work (freezing risky launches) until the budget recovers.
What is the difference between a list and a tuple?1 / 9
Lists are mutable (modifiable in place) and use more memory. Tuples are immutable and hashable, so they can be dict keys or set members. Use tuples for fixed records, lists for collections you need to mutate.
A provider is a plugin that implements resource and data source types for a platform (AWS, GCP, Kubernetes), translating Terraform config into API calls.
Functions in Python are first-class objects — they can be assigned to variables, passed as arguments, returned from other functions, and stored in data structures.
What does the 'S' in SOLID (Single Responsibility) mean?1 / 10
A class should have only one reason to change — one responsibility. Mixing concerns (e.g. business logic + persistence + formatting) makes code fragile and hard to test. Split responsibilities into focused units.
The public/ Folder Files placed in `public/` are served as-is from the site root: `public/logo.png` is reachable at `/logo.png`. It's the right place for a favicon, robots.txt, or any static file that doesn't need processing. next/image: Op
Delegated Access Without Sharing Passwords The authorization code flow lets a third-party client obtain limited access to a user's account on another service, by routing the login through that service's own authorization server. Public clie