HNHacker News
TopNewBestAskShowJobs

actinium226

1,506 karma · joined April 5, 2021

submissionscomments
actinium226··on Jujutsu worktrees are convenient (2024)
Genuinely curious, what did you find painful about it? A while back I found it annoying that I'd get errors when cleaning out my branches because they were checked out in a worktree I'd forgotten about, but git now highlights branches checked out in worktrees and has done so for a while.
actinium226··on GitHub to Codeberg: my experience
Gitlab is pretty good, plus you can self host it if you really want. It's an interesting company too, they're 100% remote.
actinium226··on Show HN: Real-time system that tracks how news spreads across 200k websites
Very cool. I'm curious what frontend and backend technologies are used?
actinium226··on C100 Developer Terminal
There are some way cooler versions of this over on https://www.reddit.com/r/cyberDeck/
actinium226··on Show HN: KiDoom – Running DOOM on PCB Traces
Lol, I jsut started learning KiCAD last week, and I work in at a game dev coworking space, so this is a perfect combination of the two! Nice!
actinium226··on µcad: New open source programming language that can generate 2D sketches and 3D
This is a neat idea and I quite like some of the syntax, but what is this for? I have a hard time seeing this gaining traction over traditional sketch-based CAD for a number of reasons, so is it just meant to be a toy?
actinium226··on Calculus for Mathematicians, Computer Scientists, and Physicists [pdf]
> The books in the West in general kept getting less rigorous, with time.

I wonder if it's because more people are going to college who would have otherwise gone to a vocational or trade school? If the audience expands to include people who might not have studied calculus had they not chosen to go to college, I feel like textbooks have to change to accommodate that.

actinium226··on Calculus for Mathematicians, Computer Scientists, and Physicists [pdf]
Generally that's what it means. And also when proofs are presented, a rigorous book will go through it fully, whereas a less rigorous one might just sketch out the main ideas of the proof and leave out some of the nitty gritty details (i.e. it's less rigorous to talk about "continuity" as "you can draw it without lifting the pen" as compared to the epsilon-delta definition, but epsilon-delta is pretty detailed and for intro calculus for non-mathematicians you don't really need it).
actinium226··on Arduino published updated terms and conditions: no longer an open commons
I disagree, I think for the average hobbyist Arduino is an abstraction of "thing that can talk to sensors and actuate motors." You're right of course that RPi (excl pico) is very different from Arduino, but for the hobbyist it makes no difference if the processor on the Arduino is an Atmel or an ARM.
actinium226··on Arduino published updated terms and conditions: no longer an open commons
It doesn't look like they've made any drastic changes that would impel anyone to leave Arduino tomorrow, or in the foreseeable future, but if they keep going down this route I imagine the community will move to RPi. They've always been vastly more performant than Arduino and they can run linux, which is somewhat more approachable than the concept of programming a microcontroller and only being able to talk to it over serial.
actinium226··on Show HN: F32 – An Extremely Small ESP32 Board
JLCPCB also offers assembly and they're much, much cheaper, like an order of magnitude cheaper.
actinium226··on Show HN: F32 – An Extremely Small ESP32 Board
Neat! I just sent out an order to JLCPCB for an ESP32 based board. I don't have a rework station or any experience with SMT so I decided to go for their assembly options. It's 80 per board, but would probably be cheaper per board if I got more than 2 (I also have more components on my board than you).

Question about the instructions in your README, you say that once you're done with the top side, repeat for the bottom, but when you're working on the bottom side, what stops the elements on the top side from falling off once the heat passes through the board and melts the solder on that side?

actinium226··on Ask HN: How does one build large front end apps without a framework like React?
While we're keeping score, document.getElementById came out in 2000 [1] and XmlHttpRequest was standardized by mid-2000s [2]

[1] https://en.wikipedia.org/wiki/Document_Object_Model

[2] https://en.wikipedia.org/wiki/XMLHttpRequest

actinium226··on Ask HN: How does one build large front end apps without a framework like React?
+1 for nanostores. It's great that it works standalone, but what's also nice is that they have tools to let you use it with React. It's much cleaner and more intuitive than React contexts which is how you're supposed to do global state in React, I think.
actinium226··on Ask HN: How does one build large front end apps without a framework like React?
None of these are problems taken separately, but put together they're pretty frustrating. Hooks being 5 years old and being the predominant tool for certain tasks shows that the community only figured out how to solve a particular problem 5 years ago. Compare that, in terms of stability, to Python having coming up with the idea of packages a long time ago, and packages are now a stable part of the ecosystem (packaging is another story which I'll get to shortly).

