skysight-inc/HackerNews huggingface dataset:
I find string enums useful when I want nominal typing. However, I do think that it is a little confusing when most of the type system is structural, except for string enums. What complicates things further is that any number can be assigned to a number enum without casting, which I understand is so enums can represent bitfields (e.g. so Permissions.Read | Permissions.Write is still of type Permissions instead of number), but I wish numeric enums worked the same as string enums and doing bitwise operations on these enums would return the enum type and not a type-erased `number`.

I mostly agree with the rest of the article’s recommendations, but don’t fully agree with their reasoning.

- Yes, namespaces should be avoided, but not because they generate extra code. Namespaces are not recommended anymore and modules (actual JS modules not TS’ `module`) is the recommended approach now.

- Yep, private fields are better for ensuring a field is truly private.

- I think decorators are fine to use if you’re prepared for your code to potentially break in the future if they’re standardised. Developers use new/unstable features all the time (e.g. stage 0/1 JS proposals via Babel, nightly Rust toolchain). And I don’t believe the lack of standardisation of decorators should be a factor in deciding whether to use a library that requires these.
> It may be a bit annoying to create many small files, but modules have the same fundamental functionality as namespaces without the potential downsides.

Do they?

It seems to me that namespaces are more powerful and convenient than JS modules as they enable more structure.

I have only dabbled in TS and am not sure how useful they are there. But I assume they would be similar to PHP/C#/Clojure namespaces on a conceptual level.
They should indeed just ignore them, free speech wasn't arrived at as an optimal path by accident. Nothing changed to make it not-optimal.

People need to adapt to not believing every stupid thing they read on the internet and actually thinking critically about things. The information streams of the world should not be tailored to the critical thinking ability of complete morons.

It blows my mind we went from "trying to censor cop killer is a bridge too far no matter the merits of doing so" to "you can't say things that compromise the interests of powerful individuals, offend the chronically sheltered, or that might confuse the braindead under any circumstances" just in my lifetime. Free speech seemed absolutely unassailable in my youth and has been completely destroyed relative to that in present day.

What the fuck happened?
Bubble burst
I think it’s insane to expect any household to pay $200 a day for basic utilities.
mRNA technology could create a new vaccine – against ticks
> I honestly don't care what this transpiles down to, the point for us at least is not to make things "truly private" (good luck with that in JavaScript). It's simply to compiler-enforce rules.

It’s not just JavaScript. With reflection in C# and Java, you can mess around with private variables from outside the classes. For Java, this can have some pretty interesting results, such as 2+2 being equal to 5.[0] The whole point of compiler level annotations is to keep good programmers honest.

If some devious JavaScript developer wants to ruin your library, that's their fault.

[0]: https://codegolf.stackexchange.com/a/28818/13944
As long as you are not using "const enums" JavaScript/TypeScript interop is not a real problem at all.

The private keyword is obviously preferable to "#" in environments in which you are targeting older ES versions.
Oh man, I wish. For me even the biggest names barely have more than 3 or 4 songs worth listening to.
The arguments not to use them are implementation details of the tooling.

Well designed Abstractions are good, not bad…
Can I just ask where you live? I know a lot of countries don't have proper Google Play stores so have to resort to sideloading. Obviously in western countries we don't have this issue so android malware is a non-issue but I'm interested in what country android phones are full of malware to the point where you're apparently wasting a lot of hours doing tech support.
> Any "software engineering" that took place, if any, would occur before the first instruction is even written for a production system.

Great comment.
Designing a bus protocol or the C++ standard is definitely software engineering.

Programming is akin to trades like construction or production technicians. However, usually a software developer is involved in the design, implementation, production and maintenance whereas the former are only involved in last two.

That is because programming projects are subject to change in production. Waterfall is too slow for many businesses and the implementation winds up being a mess despite the linear workflow. Iteration is necessary to improve any design.
I'm so happy for having moved all of my content from G Suite to a self-hosted Nextcloud instance long ago. Now that Google has come up with this announcement, I simply decided to remove those services from my account (I had even forgotten that I still had them). All of my data and cloud services are safely stored somewhere else. Google's ransom strategy doesn't apply to me.

If you haven't don't so yet, move to a self-hosted solution. Remember that there's no cloud, it's just somebody else's computer. And if the guy who runs that computer decides that you have to start paying more for it, you don't want to find yourself in a situation where you have no options but to accept - unless you want to give up your data. Google's ransom policies have started to become so obvious: the more evil somebody becomes, the more banal and predictable their actions.
Yes, but with the widespread hysteria about pedophiles many potential mentors will decline. Already the suggestion that to work with children under public supervision you need a background check is an insult.
Educated people do morally wrong things all the time. The two have no relationship to each other.
Plastic is less recyclable than aluminum.
No need to accuse people of being shills.

Putin is legitimately popular inside of Russia, for a multitude of reasons:

- there's no challenger in sight (which obviously is caused to a large part by any potential candidate being suppressed once they are too successful, e.g. Navalny)

- Russians - particularly those who have witnessed the events directly prior, during and after the fall of the USSR - value stability over revolutionary changes or unrest. Current Russia may not provide the level of wealth as the US or Europe, but the difference is in the eyes of many not worth the risk of repeating recent history. See also [1].

- Putin, similarly to many other Eastern European strongmen like Orban, is an expert at timing government handouts to important voter groups such as pensioners [2]

- Unlike mainland Europe or the US, there's not much of a tradition of democracy in Russia. First, you had the Tsarist monarchy, then a couple of years of civil war, then the decades of the USSR dictatorship, then a couple of years of a bit of democracy, and then at the end of 1999 Putin got into power and slowly destroyed the progress of the last eight years before.

[1]: https://www.reuters.com/article/us-lloyd-putin-commentary-id...

[2]: https://www.dailysabah.com/world/europe/putin-butters-up-rus...
I know you say it without any offense, but don't call them "dumb websites". They were the thing I miss mostly about the old internet, specific niche websites made by people with passion for every need.

- Specific websites for Half-Life mods run by a group of people from different parts of the world with a creative name (now you have to go to a subreddit or discord with a generic name, because of SEO?)
- Specific website to follow all the news about my favourite soccer team, visiting every hour or two hours to see if they updated something. Now Twitter (Instagram later) has stolen that urgent sense.
- Am I waiting for a new movie? Let's update the forum that I regular visit to see if the studio released a new trailer in .mov format and different resolutions. When it's done, send the link to my friends over MSN. Now it's on YouTube and I get a notification.

Those dumb websites were the best and I am glad people like us spent their teen years creating them. Not only because I learnt a lot (and now I am a professinal thanks to them), but also because I think we give enjoyment to a lot of people around the world just because of it.
Delta and previous strains saw horrendous, mass casualties in many countries. I don’t think that’s really happening anywhere with omicron. It may be that enough of the world is vaccinated at this point (or had covid) that there’s no way to properly compare. Or maybe it’s just not being reported anymore? But it definitely doesn’t feel anywhere near as bad as previous waves, even in the unvaccinated population.
I like these recommendations, especially around decorators, maybe I’ll start following them

reviews Angular app

oh
$6/user/month is $6 * 12 * 100 = $7,200 a year if you have taken up their grandfathered offer of up to 100 accounts.

This is for a service which is basically identically (except in some ways where it is less functional) to their free offering but linked to a custom domain, and a service they told us they were planning for to be free forever.

I wouldn't mind paying something, but this charging per accounts is ridiculous for something that was free.

I would have used the service differently if I thought it was going to transition to a paid-for service.

For example, I have an elderly friend who I hooked up to the Google ecosystem using my domain because I thought it would be slightly easier to troubleshoot any issues he had if he had problems. He wasn't costing Google any more than if he had an @gmail account. (Presumably he brought in the same amount of money, rather: if he was profitable under a free account, then I imagine he was just as valuable on an Apps account).

He doesn't even use email, so the custom domain doesn't really help him. He will be just as happy to use a free @gmail account, but I will have to spend an afternoon some time in the next few months driving out to see him and updating his accounts and devices. And then doing the same the next weekend when I've missed something. And then doing the same for some other users.
US LLC Taxes – A Potential Tax Haven for Foreigners (2020)
> One year after the deadly blackout, officials have done little to prevent the next one—which could be far worse.

Why would they:

> During the February freeze, the gas industry failed to deliver critically needed fuel, and while Texans of all stripes suffered, the gas industry scored windfall profits of about $11 billion—creating debts that residents and businesses will pay for at least the next decade.
The people who want Facebook to not half-ass being a publisher and the people who want Facebook to stay neutral are different crowds.
1. Spaceship earth is heating up and some parts are dying as a result. Someone wants to develop a new technology to cool those parts down. If there was no risk of permanent damage (the technology involves lofting sprays of ocean water), would there still be opposition?

2. Developing technologies for weather control should be avoided because they could lead to conflicts of interest. Can't the same argument be made around any technology?
Gee, thanks.
In black start conditions, you probably aren't going to have reliable network or power to position the switches in startup position, or to reset breakers, possibly even to power the sensors necessary to bring back a single substation.
for a summary and thoughts on matters of sports and health like this i trust greg nuckols on strongerbyscience: https://www.strongerbyscience.com/research-spotlight-walking...
Agreed, with reflection you can get around that also, but in JS it's even less of a "real thing" at the moment and I don't see that changing until the far future where we can drop some of this legacy cruft.
What evidence would satisfy you?

How common does it need to be to matter? Several thousand teenagers with six or seven figures of liquid crypto assets is still over a billion dollars deciding if a new product or service gets off the ground.

Why do you think you need to be concerned?
Not OP, but that's not how I interpreted their comment. I interepreted it as the 70% they hope to have fixed will end up having edge cases not yet considered, and the protections will end up weaker than desired. No-one designed a processor to be susceptable to spectre and meltdown, once something moves into production there is significantly more incentive to investigate and find these flaws.
> 1. Avoid Enums

What? This is IMO bad advice. Having a sum type is quite handy for general type-checking, at least insofar as the type truly is an enumerated type (i.e. all possible values are known at design-time). There have been times when TypeScript enums have been indispensable to me when declaring the external interface to some client-facing API. Whatever the API boundary is, a sum type is useful.

Also, TypeScript gives general intersection types, which is quite rare among its peers. (What I wouldn't give some days for mypy to have intersection types, or bivariant functions, or conditional types, or ...)

The only other impetus for this post I can imagine is some weird desire to see typescript as a strictly separate layer above JavaScript that "could be removed" if we wanted it to be. I suppose that was the project's original telos, but today the abstraction is leaky in a few places. I'm a world where JSX is common and radically departs from what would be considered normal JS, I don't see a problem with TypeScript being leaky here and there. Hell, I'd prefer TS to be leakier and add opt-in runtime checking (i.e. code gen), because it would make my life easier in certain instances.
I understand it's not really your point, but if you're actually looking to export all the data from the table, they've got an API call you can give to have DynamoDB write the whole table to S3. This doesn't use any of your available capacity.

https://docs.aws.amazon.com/amazondynamodb/latest/developerg...

Beyond that, though, it's really not designed for that kind of use case.
No one gets a bonus because no disaster has happened in decades. Squeezing a percent or two out of a maintenance budget is exactly the kind of behavior that regularly is incentivized.
Unfortunately, I'm not a gamer, and run a weird version of linux which I don't think you support anyway, but I have played Slipways (a friend purchased it) on the PC, and it's a great game!
Google is reportedly building a new blockchain division
Which US immigration filing processes are considered to be difficult?
Out of preparing all your documents and organizing them, the interview process, and waiting for an approval, which step do you feel is the most difficult?
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
If you can view the full body of evidence and believe that there are "data integrity issues in Pfizer’s vaccine trial" or support more specific accusations such as "the company... unblinded patients", then that's totally fair. I cannot find those conclusions in what's been released, and based on what's been released I think classifying such a headline as "missing context" is accurate.

If the headline was "Questions about data integrity in Ventavia-run vaccine trials" or "Allegations of misconduct at three vaccine trial sites" I might be more sympathetic; but as it stands I think classifying this as agenda-based spin is a fair assessment, as on the whole there are no concerns about about the Pfizer vaccine trial, only the three sites administered by Ventavia. The distinction being that the integrity of the Pfizer trial stands on solid ground even without the Ventavia data, which is a small fraction of the total data set.

That the agenda the BMJ is spinning for is anti-vax is deeply disturbing to me, but that's a separate discussion. I hope you can at least see the concern about such a headline, how it might be perceived as spin, even if you personally don't view it as such.
AFAIK is mostly used in Germany, where SuSe has a strong take due to the average german person strongly preferring german-native stuff.

It looks like a cultural to me, in many times when I have interacted with people from Germany in a business context it just seemed that they are perfectly capable of speaking english but they just don't want to.
> SQL Server and Oracle both default to heaps

I don't think that's true for SQL Server.

If you define a primary key in SQL Server, this is automatically a clustered index.
You are posting your symptoms on an online forum expressing concern for a medical issue you’ve either heard about from the media or anecdotal evidence from other people that have heard about it from the media.

It would seem to me, based on the above, that you are experiencing anxiety about the long COVID issue and thereby exasperating the “symptoms”.
It’s not fact checking… it’s a spam filter style that slaps a warning label on things that could allows Facebook to say they did something.

No different than warning labels on cigarettes or really boring commercials from the NFL urging you to not gamble too much.
You could give a try to Foam [0].

[0] Foam is a personal knowledge management and sharing system inspired by Roam Research, built on Visual Studio Code and GitHub.
https://github.com/foambubble/foam
With DynamoDB, you can now execute SQL queries using PartiQL:

https://docs.aws.amazon.com/amazondynamodb/latest/developerg...
Exactly my experience. I got sucked into using more than once, thinking it would be better next time, but there are just so many sharp edges.

At one company, someone accidentally set the write rate rate high to transfer data into the db. This had the effect of permanently increasing the shard count to a huge number, basically making the DB useless.
Yeah M-DISC is probably the best way to store important data (i.e. for me mostly old photos). Hard drives still seem a bit scary to me, even if you have multiple copies. I.e. you accidentally drop it and all the data on it might be gone, or there is some technical problem with your PC and also gone... While on an optical disc once you burn it it's always there (unless maybe you use brute force to ruin it).
> A well formed religion might be thought of as an effective form of long term data storage.

An example might be useful; it seems to me that religions inherently distort the message of their founders. For example, most of Buddhist teaching was developed long after the Buddha died. Christians have had multiple doctrinal conferences to determine what is the "true doctrine". Islam has been divided since shortly after the death of the Prophet.
Although I do understand the reasoning in the article, I completely agree with you.

Switching between Python and TypeScript/JavaScript all the time, using ‘#’ to define private field feels weird and I personally prefer more explicit way of writing code. Plus AFAIK the ‘private someField’ is common in other languages (Java, Scala,…).
> it was only possible because of that earlier work on the closely related SARS protease - and remember, at the time (and for some years thereafter!) that work looked like wasted effort for the most part. After all, there was no SARS to treat, and there were no other related coronaviruses out there causing trouble. But that's science: once you discover something, it stays discovered (or it had better, anyway), and that knowledge is out there waiting to be put to a new use.

This also somewhat applies to mRNA technology. It was initially being worked on for cancer treatments and (as far as I am aware) not seriously considered for vaccines.
oh sweet summer child.
> It’s entirely possible that people who are healthier simply tend to walk more than people who are less healthy, and daily step counts are therefore merely a proxy for general health, and don’t have an inverse causal relationship with all-cause mortality. However, I don’t think that’s the case – at least not entirely. For example, a 2015 meta-analysis found that group-based walking interventions, all lasting one year or less, led to significant decreases in systolic blood pressure, diastolic blood pressure, resting heart rate, body fat percentage, body mass index, total cholesterol, and depression scores, while increasing VO2max, 6-minute walk distance, and score on the SF-36 physical functioning inventory. Most walking intervention studies don’t use particularly strenuous walking programs either – generally 20-30 minutes of walking per day, which works out to ~2,400-3,600 steps for most people. So, if a bit of walking can beneficially modify ten different risk factors for all-cause mortality in less than a year, I think we can make a pretty strong case that the inverse relationship between step counts and all-cause mortality is more than mere association.

https://www.strongerbyscience.com/research-spotlight-walking...
60kWh Tesla Battery DIY Powerwall System Tour [video]
More likely these guys believe this jewellery is going to solve their financial problems.

Given the scratch-ability, the suggestion that these things are practical for robust archiving is laughable.

But if they're handled carefully I can imagine them being useful for smuggling data across borders by hand or by mail. Which makes them potentially useful for money laundering, one time pads, and such - at least until customs services catch on to what they are.

There are better and less showy ways to do all of the above, but presumably you can print a cover photo or message with some embedded steganography, and the data content won't be visible to casual inspection - an application of sorts, I guess.
You are assuming earning money is a meritocracy. It definitely is not.

Also the government’s role in spending money is to offset tragedies of the commons. No matter how well someone can deploy money, they have little incentive to deploy their own money to fix issues of the commons. However, it is possible for them to know that society as a whole would be better off if everyone was forced to contribute a fair share to those issues.
esbuild seems to support enums fine
Skilled senior engineers working for hedge funds or in low latency trading can get paid that much but I've never seen tech salaries that high in any other industry in the UK.
I do have a fully solar powered VPN gateway/LTE router/web server/Wi-Fi relay - in my case, it’s out of necessity, as I live in a deep valley, and the only way I could get internet access here was to stick a mast on top of a hill with an IP67 box of goodies and a solar panel and battery, and an LPDA and yagi antenna for LTE and 802.11n respectively. The web server isn’t public, but fulfils a few important functions for me.
Can you really configure to send from the forwarded address? From the faq[0] page: "When you need to both receive and reply to emails from a custom address, and unlock other professional features, upgrade to Google Workspace."

[0]https://domains.google/learn/how-to-use-email-forwarding/
3 bedroom flat. I use Ubiquiti equipment since sourcing Ubiquiti is much easier than Mikrotik here in the Philippines, and I've had bad experience with TP-Link, DLink, etc. randomly requiring restarts or outright failing after a few years.

* Unifi Security Gateway Pro (for the 2 WAN ports with failover)

* Unifi US-8-Lite-PoE

* Unifi AP-AC-Pro meshed to a:

* Unifi AP-AC-M
Enums and namespaces are hardly complex code gen or generate 'issues'. People would often manually namespace in JS a few years ago, and namespaces and enums can really just be seen a lightweight holder object instances. Indeed, enums in Java are class instances.

Besides, there is an straightforward way to remove enums from a program just like removing type annotations: Inline them as static fields of an object.

There is a simple syntactic transformation.

e.g. change 'enum' to 'const', add a '=' before the '{'
and use ':' instead of '='
const HttpMethod = {
Get: 'GET',
Post: 'POST'
};

// now this no longer breaks
const method = HttpMethod.Post;

Namespaces can be translated in almost the exactly same way.