Better HN
topnewbestaskshowjobs
Log inSign up

frodowtf

190 karma · joined Jan 10, 2023 (3y ago) · 97 submissions

Submissions

comment 2y ago · link · parent

Fascinating how Cuba is still standing in spite of all embargoes.

comment 2y ago · link · parent

... the obligatory "historical context" nobody asked for.

comment 2y ago · link · parent

If you want to use this pattern, you'll probably end up with a lot of duplicated code e.g. for SQL query builders. I could imagine that Rust makes this kind of pattern easier due to traits and macros. A lot of languages do not have these features.

And then of course Rust people care about correctness more in general.

comment 2y ago · link · parent

It also seems to have the same concurrency issues as described in the article. At least from my experience the "database is locked" error appears quite often.

comment 2y ago · link · parent

Usually, I go with openapi-generator and pick the typescript-fetch template. You can use that with whatever js-based frontend framework you want.

comment 2y ago · link · parent

> writing a lot of boilerplate code to connect the frontend and backend.

OpenAPI. django-ninja supports it out of the box.

comment 2y ago · link · parent

> ... very low user adoption of Home Screen web apps.

Well, if nobody wants to play with our total clusterfuck of inconsistent APIs, we might as well drop support for them >:(

comment 2y ago · link · parent

so why is nobody implementing stuff in smalltalk?

comment 2y ago · link · parent

Well, that comment is definitely "masculine"

comment 2y ago · link · parent

As long as casinos are a thing, Bitcoin stays a thing.

comment 2y ago · link · parent

Well, I don't.

comment 3y ago · link · parent

`panic` has nothing to do with error handling though. If you use it, you know that your callers cannot recover from it.

Throwing an exception implicitly delegates error handling back to the caller, but they are not even notified about it. (talking about OCaml)

comment 3y ago · link · parent

People say that OCaml is like Rust, but unlike Rust, OCaml has Exceptions that could appear everywhere. How is that safe?

comment 3y ago · link · parent

> food is painfully bland

You mean like... not invested with tons of sugar? What kind of bland are we talking about?

comment 3y ago · link · parent

It's time to stop.

comment 3y ago · link · parent

Kysely looks like the thing most people would want. It's not a full ORM though - just a well-typed query builder.

https://kysely.dev/

comment 3y ago · link · parent

Pretty sure the maintainer is also a Discord mod.

comment 3y ago · link · parent

DRY is by far the most overrated software engineering principle and constantly pushing for it only leads more developers down the way of creating wrong, irreversible abstractions.

comment 3y ago · link · parent

"Can't" as in "don't want to"

comment 3y ago · link · parent

Sir, watch out! Your monocle is about to drop into the scotch!

comment 3y ago · link · parent

Date guys. Problem solved.

comment 3y ago · link · parent

I don't get why GitHub doesn't adopt it and make it a standard. Especially the lack of caches is annoying.

comment 3y ago · link · parent

Funny, I also thought of Vue immediately.

comment 3y ago · link · parent

Can we agree on not posting anything directly from twitter? It's absolutely useless without an account.

comment 3y ago · link · parent

Or you use the correct types and avoid these "problems" alltogether.

It's not possible to bake in a cold oven. Why does your type allow it then? Why don't you encode the state directly?

  oven := ColdOven.heat()
  bakedPizza := oven.bake(pizza)

comment 3y ago · link · parent

As a 13 year old, I can confirm that we always mention our age before anyone asks.

comment 3y ago · link · parent

> ... it's not intuitive how deep I am within nested scopes

The ONLY piece of information that is available to you regardless of how deep you are into a function is INDENTATION. Your curly braces won't help you.

Besides that, you should seriously reconsider your coding style if this is an actual problem for you.

1234