Revamping the docs is not a problem by itself, but take a look at Python or Django, their docs have the same look and feel for older versions of the code. It's totally a minor problem, and if it were the only one I wouldn't be complaining here, but with the plethora of problems it starts to feel like death by a thousand papercuts.

> Create-react-app was deprecated

Going back to Python packaging, while it's much better than C/C++ packaging, people still love to complain about it! That said, pip is not deprecated. For React to just abandon the idea of helping users to create a project and telling them to "go bother someone else about it" does not seems like something a stable ecosystem would do.

> If this is a bitch fest about React, then the react docs and CRA are fair game, but remix isn't IMO.

It absolutely is a bitch fest about React because I inherited a simple site that should have never used React in the first place and it makes it so hard to do simple things without reinventing the wheel, but anyway, I'd say the ecosystem is fair game now that CRA is deprecated and the docs themselves tell you to go to Next or Vite or React Router or Tanstack.

Anyway, the point is that while React might be relatively stable from the point of view of the larger javascript ecosystem, it's still way less stable than it should be and way less stable than browser APIs.

actinium226··on Ask HN: How does one build large front end apps without a framework like React?
> React is a lot more stable than I think you're giving it credit for.

Hooks are only 5 years old. The docs were revamped 2 years ago and there's lots of dead links to the old docs page which has a scary warning "These docs are old and won’t be updated." Create-react-app was deprecated in February of this year and in their blog post they tell you to use frameworks like Next.js.

And then there's the ecosystem. Next.js introduced app router 3 years ago and lots of docs for libraries still assume you're using pages router. Remix is now react router v7, and I have no idea what's going on with all this Tanstack stuff. There's a new typescript compiler called "Speedy Web Compiler" which just came out in April and as a result Vite now has 4 options for creating a new React project: react, react-ts, react-swc, react-swc-ts

Meanwhile moment.js has had 5 releases in the last 4 years. 3 of them in 2022 and 2 in 2023.

actinium226··on Claude Skills
It's an interesting idea (among many) to try to address the problem of LLMs getting off task, but I notice that there's no evaluation in the blog post. Like, ok cool, you've added "skills," but is there any evidence that they're useful or are we just grasping at straws here?
actinium226··on Modern Linux tools
I only skimmed through the website, but it looks like it only does dotfiles. So I'd need to maintain a separate script to keep my packages in sync. And a script with install commands wouldn't be enough - maybe I decided to stop using abcxyz, I'd like for the script to remove it. Versioning between the package and the dotfile can also sometimes be an issue.
actinium226··on Modern Linux tools
> apt-get/pacman/dnf/brew install <everything that you need>

If only it were so simple. Not every tool comes from a package with the same name, (delta is git-delta, "z" is zoxide, which I'm not sure I'd remember off the top of my head when installing on a new system). On top of that, you might not like the defaults of every tool, so you'll have config files that you need to copy over or recreate (and hopefully sync between the computers where you use these tools).

