hasanhaja

Joined 5 years ago

Karma
138
Submissions
88
Member since
Feb 21
Software Engineer @ Cancer Research UK • Passionate about the web • All views are my own.

Mastodon: @[email protected] GitHub: https://github.com/hasanhaja/ Website: https://www.hasanhaja.com/

View on Hacker News

Recent submissions

Comment · 3 months ago
In a similar vein, I've been really enjoying the Go + Datastar combo with Templ.
Comment · 7 months ago
> even more secure

Based on what? Happy to be wrong, but the quote in my reply was Apple's stance on the WebKit vs native iOS apps

Comment · 7 months ago
How did you determine the weighting for your scores?
Comment · 7 months ago
Comment · 7 months ago
The problem is that it has to use the WebKit rendering engine, and not that it happens to.

I think it's more insulting to browser vendors that they have to throw away their browser engines to appease the monopolistic tendencies of one company.

Comment · 7 months ago
They don't need to implement it though. They just need to unban browser vendors from shipping their own engines.
Comment · 7 months ago
I don't think it does benefit the open web. If consumers can't get value from the web, they'll go where they can find it. That is currently native apps, which is a closed and proprietary ecosystem. This causes the market itself to shrink, which means fewer and fewer people will invest in the web [1].

Here's a good podcast episode with people from the Open Web Advocacy: https://changelog.com/jsparty/316

> I do, frankly, think that mobile Safari couldn't compete that well in an open market, just like desktop Firefox can't.

Couldn't compete isn't a justification to exploit platform control and ban competition. If Apple's so worried that Safari usage will fall off in favor of Chrome, then they can invest in Safari to make it a level playing field to keep their user base.

[1] https://infrequently.org/2023/02/the-market-for-lemons/

Comment · 7 months ago
Comment · 10 months ago
Comment · 11 months ago
Thank you so much for the write up! I've been avoiding processes for some reason while I've been learning Elixir and this post pushed me to play with it today. And I started in Erlang and then managed to translate it to Elixir successfully!

I ran into this issue and I'm not sure if it's just a me thing.

When sending the message from the Pong REPL, the following didn't work for me:

```erl {ping, 'ping@localhost'} ! {pong, self()}. ```

When I checked, the PID of `self()` is different to the PID of the registered `pong` process. I needed to change it to the following:

```erl {ping, 'ping@localhost'} ! {pong, whereis(pong)}. ```

This sends the correct PID to the Ping process and we have an infinite loop counting up.

Comment · 1 year ago
Maybe the versioning should be powers of 2
Comment · 1 year ago
Comment · 1 year ago
Use the Navigator API directly then? Why do _need_ a declarative version of it?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton