HNHacker News
TopNewBestAskShowJobs

halflife

960 karma · joined October 9, 2020

submissionscomments
halflife··on Death of the Status Update: Why 55% of Americans Stopped Posting on Social Media
Back to 2015, I stopped posting on Facebook when I noticed that it’s no longer about connecting with my friends, but a never ending stream of boring posts from groups and people that I don’t know or care to follow.

All my “social” life just moved to direct communication in WhatsApp (meta owned as well)

halflife··on Spider venom kills varroa mites without harming honeybees
Makes sense, thanks!
halflife··on Spider venom kills varroa mites without harming honeybees
Thanks for the detailed comment! I always heard that bees pollinate the vast majority of plants, so in the parent comment, I assumed incorrectly that the meaning was for bees in general being non native.
halflife··on Spider venom kills varroa mites without harming honeybees
If they are not native, how did plant propagate seeds? Flies? Wasps? Butterflies?
halflife··on Instagram is incorporating users' photos in ads for Meta Glasses
I actually find this incredible, since this highlights how desperate they are to advertise these glasses
halflife··on Jest/Vitest interactive course (runs in the browser)
Jest mocks allow developers to write bad code. Instead of separating concerns with DI, jest mocks overwrite the importing mechanism without any type safety. Also, if you wish to migrate to native node test runner, the mocks lock you into jest.

Use proper mocks with ts mockito and it will force you to write better code.

halflife··on Pentagon raised threat of Israeli spying on U.S. to highest level, sources say
If you need to protect your border inside, than you already failed. Borders are protected outside the country.
halflife··on Pentagon raised threat of Israeli spying on U.S. to highest level, sources say
Israel has clearly defined borders. If youre are talking about the West Bank there’s area a, b and c which are controlled by Israel, both, and PA respectively. I’d call that borders.
halflife··on Angular v22
When all you need is a synchronous operations, yes. When it involves async, batching, buffering, and user input, it becomes much more complicated, and every step needs to be setup manually.
halflife··on Angular v22
Agreed, the OP said that the r in rxjs stands for reactivity, so my point was the the names have little bearing on the actual design patterns achieved with the libs
halflife··on Angular v22
A derived state is certainly reactive.
halflife··on Angular v22
Maybe push pull wasn’t the best metaphor, but the point is that everything can be reactive, it only depends on how much boilerplate you need to write to achieve the desired result.

Since react doesn’t have a true reactive model, you need to subscribe to changes manually (use effect) to create computations, while in signals it’s a primitive (computed).

I actually created a lib that operates signals over reacts state management (https://roypeled.github.io/react-logic/), so I removed the boilerplate to create a true reactive system.

If you want, you can create reactive system just from JS primitives, using callbacks. But that doesn’t make JS reactive by nature.

halflife··on Angular v22
Its entire state management is not reactive, it’s always on push, not pull. You always need to call setState to get render changes.
halflife··on Angular v22
The react in react stands for reactivity, however it is not.
halflife··on Angular v22
I partially agree, there is an overlap between signals and rxjs, however the core business is different- observables are about data manipulation, while signals are about efficient state management.

Regarding angular I agree, rxjs was a bad choice for data management, and before signals arrived I abandoned rxjs in favor of mobx in my angular projects. However you could roll your own http client, we used axios, and using DI it’s a drop in replacement.

halflife··on Angular v22
Each one of these solves a different problem.

Promised - async

Observables - streams

Signals - reactivity

halflife··on Nitpicking the shell history scene in 'Tron: Legacy'
I think Trent reznor did a fantastic job with the soundtrack, maybe the only person that could’ve fit in daft punks shoes
halflife··on Our 2D game character grew 3% taller every time he walked
Don’t like to cast stones, but this feels like Claude trying whatever it can to make things work, without fixing the underlying process and problem.

“It looks like the user wants to run curl on windows machine, I need to bootstrap Linux under docker, and channel bash commands into shell inside docker, so the user would be able to run curl natively.”

halflife··on Our 2D game character grew 3% taller every time he walked
Reading the blog I thought I was probably missing something. Reading the comments I learn that I missed nothing. Weird blog post.
halflife··on Green card seekers must leave U.S. to apply, Trump administration says
I’ve never said blacks. That’s your own bias creeping into my explanation.

And it really doesn’t matter why some countries got poorer, this is the fact right now so my point still stands.

halflife··on Green card seekers must leave U.S. to apply, Trump administration says
It’s not about morality. It’s about human nature and economy. It’s like saying everybody should have the same amount of money. The result of such thinking would destroy the coin, and alternate forms of money would be created by the people.

Having all countries open the borders to anyone (ignoring security risks for the sake of the argument) would mean all poor people would emigrate to rich countries and strain the economy, while their home country would collapse from lack of workforce.

halflife··on T
'P' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint 'F'
halflife··on The last six months in LLMs in five minutes
A friend of mine had hands on experience, it’s not the intelligence of it, it’s the speed.

You used to have a couple of days to close a breach, now it 2 hours.

halflife··on The last six months in LLMs in five minutes
I feel the change. It went from an autocomplete tool, to an agent running 5 tasks in parallel while I just supervise. The improvement is enormous.
halflife··on Porting 3D Movie Maker to Linux
As a kid without internet, I didn’t even know it was a chat! I liked printing stupid comics
halflife··on Porting 3D Movie Maker to Linux
Kid pix was the time sink for me

And then there’s this: https://kidpix.app/

halflife··on Porting 3D Movie Maker to Linux
That’s excellent. Now do comic chat!
halflife··on The React2Shell Story
Agreed. In the end, I always say that every line of code has deadline in which it will be removed.
halflife··on The React2Shell Story
Of course, but that really depends on the level of expertise and the type of programmer you are, and to some extent, the attitude of the organization your in to code and refactoring.

When everyone around writes shit code, you don’t care. In hooks, it becomes much more critical.

halflife··on The React2Shell Story
Classes are inherently stateful. A class instance is a long lived object. Functions are not, a functions internal state is thrown the moment the function returns. What react ask you to do is to attach to external state inside the function, in other words, an un pure function, forego idempotency.

In class based components, you didn’t care how react works under the hood, except for the render method which is called by react. So the surface of code controlled by react was only what you included inside that method. In function components, the entire function is owned by the renderer, so you need to deeply understand how it works.

← PreviousPage 3 of 12Next →