That said I do think nix provides some good solutions for this. It gives you a nice clean way to list the packages you want in a nixfile and also to set their defaults and/or provide some configuration files. It does still require some maintenance (and I choose to install the config files as editable, which is not very nix-y, but I'd rather edit it and then commit the changes to my configs repo for future deploys than to have to edit and redeploy for every minor or exploratory change), but I've found it's much better than trying maintain some sort of `apt-get install [packages]` script.

actinium226··on Who needs Git when you have 1M context windows?
> Who needs git best practices when you have an LLM that remembers everything?

OK, but if you'd used git properly, you wouldn't have had this problem in the first place.

actinium226··on How the AI bubble ate Y Combinator
If I could just give them $1 and get the article and that's the whole transaction, that would be great. But they want me to subscribe and I don't read their articles enough for it to be worth it.

I could subscribe and cancel but that's a lot of friction to just read one article.

actinium226··on Python developers are embracing type hints
> If you have a cyclic reference between two files,

Don't have cyclic references between two files.

It makes testing very difficult, because in order to test something in one file, you need to import the other one, even though it has nothing to do with the test.

It makes the code more difficult to read, because you're importing these two files in places where you only need one of them, and it's not immediately clear why you're importing the second one. And it's not very satisfying to learn that you you're importing the second one not because you "need" it but because the circular import forces you to do so.

Every single time you have cyclic references, what you really have are two pieces of code that rely on a third piece of code, so take that third piece, separate it out, and have the first two pieces of code depend on the third piece.

Now things can be tested, imports can be made sanely, and life is much better.

actinium226··on KDE is now my favorite desktop
> Even compared with macOS in my MacBook Pro M2 Pro (that is of course comparing Apples and Bananas),

Missed opportunity for "comparing apples and penguins!"

actinium226··on Bringing fully autonomous rides to Nashville, in partnership with Lyft
Usually, though not always, a company will tell you if they're making money on something, and if they're not they beat around the bush like this. Notice how, for example, Gywnne Shotwell never beats around the bush like this when talking about Starlink.

Notice the weird language:

> That’s making progress in terms of unit economics very, very positive.

He says the "progress" is "very, very positive," but if you're not paying close enough attention you might come away thinking that the unit economics are what's very very positive.

All that said, what he's saying makes sense. They're able to charge more for their rides since they offer the convenience of not having to deal with a driver, and they're not paying the driver, who is the most expensive part, so yea, I'm bullish on them.

actinium226··on React is winning by default and slowing innovation
As a counter example, consider the jerry can from WWII. It was easy to handle a single unit to refill a vehicle, and it was also easy to stack millions of them for shipping.

Another example is the internet itself. You can have a local LAN of a few computers or a global network of billions. So I'd say that to some degree innovation is measured by how well something can scale both up and down, but of course that's not always the case.

actinium226··on React is winning by default and slowing innovation
You've given this example about how to use React without JSX but actually you're not using React but Preact, which is a different library. Preact, to its credit, actually has instructions for using it without JSX right in their getting started guide: https://preactjs.com/guide/v10/getting-started/#alternatives.... In fact it's the very first paragraph.

React itself buries this information in a reference (https://react.dev/reference/react/createElement#creating-an-...), and the reference doesn't even give a complete example because the example still uses JSX to render the root component.

And I'm not sure if Preact is really a viable alternative to React. If a library I want to use can't work via preact/compat, what then? Do stackoverflow solutions for React problems apply to Preact? I imagine at least some might not. Given these limitations, is there a reason someone would choose Preact over a framework that has its own ecosystem, like Vue for example?

actinium226··on React is winning by default and slowing innovation
This seems like something that's technically true but not very practical: https://react.dev/reference/react/createElement#creating-an-...

It still doesn't solve the problem of scaling down to simple things. I think this is better illustrated with this codepen I made a while ago to implement a reactive button in React, Vue, Alpine, and vanilla JS: https://codepen.io/nbelakovski/pen/jEOVbyP

I tried to implement the React part without JSX, but I couldn't figure out how to render the function component, and while I was able to render a class component based on the old docs, I couldn't figure out how to use useState with it.

But going back to the codepen, the React and the vanillaJS both look messy, but I would take the vanillaJS over React if it means that I can sprinkle a little JS in my code without having to buy the whole farm that is create-react-app + npm + eslint + vite + all the React stuff I've mentioned.

actinium226··on React is winning by default and slowing innovation
I humbly disagree. I've never built a highly interactive application with React, only simple sites where the guys before me chose React, so I can't speak to its relative strengths or weaknesses there, but I've found that it doesn't scale down very well to simple sites. For a simple sign-in page, it's easy to just store state in the DOM and use a <form> element to send the credentials, and maybe a little JS for the password show/hide button. But to implement it in React you have to go on a steep learning curve to learn about JSX, hooks, the component lifecycle, building the app for dev, packaging it for prod, and more.

Other frameworks, like Vue and Alpine, let you use them "progressively" and you can even do so with a CDN to avoid having to set up npm/vite from the get go. Their intro docs have instructions for how to do so, along with the relevant caveats

React claims to be progressive, but since it's JSX it requires a compile step. Its intro docs do not have instructions for using it via CDN. You can make it work if you really want to, but it basically requires shipping the compiler to the client along with the JSX and doing the compilation client-side, which obviously scales so poorly that their docs don't cover it.

To recap, my whole point is that React scales very poorly down to simple sites. And since most site are not Facebook or the Spotify web player or Netflix (and even Netflix is moving away from React: https://x.com/NetflixUIE/status/923374215041912833), I think it's very hard to argue that React is effective or well designed.

actinium226··on Coinbase CEO explains why he fired engineers who didn't try AI immediately
Indeed, good leaders who are conscientious never fire anyone on the spot or make mistakes, ever!
actinium226··on Coinbase CEO explains why he fired engineers who didn't try AI immediately
So he's bald? From everything I've read about him he actually seems like a pretty conscientious guy and a good leader. He's been in crypto for almost 15 years, which is a lot more than you can say about some other folks in crypto.
← PreviousPage 2 of 16Next →