skysight-inc/HackerNews huggingface dataset:
Both of these examples are well-known (and not unexpected) behaviours. I assume you already know why it behaves like that. If not, I can explain it.

> [1, 2, 3] + [4, 5, 6] // -> "1,2,34,5,6"

What would you expect instead?

> [,,,].length // -> 3

Is there any use case where you would want to deal with sparse arrays?
Why the hell can websites tell that I'm in the console? If I want to inspect some parts of a website (perhaps save an image), then I don't want that website to interfere.
But then anyone can reset your account’s password by using the same service?
The rule is: if you data is local, the code to handle it should be local.

APIs that provide data are useful. APIs that just transform data that you provide much less because much less efficient and also bring integration nightmares (think not just today but long term).
All human knowledge _is_ at one's fingertips. Virtually all books are available through gutenberg or libgen. The vast majority of academic research through sci-hub. The truth is that people are simply not interested.
The only language / framework I've used that seemed to get this right is OpenStep / Cocoa, which is presumably why Swift is mentioned as being 'notable'.

NSString would occasionally come up in performance analysis as being strangely slow compared with other languages, but this was because various operations like comparisons followed unicode.
I think the situation is a bit different. This situation looks different in reality. The result may be (null-0)+"0", but the actual code will be foo()-bar()+baz(). And C will at least give you warning about types, even if NULL-0+"0" could give you an address. Plain JS without extra tooling would happily give you the unexpected result. Some other dynamic languages would at least throw an exception about incompatible types for -/+.
> How else would you test your SPA against millions of different content-modifying browser plugins, for example.

You don't.
I don't get it.

What's wrong with earning the minimum wage?

