azaleas retweeted
Each dot randomly chooses one friend and one enemy.
* At each step every dot moves 0.5% closer to the centre of the floor,
* takes a large step towards their friend,
* and a small step away from their enemy.
At random intervals one dot re-chooses friend and enemy.
azaleas retweeted
some things move fast, some things hold steady — real power is knowing when to use which.
juniors ship fast, seniors clean up. startups disrupt, corporations sustain. revolutions shake things up, institutions keep them standing. lightning strikes, mountains endure. comets obliterate, planets mold life over millennia.
too much speed, and things collapse. too much stability, and nothing evolves. the real winners? the ones who ride the chaos without losing control, who break things just enough to rebuild something better.
just like in hindu mythology — brahma creates, vishnu sustains, and shiva destroys. creation without stability crumbles, stability without change stagnates, and destruction without purpose is just chaos. the real magic? knowing when to be which.
azaleas retweeted
This overview of the gun emoji throughout the last decade says so, so much about the last decade, without actually saying anything.
azaleas retweeted
The web development industrial complex has lied to your face:
- auth: yes you can do it yourself
- scale: yes you can do it yourself
- database: yes you can do it yourself
- server: yes you can do it yourself
And no when your site goes viral you don't need to pay a $20,000 bill
Replying to @dhh
The merchants of complexity will try to convince you that you can't do anything yourself these days. You can't do auth, you can't do scale, you can't run a database, you can't connect a computer to the internet. You're a helpless peon who should just buy their wares. No. Reject.
azaleas retweeted
The merchants of complexity will try to convince you that you can't do anything yourself these days. You can't do auth, you can't do scale, you can't run a database, you can't connect a computer to the internet. You're a helpless peon who should just buy their wares. No. Reject.
azaleas retweeted
"Estimating all projects is devilishly difficult, and estimating large projects is virtually impossible. Yet we insist that what hasn't worked for sixty years will definitely work on this next project, if we all just try a little harder. Delusional." world.hey.com/dhh/software-e…
azaleas retweeted
The thing to know about merchants of complexity is that they never go away, they merely migrate. From WS-DeathStar to microservices to premature k8s to auth services to GraphQL and beyond. There's always a new insecurity popping up to prey on. world.hey.com/dhh/they-re-re…
azaleas retweeted
If you wanna know how overengineering in web dev is going:
Yesterday someone asked me how I built my startup and I made up an extremely convoluted tech stack
While in fact it's built with just PHP and jQuery
At this point over 800 people have bookmarked the tweet
azaleas retweeted
Last week, I shipped a 10x faster version of an in-memory cache in use at Gusto. The impact was ~minor, a 10-20% faster controller action as a result. Goes to show how micro-benchmarks don't always lead to macro-improvement.
But, it's important to reflect: why wasn't the cache this fast in the first place? Am I just a big mega-brain genius that's better at coding than everyone else? Or is something else happening here?
The cache wasn't fast to start with for a few reasons:
1. Requirements unclear. The requirements for read speed were unclear and not stated. Is 1 read/sec good enough? 100? 1 million? It depends on how many reads you need to do per transaction. I found that, in the real world, we needed to access this cache ~25k times or more. 12k reads per second sounds pretty good in abstract, but then you realize it's taking up 2 seconds of a web response! It's probable that no one even knew what this requirement was when the cache was written, and instead we had to learn this over time. It's not always possible to be 100% clear on requirements upfront, which is why premature optimization is a thing. Because the requirements were unclear, we added a lot of observability overhead that caused the cache to slow down considerably. But that overhead seemed fine because we didn't know how fast it needed to be!
2. Katamari Damacy Cache. The cache was a jumble that had been built over almost 10 years. It contained a lot of different types of data and had a lot of functionality that had been slowly added piece by piece over a decade. No one had stepped back to look at the whole picture. This is a classic refactoring/maintenance problem, and its no different for performance. The software organization needs to create adequate space, time and resources for this kind of deep, long-term work to occur.
3. Too conservative in strategy. In this case, we were essentially caching an underlying DB table. It had only 7k rows and is updated only by automated DB migration, never by humans. The old cache used a typical "fetch" based approach of miss-and-then-write. But, we could instead load all 7k rows into memory right away, and never expire them unless the process was restarted. Now, our cache only misses on the very first access, and all remaining accesses are warm. This is also something which is revealed over time. Maybe 10 years ago we couldn't have predicted that this table would be so static.
We can't design perfect software the first time around because we don't even yet know what perfect is.
azaleas retweeted
Don't converge, don't comply. The web is the most important software platform exactly because this hasn't happened. Write your Ruby, your Python, your whatever with pride and a smile. I'd rather stop programming before writing biz logic in Go or Rust!
azaleas retweeted
Bleh, Apollo Client is full of Barrel File poison.
I need to write a very long blog post on why the general perception of tree shaking is ridiculously out of touch with reality
azaleas retweeted
Stuff like this makes it really hard for me to take Bun seriously for any production use-cases. The continued disregard for standards and specifications is... bad. 😢
You can't just break tooling across the ecosystem. This isn't cute, it's just reckless.
azaleas retweeted
Servo relies on SpiderMonkey as its JavaScript and Wasm runtime. But what if you could use Servo with other engines, such as V8?
Our ongoing efforts to improve the layers between Servo and SpiderMonkey may enable exactly that, while making them safer and more idiomatic.
↓
azaleas retweeted
as a longtime fan of Conway's "Game of Life" algorithm i never once considered visualizing the time axis physically -- this is breathtaking and elegant to me
credit:
instagram.com/reel/C2hoRnFsm…
azaleas retweeted
New article on @hashnode!
Let’s talk about IndexedDB. I have been working with it closely for more than 3 years. And I want to create an article which I wish I had at the start.
The article covers everything: API, tricky moments, optimizations hacks.
blog.xnim.me/indexeddb-guide
azaleas retweeted
If you struggle knowing which domains you should `preconnect` (or when to use `crossorigin`), then this is for you: Correctly Configure (Pre) Connections.
csswizardry.com/2023/12/corr…
azaleas retweeted
Does bundles dev server work? Let’s look at some honest numbers.
Vite is able to serve 10k TS modules (small, but with transpilation and source maps, and 25-level-deep import chains) in ~5s.
github.com/yyx990803/vite-de…
azaleas retweeted
Periodically people will ask why ESLint doesn’t do its parsing in Rust (via WebAssembly) because speed.
The reason is that serializing and deserializing ASTs is expensive and actually negates any performance gains.























