Better HN
topnewbestaskshowjobs
Log inSign up

cachehit

6,998 karma · joined Dec 14, 2008 (17y ago) · 1,808 submissions

(Account pending deletion)
Submissions

comment 3y ago · link · parent

I generally prefer Zod but in cases where I for one reason or another have to rely on JSON Schema, I use this package: https://www.npmjs.com/package/as-typed which infers TS types directly from a such. No extra build steps required. I then use AJV for runtime validation.

comment 3y ago · link · parent

Here's one part:

>(f) protect the availability of essential functions, including the resilience against and mitigation of denial of service attacks;

>Did the EU just require me to make software that can withstand (unspecified) denial of service attacks? Something that is mathematically proven impossible?

That does not seem like the intent of the paragraph. My first thought is that it's a poorly worded (though legalese oftentimes needs to be) way of saying that devices should not easily be turned into DDOS nodes. But it might also just say that even if it's under DDOS attack, there should be a way to operate essential functions still, which is very much possible with some compartmentalization.

comment 3y ago · link · parent

I guess, but that seems at least as tedious as maintaining JSDoc comments to me.

comment 3y ago · link · parent

I'm working on a JS project for a client. I can't modify the deployment procedure so I can't add a build step and ts-node is no help because it's frontend.

JSDoc comments can be checked with TSC and I get squiggly lines in VSCode. It's a major step in the right direction. Obviously tests work the same they always did, there is no runtime type checking just as there isn't in TS.

comment 3y ago · link · parent

I am reminded of this Loading Artist comic: https://loadingartist.com/comic/dire-situation/

426.

Sci-fi magazine halts new submissions after a surge in AI-written stories(zdnet.com ↗)

2 points · by kristiandupont · 3y ago · discuss

comment 3y ago · link · parent

Lifehack: watch trailers instead of the movies and you can get through 50 in a day easy!

comment 3y ago · link · parent

Would the point not stand if they had said ML or Prolog?

comment 3y ago · link · parent

Typescript can type-check javascript files that are annotated with JSDoc comments. With those, you can express almost the entire type system of TS while keeping your files directly interpretable by the browser without preprocessing. Are there any experiments like that for C?

comment 3y ago · link · parent

The problem I have with it is that it's rent-seeking. Since FB and Twitter are as ubiquitous as they are, any company will suffer if someone is impersonating them on there. So companies will now be paying FB and Twitter for this "service" not because it gives them value but as protection. That will apply to a lesser extent to individuals as well.

comment 3y ago · link · parent

I don't know what the percentage of "native" apps that are really web views and/or javascript underneath, but am certain that it's a lot. In fact, I wouldn't be surprised if it's more than 50%.

comment 3y ago · link · parent

I just got inspired to look up the relation instead, which was also interesting:

https://www.wolframalpha.com/input?i=TWLO+profit+divided+by+...

comment 3y ago · link · parent

First off, I am always happy to see people trying out new things because it creates innovation. Congratulations on launching!

That said, the big feature here seems to be what the headline says: no virtual DOM. As a user of frameworks, I don't care much about implementation details unless they result in benefits like performance improvements. Does this perform better than React and/or Vue? Or is there some other benefit to it?

comment 3y ago · link · parent

I don't know if you are implying that it's related to the war or something. Sadly, I am more of the belief that it's a trend. I think we will see much more of it.

comment 3y ago · link · parent

You state (or at least imply) that the fact that a company is not willing to go out of business to avoid firing someone is proof that they don't care about that person. All I can say is that you seem to have a reductionist definition of the word "care". I also wouldn't expect my friends to, say, sell their house to support me if I needed it.

comment 3y ago · link · parent

By your definition, the only way someone "cares" about another person is if they are prepared to suffer any and every possible loss to protect said person from harm?

comment 3y ago · link · parent

>You think any employer “cares about their employees”?

Employers are people. Some people are cynical and greedy, others are empathetic.

Yes, they will fire people as is some times necessary and as an employee you should plan for that. They won't make great sacrifices for you like family or very close friends might, but I've definitely had employers who wanted the best for me and made an effort to help me achieve it.

comment 3y ago · link · parent

>the increase of boilerplate have been immersive

Has it really? Or are you worried that this is something that will happen?

Of course I don't know how other people use it but I find that it's very much like having a fairly skilled pair programmer on board. I still need to do a lot of work but I get genuine help. I don't find that I personally write more boilerplate code than before, every programming principle applies as it always has.

comment 3y ago · link · parent

Because it's a nice look? I like it not for nostalgic reasons but because I think it looks good. I also like guitar music even if that sound can be said to have "peaked" many years ago.

comment 3y ago · link · parent

I know what DaVinci is and even a bit about film and the film look and I would still like what GP is suggesting.

comment 3y ago · link · parent

>while the bad ones die.

I am really not seeing this.

comment 3y ago · link · parent

That's a great idea, thank you!

comment 3y ago · link · parent

Thank you! Yes, I reindex. I store the file timestamp along with the contents, so it's not quite as involved as it could seem but startup does take a bit. And, I don't have a good way of discovering deleted files at the moment. Not a big deal as it is, but something I will look into.

And yes, query suggestions are exactly what I mean. Thank you for informing me, I guess I will have to look into how I can make it myself :-)

comment 3y ago · link · parent

I am using the core (called "Milli") in a local indexer that I run on my repositories and Obsidian files. It works like a charm and I am very happy with it. Obviously that's a use case with very little traffic but just indexing my repositories folder is quite a bit of work and it does it surprisingly fast.

The only real thing I am missing is a typeahead feature.

comment 3y ago · link · parent

It's an honor, sir!

comment 3y ago · link · parent

I remember playing Turrican 2 on the Amiga and being rather upset that it was just impossible to replicate on the PC which was what I considered "home" at the time.

Then, at a demo party in Aars in Denmark, I was walking around and I spotted some guy who must have been developing this exact piece of software because I saw what was definitely Turrican 2 running on what certainly looked like a PC (they were quite easy to spot). At the time, I was pretty well aware of what you could do with the PC and VGA in assembly language (The Copper demo particularly occupied me: https://www.youtube.com/watch?v=4KeMtiYi808), and I knew that remaking this game would be close to impossible.

I stared at his monitor from afar for a good 20 minutes but I didn't have the courage to approach this god-like developer (I must have been 14) so sadly, I never found out where his magical skills came from or whether or not he was a nice guy.

comment 3y ago · link · parent

Previews don't start at 0:00 but at a place selected by the artist give the best quick impression possible. Of course, I don't know what they've done with the "old" catalog.
1
141516
61