Why should he make more?
I guess there's a lot of people who don't work with JS and learn about it from memes like this, so I feel like I have to clarify: I've been writing Javascript (well, actually Typescript, as any other sane person) professionally for quite a few years now, and I can count the amount of times I've actually been bit by these quirks on one hand. And if they added Array.sort() and MAX_SAFE_INTEGER (NEVER serialise and deserialise Facebook's and other long digit IDs as numbers), it's still better than most of the alternatives, in my opinion.
Just be careful where you redirect the user to. Redirects without validating the destination may be used for malicious purposes.
Good grief. Imagine thinking THAT is the problem here. Nobody knows how many people saw those documents (or other copies of same) before they were reported. Come on.
Fair point. I guess I could rephrase it as "JavaScript provides a lot of value".
Then your regular identity must be tainted as well, because the difference is night and day.
1TB = $5 on B2. It's pretty great pricing, and there is no reason for them to give you that for free in the backup plan, when it would obviously be at a loss. The "unlimited" plan pricing reflects the fact that very few people carry 1TB+ laptops around.
I am still using it too. The BBC article is about as clear as mud, and I doubt that the person who wrote it even understood the story.
Tell us more about that experience.
Mirotalk: Free Secure Video Calls, Chat and Screen Sharing
I honestly don’t care much for the signup/login page, I only have one must to have requirement : keep it simple and make password managers work, please !!!!
Interesting read though ultimately a poor argument. It all hinges on historical observations of circumstances and contexts that no longer exist. There are no universal rules here and no objective causal relationships between any of the values observed.

An 'appeal to history' is a fundamental fallacy in the structure of arguments. It doesn't mean the argument is false, it's just that it isn't true because 'it was observed to be true in the past'.

The arguments of the article are easily defeated by references to successful modern societies that do not have all of these features and have high taxes. Scandinavian countries being the tried and tested refutation of this.

Really all it's doing is saying that the best way for the Libertarian Right to weaken arguments for higher taxes is to simply sow political and cultural discord so that there is no social unity. This then allows them to prosper by way of increasing wealth inequality that can only be remedied by (hopefully) brief periods of higher taxation.
The first is only weird if you expect the + operator to perform an operation on arrays. It doesn't, so each array becomes a string and those two strings are concatenated.

The second is only weird in that you are constructing an array with implicit undefined values, which is exactly what I would expect to happen if my linter didn't complain about the syntax and I had to guess what might be happening.
How would this work? How many project maintainers would sign on for this?

"Hey, can you merge this PR? I'll fail if you don't review and merge this by tomorrow morning. I'm sorry I left it until the last minute but I had a bunch of work do to in another class and couldn't get to it until today."

"Hey, I ran everything through flake and black and spent the past 72 hours getting my test coverage (and the coverage of the rest of the project) to 100%. /Now/ will you approve this PR?"

"Hey, you stopped responding for the past week, are you on vacation? Is there any chance of approving this PR by Friday?"
A comment where I provided some details on English church hymns where such composition/melody claims were made: https://news.ycombinator.com/item?id=27004892. Précis: about 20% of the hymns we were using were being illegitimately claimed, almost none of the claimants were acting in good faith (they didn’t review the disputes, but allowed them to lapse in my favour), and successful disputes did not prevent subsequent claims for exactly the same thing.
I thought it was worth clarifying exactly what has happened here, since neither the BBC nor the FT articles make it particularly clear.

The entity that the FCA has acted against is Binance Markets Limited (BML) which the parent Binance Group acquired earlier this year, in part because of its existing registration with the FCA which allowed it to carry out a limited range of regulated activities in the UK.

The FCA has now placed restrictions on BML which remove its ability to carry out those regulated activities -- however BML was not actually doing any business in the UK so the effect of this is limited.

The FCA also issued a consumer warning which, among other other things, reiterated that no entities in Binance Group are registered with the FCA and therefore cannot carry out regulated activity in the UK. Again, the impact of this is limited since the entity that you interact with when using the Binance.com website is not based in the UK, and the FCA does not have jurisdiction over it.

A possibly outcome is that Binance will be a bit more circumspect about offering derivatives trading to UK retail because they want to build a more substantial UK business in the future. We saw this with Bybit a while ago, where they do not allow UK retail to use their website (although they have an exception for sophisticated investors, who can self-certify as an eligible counterparty and continue to trade on Bybit). I wouldn't be surprised to see this.
Website content on a web browser:

> This website is literally about JavaScript. I mean what did you expect, a .NET application? This website is 99.9% poorly optimized and highly questionable JS. And yet, you have JS turned off.

Yes, a website can be about Javascript and still be a collection of documents in web standards, like HTML+CSS, possibly with optional interactive features that could be implemented in Javascript.

I mean, what did you expect? That it is impossible to edit a book on paper about Javascript because obviously paper cannot run Javascript code?
Even I have books about Javascript, and they render fine.
Elegant Dashboard Kit
The Elegant Dashboard Kit is based on real practice, has a sleek design and well-coded template. You will build your dashboard interface 10x faster with this template.
Yes, scrollbars are supposed to flash when a view appears. This can sometimes not happen, or be hidden (say you open something in a tab and the code is not correctly written to handle visibility, or the more obvious case that you just didn't see it happen) but it's intended to let you know that scrollers are there.
My nomination - when someone has been invited by email to join the site (e.g in a saas system, one user invites someone else to join their team), then don't make them verify their email!

I see this so often, and it adds no security, and bewilders the user.

When someone clicks through from an invite email, you can assume that they have control of that email so slip email verification, and just ask them for their password.

We modified keycloak to do this and it greatly reduced support calls. It's a mystery to me why it's not out of the box behavior.
Modern Javascript, and especially compiled-to-javascript languages, like Typescript, Reason, Elm and others, are quite great. Those quirks are funny and weird, but it's not something you actually run into when you write code that isn't actively trying to show the weirdness of javascript.
I wouldn't say it's trash. JavaScript has many ugly quirks, but it has many good facets too, and it can be be used to write effective and fairly elegant code. Considering how quickly it was thrown together, and that's it's been evolving since then, I'd say it's a surprisingly good language.

> how can we make progress if things are not perceived as they are?

People aren't blind to JavaScript's failings. The evolution of JavaScript has been a mix of adding new features and fixing what they got wrong before, e.g. the way it has two different isNaN functions. [0]

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Ask HN: Share details of the best-in-class software in your toolset
Rule: Best-in-class software is developed to be an optimal solution for an individual category.

My submissions are:

* Category: Grep / Tail

BareGrep / BareTail from Bare Metal Software <https://www.baremetalsoft.com/index.php>

Unfortunately not cross platform but on Windows there are no better alternatives to BareGrep / BareTail for tailing logs or searching text. These tools are tiny in size (<=310K), standalone exes, no installers, with config that can be stored in the registry or as an ini file on disk. This software has reached its peak and has not been updated since 2006 and yet as of today, 2021, it is still fully worth the $50 per concurrent user license for the whole tool set. I sorely miss not having these on Linux.

* Category: File Comparison

Beyond Compare from Scooter Software <https://www.scootersoftware.com/features.php?zz=features_list>

The best cross platform file/folder comparison tool. The list of features is unmatched by any other alternative and is more than worth the $60 per user license.
Ethernet was simple, with VLAN.. it isn't so simple anymore..
Most real world non-JS frontend code compiles to JS, not Wasm. Lots of apps written in ClojureScript, TypeScript, Elm etc. These are mature and Wasm has mostly only disadvantages to offer.
Technically yes, practically there should be no way to know which account has which phone number.

The bigger problem is if the site requires you to re-verify your phone for whatever reason (for ex. paypal does when you access it from a strange IP or sth) and the number you used may not be available anymore.
There are several other coronaviruses that commonly affect humans, so I assume that these findings should be common to other coronavirus infections?

So many articles and stories in the media have been implying from the start of the outbreak that COVID-19 is some crazy new type of virus, rather a mutation of a virus that has been infecting people for centuries.
It's not a binary problem, it's a particular binary representation problem. You can represent 0.1 and 0.3 such that it terminates. In Java for example just use BigDecimal (integer unscaled value + integer scale) and you are ok.
Again, food snobbery. "If it isn't from Parma, then it must be Kraft quality"

> But if there aren't labelling laws,

No one argued against labeling laws except the strawman in your head. The question is whether something is specifically necessary about occuring in the region of Parma in the cheese making process of Parmesan. I don't think it is necessary to not let Kraft call their product "parmesan cheese" for the sake of consumer protection, when existing laws already make it illegal to falsely label your product - for example, trademark laws would not allow you to fake the DOCG label, and existing laws don't let you lie about the origin of the product (Kraft could not say "Made in Parma, Italy" on their product).

> Knowing that the cheese is made in accordance with strict regulations is a good guide.

Again, which is nothing I argued against. You can have strict regulations while not restricting the commonly understood usage of a word. In fact, you seem to agree in your actual usage, since you called it "Kraft parmesan", and not "Kraft parmesan-like cheese product"
I agree with most of your points. But disagree with the fact that universities should teach only theoretical aspects.

Apart from the top ivy league schools, many schools are not going to teach the theory stuff well anyway.

And teaching the tools (not JIRA but, say git and docker) are not dry carpentry, there are concepts which a computer science student should be equipped to understand.

Last time I remember, an MIT course on programming tools gained traction on this site.

As for not contributing to OSS projects right away, I agree, universities should rather have a project after each course completion so that students get to exercise the concepts.
Well, maybe is about time to stop feeding the beast. I get it is a fair complaint. But what about not uploading stuff to youutube in the first place if it is so hostile to content creators? Let it be what it is supposed to be, a giant repository of corporate, advertising-based tacky mass culture.
There is no ambiguity in non-responding - if I am not responding, the subject is of no interest to me. That's pretty simple thing to understand.

Of course it doesn't work for non organised individuals and people who succumb under pressure.
Yes, the quotation from dictonary.com exactly supports what I am saying. It's a piece of spoken dialect not standard English. It's as if I was after using hiberno-English constructions in a HN comment. Will you go on out of that.
"... Quran presents life as more; like it uses a symbol - like a book ..."
https://www.youtube.com/watch?v=VdzbzkJ1mjg
They don’t. They just use “console.log”, you see it because you opened the console. It’s not like they know you’re there and then write a message.
There is also the topic of language revisions. In my experience, gnu tools sort swedish correctly by the old rules, those that collate w with v, i.e w and v sort as if they are equal (war before ver before whar).

However, in 2006 the arguably authorative dictionary changed to sort w after v. Gnu tools have yet to catch up with this, what I can see. :)
Everything You Need to Know About Torchvision’s SSDlite Implementation
Also things like +!![] is because while JS is dynamic it does have a very strict type system! ![] becomes a boolean +true becomes a number.
This is a good read on it:

https://www.newyorker.com/magazine/2014/10/13/cookas-tale
Ask HN: Which aspects of a software product can be patented/copyrighted?
What does it mean to have intellectual property rights to a website?

I'm a web developer, I'm working on a web app as a part of my course at a university. I have recently learned that the university claims the intellectual property rights to everything the students are creating.

As I'm building my project, I'm learning a lot of things that would be very useful in my future career (personal projects and things I will build for my clients).

I'm mostly talking about technical details - tech stack, the project architecture, the way libraries fit together, a way to implement authentication system, a way to build database models, etc. But also some design elements that I really like (specific layout, color scheme, etc.)

Most of these these things are not specific to the app I'm building, they are very reusable between projects, and I'd love to be able to apply the ideas I'm learning (and some code samples, since they're mostly identical between similar apps) in my future work.

Which aspects of this project can I legally reuse in my future work without getting into legal trouble? Can the university sue me for reusing the same auth system, or a similar data model, or a similar website layout?

Where's the line between the code that belongs to the university, and the skills I have developed that belong to me?

(I'm not inventing any kind of breakthrough technology, like Google's PageRank algorithm. I'm just combining the things I'm learning from a bunch of tutorials and video courses from the internet, the rights to which don't belong to me to begin with.)
I thought it was worth clarifying exactly what has happened here, since neither the BBC nor the FT articles make it particularly clear.
The entity that the FCA has acted against is Binance Markets Limited (BML) which Binance acquired earlier this year, in part because of its existing registration with the FCA which allowed it to carry out a limited range of regulated activities in the UK.

The FCA has now placed restrictions on BML which remove its ability to carry out those regulated activities -- however BML was not actually doing any business in the UK so the effect of this is limited.

The FCA also issued a consumer warning which, among other other things, reiterated that no entities in the Binance group are registered with the FCA and therefore cannot carry out regulated activity in the UK. Again, the impact of this is limited since the entity that you interact with when using the Binance.com website is not based in the UK, and the FCA does not have jurisdiction over it.

A possibly outcome is that Binance will be a bit more circumspect about offering derivatives trading to UK retail because they want to build a more substantial UK business in the future. We saw this with Bybit a while ago, where they do not allow UK retail to use their website (although they have an exception for sophisticated investors, who can self-certify as an eligible counterparty and continue to trade on Bybit). I wouldn't be surprised to see this.
Show HN: Quix Serverless Compute: Git, Kafka and Kubernetes Simplified
GitHub – astryzia/stalkerware-URLs: tracking stalkerware hosts to sinkhole
It was me. I often spend 10 minutes writing a comment, I post it and sooner than later I delete it.

Effort to put my thoughts into coherent words is often more important to me than the comment itself, and thus it had had served it's purpose in the instant I wrote it down.
All ketchup is actually pretty bad. (Controversial opinion, European here who'll pick aioli over it any day)
Memory models are subtle. Temporal reasoning in context of h/w, e.g. multi-core coherence, and language runtime MM is non-trivial. So there is a baseline level of difficulty baked into the domain. Education certainly is necessary, but here can only inform of what needs to be considered, known pitfalls, patterns of concurrency, etc.

As to OP, well it better be viable, because we certainly need to deal with it. So better tooling and conventions encapsulated in expert developed libraries. The education level required will naturally fall into the categories for those who will develop the tools/libraries, and those that will use them.
Although I like Javascript (Typescript) a lot, I have to bite:

> Dynamic languages are easier to program in.

Only if you don't care about writing correct and maintainable programs. The only thing that dynamic languages make easier is writing code. Or, more specifically, the first couple of versions of it. That's not what typical programming as a process mostly consists of.
On the contrary - the number of people taking hard drugs to get high is fantastic evidence that they are good for getting high. Otherwise, why would people be buying and taking them?
You'd hope that in a more guided environment where people are actually rated on the quality of the contributions things wouldn't be quite so bad.

But yeah, I'm not looking forward to a future where every inexperienced student needs to be guided through the basics. There is already quite a lot (too much, IMO) being put in the shoes of volunteer maintainers with very little concrete in return, and this will only add to that.

To put it bluntly, I am not your unpaid teaching assistant, and would consider it dubious if I was used as such without consent.
Not sure a public register alone would solve the issues. There were already cases in the past where TV shows registered copyright on their episodes and it resulted in automated strikes against youtube videos featured in these episodes.

So for any registry to work you would have to go through every video and mark exactly what parts you claim copyright for, which parts you do not claim copyright for and who else might hold copyright. Basically you would end up killing the automation, which would most likely piss of the movie and music cartels/lobbyists.
Colorado passes law to study blockchain for water management as drought worsens
Why not 3DS with pre-charge $1 with random description for the customer to later verify?

Sorry but they're not getting my ID. Strikethrough.
Here! Here! Angry downvoter. Don’t leave this post out.

Smash that button.
Well said. Google has become one of the big evil players. So fucking glad I turned down their hiring attempt.
WhatsApp Chats still available despite not being indexed by Google now
Whatever you do needs to come off as genuine. Some sales people use their humour and likability to sell, others try to come across more professional and trustable. I guess to some extent it depends on what you're selling too, but I don't think all sales techniques would work well for all people. If you look like you're trying to run a sales routine on someone they'll see right through it.

I'm not great at sales, but for me working in a computer shop when I was younger helped me a lot. The key I found there was understand the customer's needs and reassuring them that you know what the right product for them is. If you know what you're selling and have confidence in the products you're recommending the customer will be likely to trust your judgement.

But I guess this wouldn't apply to all sales. I had the luxury of the customer already looking for a product so I was really just there to assist and reassure them. If you're cold selling my guess is that your personality will be far more important. In those cases you'll need people to first like you enough to hear you out. As someone who's introverted and a bit socially awkward I doubt I'll ever be great at that side of sales, but I'm sure a little door to door sales or similar would go a long way if I ever wanted to practise that.

A lot of sales is just good social skill though. Just trying to start and hold conversations with strangers would probably give you 90% of what you need to be a good sales person.
Nowadays reputation is mostly controlled by media and PR but not the actual product quality.

"Reputation" is built by salesmen and PR but not engineers.
the only trash is that comment LooL
Why not a custom HTTP header where the value is the bare token without "Bearer" prefix?

I don't see the value of using specifically the Authorization header for machine-to-machine APIs (except to make it easier for man-in-the-middle).
What is your cutoff in terms of time for what is traditional or not?

I would wager that 300+ years is more than enough for any custom to be qualified as traditional.