20 random bookmarks

stuff me collect

2025-01-21

197.

Quantum computing for the very curious

quantum.country/qcvc

Learn and understand quantum computing with built-in spaced repetition. I really like this method of learning and would like to see more courses that use this method and tech about some programming concepts.

2024-12-15

190.

One big choice shapes a hundred more

sive.rs/ripple

Knowing the consequences I want, what choice would create them? What big choice would nudge a hundred others that way?

2024-12-09

189.

Tiger Style

github.com/tigerbeetle/tigerbeetle/blob/a43f2205f5335cb8f56d6e8bfcc6b2d99a4fc4a4/docs/TIGER_STYLE.md

Our design goals are safety, performance, and developer experience. In that order.

Contrary to popular belief, simplicity is also not the first attempt but the hardest revision

code, like steel, is less expensive to change while it's hot.

Safety

NASA's Power of Ten — Rules for Developing Safety Critical Code

  • Use only very simple, explicit control flow for clarity.

  • Put a limit on everything. Fail Fast

  • Assertions detect programmer errors. The only correct way to handle corrupt code is to crash.

  • Assertions are a safety net, not a substitute for human understanding.

    • Build a precise mental model of the code first.

    • encode your understanding in the form of assertions,

    • write the code and comments to explain and justify the mental model to your reviewer,

    • and use VOPR as the final line of defense, to find bugs in your and reviewer's understanding of code.

  • No memory may be dynamically allocated (or freed and reallocated) after initialization.

  • Declare variables at the smallest possible scope, and minimize the number of variables in scope.

  • Good function shape is often the inverse of an hourglass: a few parameters, a simple return type, and a lot of meaty logic between the braces.

  • Centralize control flow. When splitting a large function, try to keep all switch/if statements in the "parent" function, and move non-branchy logic fragments to helper functions.

  • Centralize state manipulation. Let the parent function keep all relevant state in local variables, and use helpers to compute what needs to change, rather than applying the change directly.

Developer Experience

  • Add units or qualifiers to variable names, and put the units or qualifiers last, sorted by descending significance. latency_ms_max rather than max_latency_ms.

  • Callbacks go last in the list of parameters.

  • Order matters for readability (even if it doesn't affect semantics). On the first read, a file is read top-down, so put important things near the top. The main function goes first.

  • Don't overload names with multiple meanings that are context-dependent.

2024-11-24

177.

Super cool looking personal site

caitsith.neocities.org/myhomepage

It has aesthetics associated with 90s and 2000s internet.

2024-11-05

Reposted 170.

Database Remote-Copy Tool For SQLite

sqlite.org/rsync.html

2024-11-01

167.

Throw Out Your Black Plastic Spatula

www.theatlantic.com/health/archive/2024/10/black-plastic-spatula-flame-retardants/680452

It’s probably leaching chemicals into your cooking oil.
Replacing a black plastic spatula with a steel or silicone option is an easy way to cut down on at least part of one’s daily dose of hormone disruptors

2024-09-05

Reposted 150.

Расстрельный список препаратов — Encyclopedia Pathologica

encyclopatia.ru/wiki/Расстрельный_список_препаратов

База.

2024-07-23

142.

dashing dog, searching for purpose | Derek Sivers

sive.rs/pdog

Focus on what fascinates you, even if it’s uncharacteristic.
There is no purpose because there is no line connecting moments in time.
There is no plot.
You are not a story.

Reposted 136.

The Forth Methodology of Charles Moore by Jeff Fox 12/09/01

www.ultratechnology.com/method.htm

Don't leave openings in which you are going to insert code at some future date when the problem changes because inevitably the problem will change in a way that you didn't anticipate. Whatever the cost it's wasted. Don't anticipate, solve the problem you've got.

Reposted 133.

photoview/photoview: Photo gallery for self-hosted personal servers

github.com/photoview/photoview

Photo gallery for self-hosted personal servers. Contribute to photoview/photoview development by creating an account on GitHub.

2024-07-14

Reposted 130.

Self-care checklist – Thomas Baart's Microblog

micro.thomasbaart.nl/2024/07/13/self-care-checklist

2024-07-08

126.

Ente Auth

ente.io/auth

Open source 2FA authenticator, with end-to-end encrypted backups

2024-07-04

122.

Edna - scratchpad and note taking app

github.com/kjk/edna

Heavy use of shortcuts, has unique concept of blocks with different types (i actually like it a lot). Blocks can have type of code (and can be formatted). In Math blocks lines are evaluated as expressions with results at the end. Can execute golang code.

2024-07-02

Reposted 117.

Как правильно работать с убеждениями

spectator.ru/entry/6701

Вывели с клиентом универсальную «инструкцию к терапии». На случай, если кому-то это нужно. Как часто и бывает, у него была популярная мечта сначала что-то поменять в голове, а потом зажить по-новому.

2024-06-28

102.

Convert bookmarklet to Chrome extension

sandbox.self.li/bookmarklet-to-extension

2024-06-20

93.

Stop Using Fandom

j3s.sh/thought/stop-using-fandom.html

if you are unfortunate enough to browse a fandom wiki without an ad blocker, you will experience what i like to call "attention assault"

if you are a fandom wiki owner & you would like to move your wiki content elsewhere, i will offer you my expertise at $0/hour. i know lots about servers, software, and maintenance. just email me - let's get you out of fandom's ecosystem.

2024-04-15

57.

О полезности contextvars

habr.com/ru/companies/domclick/articles/521702

2024-03-28

Reposted 49.

Create a shared digital calendar with significant people in your life

practicalbetterments.com/create-a-shared-digital-calendar-with-significant-people-in-your-life

Instead of asking over and over again if she is working tomorrow. I just consult her very organised calendar — and when she wants to check if I'm free she looks at my very empty calendar.

2024-03-13

24.

GUIdebook: Graphical User Interface gallery

guidebookgallery.org/index

2024-03-12

19.

How I backup my Photos

arslan.io/2023/02/25/how-i-backup-my-photos

How to backup photos using Apple, lightroom, nextcloud