- Are price controls defensible? John Kenneth Galbraith is the most competent, intelligent defender of price controls that I've come across. He was in charge of WWII price fixing— a scheme which most consider to have been a success. War is almost always inflationary. WWI certainly was. WWII much less so. In his book "Money: Whence It Came, Where It Went" Galbraith makes the heretical argument that peacetime governments should use price controls as a means of fighting inflation.Read more...
- Without intentionality, you will find yourself at the center of a barrage of notifications. Each one clamoring for your attention. Each one giving you that dopamine hit. Each one making you feel productive. Each one distracting you from your actual work.Read more...
- I recently argued that deflation ought to be a good thing. If everything gets less expensive over time, savers are rewarded, retirees on fixed pensions are rewarded, basic necessities become more affordable to more people. Shouldn't deflation be a boon to the poor? What's not to love? Well, plenty.Read more...
- In 2020, I switched to Linux. If you're considering making the switch, I recommend it. Here's my unsolicited advice.Read more...
- When I started my zero-dependency Bun application experiment, I had no plans to build a CSS processing layer. My plan was to just hand-roll my CSS like any self-respecting neanderthal. But... I'd forgotten how much I like the convenience of fire and wheels and tools and suchlike. Within a few minutes, I was already well on my way to writing a steaming pile of unmaintainable spaghetti. Thus, I decided to write Tailwind from scratch with zero dependencies.Read more...
- Over the past few weeks, I've been tinkering with building a project from scratch in Bun. Here's why I'm doing this.Read more...
- Simplicity. We all want it, yet it eludes us. We reach for complex tools to solve simple problems, but we all know that most problems are best solved by composing simple tools. Small teams can accomplish much, if they aren't overburdened by a poorly-fitting mishmash of tools.Read more...
- Sessions allow you to store data about a visitor of your site. It is usually used to identify who is making a request, but you can store any arbitrary data in a session. Sessions aren't baked into Bun, so we'll be building out a simple cookie-based session library in this article.Read more...
- Today, we'll be building a small, zero-dependency HTTP handler for serving static assets using Bun. Serving static assets from Bun is pretty simple, but there are some things to consider:Read more...
- Apple tells me I average 2.5 hours per day on my phone. If a full time job is 40 hours per week, I'll spend the equivalent of over 4 years per decade in the full-time job of pissing time away on my phone. Ah, the good life!Read more...
- I'm building a little, zero-dependency application with Bun. Bun comes with JSX support out of the box, but it took a bit of digging to get things working with no dependencies.Read more...
- Live reload lets you see changes instantly in your browser whenever you save any files. It's a must-have if you want to iterate quickly on any browser content. Live reload isn't baked into Bun, but it's fairly easy to wire up.Read more...
- Today, I spun up a Bun service on a Hetzner VPS. It was pretty straightforward, but I thought I'd share my notes.Read more...
- Occasionally on Hacker News, someone asks for codebases that demonstrate excellence. A few consistently top the list:Read more...
- Keep it brief. This is the cardinal rule of public speech. No one will complain if your presentation is too short.Read more...
- Out of curiosity, I ran a little test of SQLite vs the file system (btrfs). The conclusion? SQLite is probably faster for real-world loads.Read more...
- What if I told you that spending $25K today would give you $100K every week for the next ten years? Would you spend it?Read more...