Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
zkldi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
zkldi
5y ago
This reduces package-installing friction, but this is a good thing anyway -- there's no reason why you shouldn't be able to use foobar@1.0 and foobar@2.0 in the same project. For all intents and purposes they're different pac
62.
▲
by
zkldi
5y ago
You aren't meant to put your own files manually inside node_modules. What are you trying to achieve with that?
63.
▲
by
zkldi
5y ago
This is absolutely not true, and I'm tired of seeing this. is-odd, alongside a bunch of other microdependencies are almost all the work of one person, who made as many micropackages as possible and then PRd them into other more popul
64.
▲
by
zkldi
5y ago
> Bizarre default sorting behaviour You are meant to pass an argument to [].sort; If you don't, it falls back to the most generic thing that makes sense -- which is turning everything into a string and sorting lexicographically. Arr
65.
▲
by
zkldi
5y ago
just a poke: it was 5K Eth ($16,924,050), not 5K USD, but i agree with your wager.
66.
▲
by
zkldi
5y ago
The MDN Plus release is probably the evidence you're thinking of.
67.
▲
by
zkldi
5y ago
> I wrote a comment outlining exactly what I wanted, and immediately Copilot generated the code I was after. How do you know it was what you were after? Like you said, it could be .toLocaleTimeString or .toLocaleString (or something else
68.
▲
by
zkldi
5y ago
Been using this for a while now. It's very good, well designed and the right way (imo) to modernise the shell. Bringing datastructures to the shell environment (instead of everything being strings) is just the right thing to do, and I&
69.
▲
by
zkldi
5y ago
https://github.com/npm/rfcs/issues/509 it more or less just makes it difficult for updates to propogate, which is arguably a good thing.
70.
▲
by
zkldi
5y ago
I actually don't think videogame AI has gotten much better since Halo 1. Maybe that game was just incredibly ahead of the curve, or that's as good as we can do.
71.
▲
by
zkldi
5y ago
If I piped that .docx file into bas64, would it then be a "plain file"? It's ascii plaintext chars. I don't think your argument holds any water.
72.
▲
by
zkldi
5y ago
Fair enough -- Like I said, I think somewhere under the cruft of JS is a good language, but I don't think it's as bad as OP implies.
73.
▲
by
zkldi
5y ago
I don't personally think there's anything complicates about arrow functions. They're syntactic sugar for `function() {}`, with the exception that they have sensible binding of `this`. I do agree that Lua is simpler, but I don
74.
▲
by
zkldi
5y ago
> People who are confused about equality shouldn't design programming languages: This is a very dull criticism of JavaScript, everybody uses ===. While it's definitely true the language has some poor decisions (`with`, `==`, et
75.
▲
by
zkldi
5y ago
jeez man, not every comment has to be a profound statement. I thought it was pretty interesting.
76.
▲
by
zkldi
5y ago
Been a firefox user forever and have never seen anything like this. What do the panics say? Have you reported this?
77.
▲
by
zkldi
5y ago
You can write a forkbomb in any language -- that's besides the point. Some languages are easier to write broken code in than others.
78.
▲
by
zkldi
5y ago
[] - {} is a fatal typescript error[0]. A well configured linter can also catch out similar nonsense, but [] - 2 does get past the compiler. The TS Compiler can atleast stop you from doing nonsense like applying operators to t
79.
▲
by
zkldi
5y ago
Backwards Compatibility -- So much code out there depends that typeof null === "object".
80.
▲
by
zkldi
5y ago
Native, educated speaker here: Nobody cares and everybody understood what they meant.
81.
▲
by
zkldi
5y ago
So your definition for "valid action" is just that the eth network lets them do it? They clearly didn't want to burn £500k, and that is now irrecoverable, alongside 260 other people who made the same mistake, on a smart contr
82.
▲
by
zkldi
5y ago
Sharing the types of API returns is very useful.
83.
▲
by
zkldi
5y ago
8.1. Character Encoding JSON text exchanged between systems that are not part of a closed ecosystem MUST be encoded using UTF-8 [RFC3629]. JSONs definition was improved in RFC8259 (2017) to mandate UTF-8.
84.
▲
by
zkldi
5y ago
> does it always use UTF8 or does it break the standard? It always uses UTF8, or it is invalid JSON and MUST NOT be parsed. For the same argument against XML, you could argue whether it actually honours the encoding field (i've foun
85.
▲
by
zkldi
5y ago
That padding is genuinely terrible.
86.
▲
by
zkldi
5y ago
To be clear, you can't edit an existing published version of a package on NPM, nor can you delete packages (havent been able to for 5 years-ish).
87.
▲
by
zkldi
5y ago
This is following semver correctly. A PATCH update may be a MAJOR update (since its a superset) and it may be considered a breaking change.
88.
▲
by
zkldi
5y ago
What if the patch for the buggy `2.14.0` library was released as `3.0.0`? In semver MAJOR can be a superset of MINOR and PATCH, so this is a perfectly logical semver operation. You still have the exact same problem you described with `^2.14
89.
▲
by
zkldi
5y ago
Yes, but it's not granular. You either let all modules have permission X, or none of them.
90.
▲
by
zkldi
5y ago
I mean, emacs doesn't respect the UNIX philosophy either, but that's one of the most praised pieces of software to come out of the UNIX space. The UNIX philosophy isn't meant to be taken as gospel - hell, it's very hard
More ›