HN user

Kalabasa

398 karma
Posts4
Comments42
View on HN

Nothing as heavy as the above but here's my small anecdote:

I was putting off security updates on my npm dependencies in my personal project because it's a pain to migrate if the upgrade isn't trivial. It's not a critical website, but I run npm scripts locally, and dependabot is telling me things.

I told Claude Code to make a migration plan to upgrade my deps. It updated code for breaking changes (there were API changes, not all fixes are minor version upgrades) and replaced abandoned unmaintained packages with newer ones or built-in Node APIs. It was all done in an hour. I even got unit tests out of it to test for regressions.

In this case, I was able to skip the boring task of maintaining code and applying routine updates and focus on the fun feature stuff.

Yep. I was looking for a tiling/scrolling window manager for MacOS. Setting it up, learning the configs, reading github issues, learning the key bindings take time. Then I gave up and it was done in 2 days with Claude Code to my preferences. No intention to polish up and publish this tool.

I think this was what Google Plus was going for.

Instead of friend graphs (mutual) or follower graphs (directed edges), they had Circles.

Circles sound a lot like group chats.

I guess "social circles" may be a better way to model social relationships than follower graphs.

Author here: Definitely cherry picked ;)

I did deliberately pick some "bad" examples like the blue+green image, and other multicolor images.

I wanted to add an upload function so people could test any image, then i realised I'd have to implement the compression/hashing in the client. Maybe i should!

Excitable cells 1 year ago

Learned about the heart today! Thank you!

I wonder what other types of cells / tissues can be simulated by cellular automata?

Yep, a lot of headline readers here.

It's just a very advanced autocomplete, completely integrated into the internal codebase and IDE. You can read this on the research blog (maybe if everyone just read the blog).

e.g.

I start typing `var notificationManager`

It would suggest `= (Notification Manager) context.getSystemService(NOTIFICATION_MANAGER);`

If you've done Android then you know how much boilerplate there is to suggest.

I press Ctrl+Enter or something to accept the suggestion.

Voila, more than 50% of that code was written by AI.

blindly committing AI code

Even before AI, no one blindly accepts autocomplete.

A lot of headline-readers seem to imagine some sort of semi-autonomous or prompt based code generation that writes whole blocks of code to then be blindly accepted by engineers.

Good guess! The initial intention was to use iframes. And so zero js needed.

But iframes can't do

* Deletion (e.g complete a todo list item)

* Tail end append (e.g lazy loading infinite scroll list)

So i pivoted to js...

I like how they can animate their posts in this cohost social networking site. (See the transcript section)

Yeah, querySelector(undefined) works

Although location.hash defaults to the empty string '' when there is no hash, which gives a SyntaxError, so we still need the fallback selector to select none.

I have changed it to explicitly state within the first paragraphs that "htmz is an experiment" now. I started this as a joke but turned into a fun working solution - I myself am not sure if this is just a joke or a thing. Maybe I'll use it in some smaller projects, or maybe not!

hide all sections and shows the one that matches the hash

Oh there is a good hack you can do here! I've been meaning to write a blog post about this exact thing!

See CSS `:target` selector

  section {
    display: none;
  }
  section:target {
    display: block;
  }

It's just a weird feeling for someone to use a hack / experiment as a foundation or something. I know 'the software is provided "as is ", without warranty'.

The difference with htmx is that they are more polished.

Nice, it works! I was a bit scared here because the querySelector() MDN docs say

A string containing one or more selectors to match. This string must be a valid CSS selector string; if it isn't, a SyntaxError exception is thrown.

I'll test it out. If this works good, we shave off 5 bytes towards a 176-byte snippet!

Oops, it's just a mistake on word choice in the nutshell summary. This works on static files like on a local filesystem (in that case the "server" is the local filesystem that serves me files that happen to be html)

Edit: on second thought, direct filesystem access has different origins which would mess with iframes. I'm not on the computer now to test. But at the very least you need a basic web server that serves files.

Yeah it's terrible in some use cases.

If only HTML provided a way to navigate <a> without adding a history entry, like <a nohistory href=...>.

If this was a real product i would market it as "Native time travel debugging! Go through your application state as you would go through your browser history!"