20 random bookmarks
stuff me collect
stuff me collect
How exactly does sakura help you?
- Just drop it in, even on existing HTML content, to get a pretty-looking website (everything “just works”)
- Quick prototyping, especially when working on backend sites and can’t yet be bothered to fidget with CSS/HTML
- Building a quick (but pretty) site/blog for your best friend or aunt!
- No need to remember tons of different class names for every other CSS framework
- Works amazingly with markdown-generated HTML pages (eliminates the need for hacks like including .img img-responsive in <img></img> tags generated from markdown-parser
- Wonderful for people who aren’t really good or interested in design as sakura is nothing but a set of reasonable defaults
After reading Blue Period, Nina got inspired and invested time into learning how to draw, following guidelines from a book. She shared her learnings from the journey. Very inspiring! Can I draw? Should I learn how to?
Marginalia got a new design and a new domain.
Being prolific forces you to take notice. Taking notice develops your taste.
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.
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.
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.
How to use different git identities for different projects
Баунс читает Кафку.
Would you love me if I became a worm?, somebody could ask. I would respond that no, I don't in fact love you, for you are a worm.
Indeed I find humans more valuable.
Reads like some sci-fi story. How is that even a thing??
Science and engineering usually create consistent results. Generally, when you figure out how to make something, you can repeat that at will to make more of something. But what if, one day, you ran the same process, and got different results? You double-checked, and triple-checked, and you kept ending up with a different end product instead?
Perhaps it wasn’t the process that changed, but the environment? Or physics itself? Enter the scary world of disappearing polymorphs.
A modern ebook manager and reader with sync and backup capacities for Windows, macOS, Linux and Web - koodo-reader/koodo-reader
TempleOS has images in comments btw.
Fast, modern and advanced photo management suite. Free and open source Nextcloud app.
Author with cool visual style
Main page - https://johv.dk
He also uses Betula - https://links.johv.dk
For better or worse, I sometimes think. I have heard that I therefore am, but I’m unconvinced. Nevertheless, sometimes I write my thoughts down. Mostly just in my diary, but other times I publish them on the Web. This notebook contains those of my writings that are in a state somewhere between published and private.
Create an infinite amount of straightforward and readable git manual pages.
Service that generates random man pages mocking Git’s dense documentation style.
you can save stuff and it will auto label it. single page with all links, quotes, etc. smart search, tags