Recent submissions

Comment · 10 months ago
Comment · 10 months ago
One issue with package naming is competition. One of the great things about OSS or software in general is people can take inspiration from other projects that do the same thing. Personally I've ran into deciding which casting library to use

- runtypes - https://github.com/runtypes/runtypes

- zod - https://zod.dev/

- ajv - https://ajv.js.org/

AJV and runtypes use the naming convention that the article suggestions. It's named is derived from how it's used. Zod on the other hand seems to come from left field.

Personally, I built a simple caster called "ShallowCaster" before choosing to move to a library as things got move complex but I think a problem is that as competition increases the "generic" naming becomes more difficult to find.

I suppose an option is to include the author name for each package such as "json casting from google" or "@google/json-casting" this way all packages can use the descriptive naming while not conflicting

Comment · 11 months ago
Comment · 11 months ago
I think magic the gathering set a pretty good standard.
Comment · 1 year ago
Do you have a link/information supporting this? This sounds on the crazy side but considering Dubai and China are reported doing similar things I could believe it.
Comment · 1 year ago
Comment · 1 year ago
I really liked the math problems, Little bit of edutainment
Comment · 2 years ago
I think a major thing with viruses is access to filesystem.

If programs asked for permission to access folders or we gave the program their own volume to work within then they couldn't access, run or modify sensitive/important files.

Comment · 2 years ago
Comment · 3 years ago
Comment · 3 years ago
It would be nice if it allowed custom inputs. This could allow on screen controls or other customized inputs.
Comment · 3 years ago
Personally, I figure everything "await"ed by default seems to make more sense. Then add a keyword like "delay"ed to a function call to make the function return a promise that can be "await"ed later.

This way beginners don't have to understand things like the event loop or difference between a function that returns a promise and one that doesn't while more advanced users can still manually handle promises

Comment · 3 years ago
Can someone explain to me why AI (which is boosting Nvidias stock) is picking up so much? Why didn't Alexa/Siri and googles original AI cause the same thing? I doubt that openai is buying all these GPUs, who is?
Comment · 3 years ago
I deleted my account when they removed my 2 factor auth. Ive been hacked before on Twitter and don't really use twitter anyway.

Maybe this is good for business. I'm not coming up with better ways to make money out of it besides increasing the amount ads.

Comment · 3 years ago
Starcraft 1 and Warcraft 3 had a nice GUI for programming, starcraft 2 was a bit harder for me to deal with. Arguably something like magic the gathering that is written in a programming language instead of english would be helpful for programming literacy.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton