mikebelanger

Joined 12 years ago

Karma
203
Submissions
116
Member since
Jun 12
mikebelanger.ca
View on Hacker News

Recent submissions

Comment · 3 months ago
I've been using Linux on/off since the late 90s. And now, both my mini-PC and my laptop are running Fedora, and I swear by them.

So as much as I want to believe that others share my taste, I'm not sure how to interpret the two statistics in this article.

Sadly, I'd lean towards this article's attribution:

"Cloudflare’s unfiltered figures may include automated requests unless human traffic is classified. This is especially relevant to Linux, widely used for servers, automation, development environments, and headless browser workloads"

I suspect many people are running AI agents on cloud servers, which are most likely running Linux, and many of those agents are browsing the web. That's more likely what is driving this adoption. That, and as the article points out, more accurate OS classification on the part of StatCounter (from unknown to "Linux"), especially if its over the span of 1 month.

Comment · 3 months ago
Yeah, that was my first reaction to that headline too. Given a second thought, he probably means the opposite of "replace", so in this context, "maintain people." maybe? I know marketing headlines shouldn't be interpreted literally, but it tripped me up at first.
Comment · 3 months ago
Cool stuff!
Comment · 4 months ago
If I may ask, what do you use to host now?
Comment · 4 months ago
Comment · 4 months ago
Comment · 5 months ago
Interesting that ports can be written so quickly with AI. But that aside, I have to ask...why? You want a super performant bundler/runtime/package manager written in rust with TS support, Deno has this already.
Comment · 7 months ago
Amazing!
Comment · 8 months ago
Cool! Thanks for the response, I'll give it a shot again sometime
Comment · 8 months ago
I lean towards vanilla javascript and webcomponents myself, and eschew large frameworks in favor of lighter, or in some cases, no framework at all.

That said, this and many other webcomponent articles mischaracterize usage cases of webcomponents:

1. Being "Framework-free"

Frameworks can mean anything from something massive like NextJS, all the way to something very lightweight like enhance.dev or something more UI-focused like shoelace. To suggest being completely free of any kind of framework might give some benefits, depending on what kind of framework you're free of. But there's still some main benefits of frameworks, such as enforcing consistent conventions and patterns across a codebase. To be fair, the article does mention frameworks have a place further down the article, and gets close to articulating one of the main benefits of frameworks:

"If you’re building something that will be maintained by developers who expect framework patterns, web components might create friction."

In a team, any pattern is better than no pattern. Frameworks are a great way of enforcing a pattern. An absence of a pattern with or without webcomponents will create friction, or just general spaghetti code.

2. Webcomponents and the shadow DOM go together

For whatever reason, most webcomponent tutorials start with rendering things in their shadow DOM, not the main DOM. While the idea of encapsulating styles sounds safer, it does mean parts of your page render after your main page, which can lead to DOM elements "flashing" unstyled content. To me, this janky UX negates any benefit of being able to encapsulate styles. Besides, if you're at a point where styles are leaking onto eachother, your project has other issues to solve. The Shadow DOM does have its use, but IMO it's overstated:

https://enhance.dev/blog/posts/2023-11-10-head-toward-the-li...

Comment · 8 months ago
Neat, and neat to see the burn framework getting used. I tried this on latest Chromium, but my system froze until my OS killed Chromium. My VPN connection died right after downloading the model too. (it doesn't have a bandwidth cap either, so I'm not sure what's happening)
Comment · 1 year ago
Yeah that'd be really something. If you could just pay the cost up-front, rather than worry about how much every newer request cost, that really changes the game. There's still many other issues to worry about, like security. But as the author points out, we might be much closer than we think.
Comment · 1 year ago
Artifactory works fairly well. Although admittedly, when a user grabs a new dependency, they're downloading from the npmjs registry like anyone else.

Really, the killer combo would be to have some kind of LLM-based tool that would scan someone's artifactory. Something smart enough to notice that code changed, and there's code for accessing a crypto-wallet, etc. This would be too expensive for npmjs to host for free, but I could see this happen to hosted artifactory dependencies.

Comment · 1 year ago
Comment · 1 year ago
I really wish web components weren't promoted as a "framework alternative" and more of a standardization of custom display components. Frameworks like enhance.dev and lit.dev are good examples of this.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton