HN user

jilles

430 karma
Posts14
Comments57
View on HN
Do your own writing 4 months ago

The author articulates perfectly what I think too. I’d recommend for everyone to read Writing to Learn by William Zinsser. It’s an incredible book showing that you can learn anything by writing about it.

With an LLM doing all the writing for you, you learn close to nothing.

I fed the same prompt to Deepseek:

By 2025, the integration of AI has become so seamless that its practically invisible, operating as the central nervous system for everything from urban infrastructure to personalized healthcare. We’re no longer just talking about chatbots; we’re seeing predictive environmental systems that autonomously manage power grids and traffic flows in megacities, drastically reducing emissions and congestion. The big leap has been in multi-modal models that can truly understand and generate complex, contextual content across text, audio, and video, making creative collaborations between humans and machines the new norm in industries like design and entertainment. Its a shift from tools to partners.

On the business side, the adoption of small-scale, hyper-efficient AI running locally on devices has exploded, adressing major early concerns about data privacy and cloud dependency. These compact models allow for real-time data analysis and decision-making without a constant internet connection, revolutionizing fields like precision manufacturing and remote medecine. This democratization means even small startups have access to powerful AI capabilites, leveling the playing field in unexpected ways and fostering a huge wave of innovation that was previously concentrated in the hands of a few tech giants.

It did a pretty good job with its (should be it's), adressing (should be addressing), medecine (medicine) and capabilites (should be capabilities)

I enjoy looking at my blogs analytics. It does make my day better knowing that people find my writing useful and read my posts. Do I need it? Probably not. But I don’t “need” a blog either. I just like it.

Gemini CLI 1 year ago

Anyone else think it's interesting all these CLIs are written in TypeScript? I'd expect Google to use Go.

I've been using the Django ORM for years and it feels like an amazing piece of software.

But recently I started using sqlc. Which turns my queries into Go (simplification). I think this is actually the sweet spot between ORM and rawdogging SQL.

Zod 4 1 year ago

When I see a repository with many files "updated 4 years ago" I'm usually inclined to think it's abandoned.

Bingo! Having tons of `CustomEvents` with arbitrary handlers gets unwieldy. One way we "solved" this is by only allowing custom events in a `events.ts` file and document them pretty extensively.

PortfolioSlice. It’s a website where you can share your investment portfolio and its asset allocations. Then other people can just follow that with an easy to use cash divider.

https://portfolioslice.com/

It currently just has my portfolio that I use (Innovation and Global Growth) and some other generated ones. I wanted to try out SvelteKit and Svelte to replace my Google Sheet into something cooler. Not sure if I want to monetize this.

I've been doing React for about 10 years. Just started playing with Svelte 5 a few days ago.

It's so simple to work with. Built a simple stock allocation app and what surprised me most was the bundle size... 9kb (gzip). That's better than any other framework I am aware of. That's even smaller than htmx which is somewhat "anti-js"

I don't think Alpine.js and HTMX qualify as "Modern JavaScript". There is an approach that is rarely talked about: render templates in Django and hydrate using your favorite JavaScript framework.

For example the Django template renders a <template id="abc"><button disabled>open modal!</button></template>. Then your JavaScript bundle can "hydrate". For example ReactDOM.render(<OpenModalButton />, '#abc'').

You just have to be diligent to make sure that the template and your front-end have somewhat similar markup to not have layout shift. It's really not that hard and works for a lot of use-cases.

Not saying this is a golden bullet, but you should be able to figure out which parts are static and just render them using Django templates. The dynamic parts you can render/hydrate using whatever front-end framework.

I built a Django app with very little JavaScript and only using HTMX and it was... alright. It works. I can say "no fancy build step!" but I totally miss the testability of modern frontend. Creating an image upload component was a pain. I don't think I would use HTMX again and instead go for the hybrid approach I described earlier.

This is the only thing keeping me from deleting my Facebook account. I recently moved and wanted to sell some things. Listed about 8 things on Craigslist and got some shady replies.

I listed the same 8 things on Facebook Marketplace and sold everything within days...

The Future of Htmx 2 years ago

With the BeautifulSoup tests I can run 1000s of tests in seconds. Cypress/Playwright are wonderful for e2e tests, but not comparable to simple unit tests you'd have in React/Vue. I find that the BeautifulSoup tests are a decent middle ground.

The Future of Htmx 2 years ago

I've created a Django application using HTMX. Usually I'd jump to React or Vue. It was a great exercise and I can see where HTMX would be a great fit.

1. If you consider yourself a "backend developer" only and want to write the minimum amount of JS/TS.

2. If your application is simple. Yes you can do more complicated interactivity with oob swaps, but you end up with more complexity than you chose HTMX for.

For my next projects, I will still use Django but with React/Vue for pieces that need interactivity. As an example in my HTMX app, I wanted to add a profile image uploader. Lots of great frontend libraries exist to resize / modify your image before even uploading it to your server.

Finally, HTMX is just not testable the same way modern frontend libraries are. I've managed to write some decent tests using beautifulsoup, but it's night and day compared to vitest or jest.

If you replace the title with Django it still works. I’m doing the same as the author, but with Django.