skysight-inc/HackerNews huggingface dataset:
"Not your unit tests." then don't write these unit tests. Use integration or orchestration testing.
Yeah and they're not doing it for us they're doing it for them. MS is a corporation not some kind of NGO
The Diving Reflex could explain the first one: https://en.wikipedia.org/wiki/Diving_reflex
No product starts with an elaborate ci/cd pipeline and automated test suite. Many evolve into needing such tooling after having had an incident or two when a deployment broke the site…and the response invariably is that “we should have written a suite of really basic tests which goes to the home page and checks if the hero image is visible.”

If co-pilot’s autogenerated test cases can help prevent this head smacking, it will have proved that basic/boilerplate code was valuable.

The site checker included in the tooling is just a more mature version of the boilerplate unit test co-pilot gives us.

Btw, I have no skin in the game -never used co-pilot…just surprised that HN commenters can be so dismissive of wanting to get the basics right - like having some test coverage.
In my experience, being difficult to test is a sign that a refactor is needed anyways.

Difficulty testing also creates a higher barrier to adding new features. If you can't test something, it reduces confidence that your change won't break it.

If it's an extremely performance-sensitive component, then you'd obviously want to be very cautious about big changes. However, that's usually not the case.
I would hope that the authors know that you can run Firestore queries on the server just like Convex apparently can, either from Firebase/Google Cloud Functions, from Google Cloud Run, or from any other server.
I've worked for a hotel chain in the past. They're using the same rate codes you could be using booking directly with the hotel. They just know how to show the lowest rate code possible.

If you look at hiltons on booking.com and booking at hilton.com you'll see different prices, until you go through the hilton.com process and select non-refundable/non-cancelable rates, then they're the same rate, expect if you book via booking.com you don't get any points with the hotel chain.
> is the ability to keep your assets and transactins invisible (or nearly invisible) to the government.

It's only invisible if you got way out of the way of ergonomics to use cryptocurrencies and try to keep them into an anonymous wallet. The moment your wallet address is figured out all of your transfers in history are an open book, by definition of a public ledger.

So anonymity from government is definitely not a real feature of this usage...
> "Don't swim for 30 minutes after eating or you will cramp"

That's a new one for me, but I'm from Europe. I spent my childhood on rivers and lakes, rapidly alternating between food and swimming (and other things). No cramps due to food (scarcely any at all to be honest). I've had a lot more cramps in swimming pools than in natural water, now that I think about it.

> "You should be drinking 8 glasses of water a day"

I could believe that. I used to drink ~4 glasses a day, but it made me feel like a lizard (without really realizing the cause at the time). Now I drink more than 8 and feel much better.
The latter. Tetanus shots are recommended every 10 years. The other ones come along for the ride. Just say to a pharmacist: “It’s been 10 years since my last tetanus shot.” Bingo bango.

(This is not medical advice.)
Depending on how far along you are, I'd recommend checking out: https://lexical.dev/

I'm in the process of migrating my companies RTE from Slate to Lexical.

I've been able to remove thousands of lines of custom code and increase the performance and reliability
Why Software Architects Fail and What to Do About It
highly, highly recommend this book

when i was given a compilers class to teach i wanted to teach hand-written recursive descent because it is simple, elegant and makes the recursive nature of grammars so readily apparent without hiding concepts behind obscure tools

i was despairing that there were no good books around on recursive descent, but stumbled on crafting interpreters before it was even released as a book and immediately structured my class around it

absolute life saver and my students all love it

cannot say enough good things about it!
Sure, but then the same fat has to be consumed in solid form instead.

When kids are put on the diet for epilepsy they make them chug cream and mayonnaise, not exactly my idea of a delicious meal: https://www.epilepsy.com/treatment/dietary-therapies/ketogen...?
And also that Marijuana can be consumed in a similar way, vape.
Full results: https://survey.stackoverflow.co/2022
> "only putting natural stuff in my body"

That's not a belief, this is a stated preference, and you would be fully entitled to ignore it as "invalid criticism" due to the confusion between facts and opinions.

The belief that you are actually asking me to "back up with links" is that GMO reduces genetic diversity. Do you really need a link for that?
I read it through but didn't type out the code, mainly as I know that I would get focused on the code rather than the concepts the book is teaching.
It seemed clear they were saying common law marriages (assumed after a period of time) aren't respected there.
That seems like a VERY long timeline to not even be 100% accessible. I know they claim that they currently have 120-something elevators, and admittedly I haven't ridden the subway since before COVID, but almost every elevator I came across was out of commission. Some had been for months/years.

The elevator at the Lex/125 station was out of order the entire year I lived at it. Maybe it worked on occasion during that time, but I never saw it without the out of order sign as I passed it.
I don't understand what you're trying to say because the derision in your comment is taking up all the space that would normally be dedicated to clarity.
Now I am confused. Did you express the same strong advice against doing this to Dominic when they started working on lexical? In the end draft.js already existed. Why reinvent it? How much should we go back in time to find the point when things started to be so perfect to make everything coming after a worthless reinvention? What I think instead is that some developers have a phobia of writing code, and prefer to glue together various pieces to "get the job done". Others enjoy the process of creating something unique and potentially better, for some connotation of "better" that is not to be disputed. I think that there is nothing bad in doing so.
>You write here "And I didn't claim that it was", but you'd claimed initially "That's a completely different situation".

Yes, and I stand by that. Chromium being open source changes the situation completely. It makes no sense to compare the IE era to any Chromium monopoly without even mentioning that Chromium is open source.

>I'm not seeing your more recent statement as consistent with the first, given my own response: "Open source without the option for an alternate development organisation to drive or steer development direction means vey little."

I don't see any inconsistency. I simply disagree with you. It matters a great deal that Chromium is open source. It changes the politics in the industry. It changes the economics. It changes the regulatory situation. It changes the facts on the ground in terms of available browsers.

I do get your point though, and it's not that I disagree with everything you're saying. I just disagree with the claim that open source Chromium "means very little".
Sanitize when rendering the HTML, all other paths lead to hell.

I agree with granddaddy, the web just didnt cater for this with all the XSS, XSRF etc shennigans.

We're left with everyone implementing hacks, or in some cases, getting it right. Mud pie. Slap on an extra dollop.
Accessible would include clean, safe trains running on time.
Truly one of the best books in our field; very well done.

Doing the tree-walk interpreter (the first “half” of the book) took two weekends, working much of the day on Saturdays and Sundays.

When I went through it, I built my interpreter in another language, and added other features as I went along. Both helped solidify the concepts. I often had to pull out my additional features as I learned better in subsequent chapters; getting to see the difference between my amateur approach versus the author’s experienced methods was quite helpful!
Speaking of apples and oranges...the words "smoking" and "tobacco" have no relation to nicotine vaporizers.
I think the sane half-way point is to hide external integrations behind a facade that you can mock for unit tests and then you verify those assumptions with proper integration tests.
The problem is that any new term needs to be trademarked and licensed for use so that it doesn't become misused by large consultancies repackaging what they do now as "the new thing" or misrepresented by others that are seeking to damage it compared to their "way".

Martin Fowler described "Semantic Diffusion" to describe when a term doesn't mean anymore what was originally intended. DevOps in many cases suffers from it.
Recently I've been exploring an idea of extension of authorization frameworks like OAuth or GNAP where you can authorize not only access to your data directly but execution of specific computation (be it a specific revision of container image) on it. You would review, in advance, what would be done your data and if suspicious just reject. Ideally the web service pulls the container image and run it on their host, then return the result of the computation to the third-party, keeping the original your data secret. You wouldn't have to give the plain data which would easily be copied in first place. The problem is, I'm not sure if the class of application that can be implemented in this scheme is large enough to be useful.
> In reality though, the criticism against GMO is how its wide-scale adoption destroys genetic diversity

That's only one possible outcome, and I think it's not a very likely one long term. Genetic modification can create large numbers of variants, so could potentially increase genetic diversity significantly.

I think more of a criticism is the unknown consequences of modified genetic material escaping into other species by horizontal gene transfer.
This is the type of content I come here for. I also enjoyed the "other posts" listed at the bottom of this article. Well done, Chidi!
I think any crazy-restrictive diet can "work," in the sense of short-term weight loss. But the article seems to think that the potato diet will somehow reset something that's gone wrong, leading to the weight staying off after the all-potato phase is finished? That will be the real test...
This seems like an is-ought fallacy. What you're describing is not a "you shouldn't," it's a "you can't due to limitations in the language."
FAA details plan to fix plane altimeters that can't filter out 5G signals
Yes that’s how the traditional phone system works, single pair from your house back to the exchange (via a jumper block in a cabinet nearby). Modern DSL equipment can get upto 50mbit aggregate speed over 1km of traditional phone wire (so 40/10, or 30/20 or however you would want to set it up)

Condition of the wire will effect it of course, aluminium wire, ground conditions, cross talk etc could lower your speed.
After around (some number of) people died from vaping Vitamin A Acetate, I don't think we should really make a distinction anymore.

(I originally said 1k, which appears to have been misremembering.)
Emacs version: http://www.cb1.com/~john/computing/emacs/handsfree/pedals.ht...
Astrology/horoscopes https://en.m.wikipedia.org/wiki/Astrology_and_science
This is all true plus other things that make it difficult to implement a rich text editor are accessibility (keyboard shortcuts!), dark mode (theming) and customizability.

Having a rich text editor in the web standards would be nice for prototyping. However all the form elements (select, date picker, progress bar etc.) are also web standards but no one uses them because they are ugly and not customizable.

So the chances that we will get a standard rich text editor on the web that web devs would actually use are slim.
Hey, apparently the hot hand debate has been settled and there's actually solid evidence after all this time! [1] [2]

[1] https://statmodeling.stat.columbia.edu/?s=hot+hand&submit=Se...
[2] https://statmodeling.stat.columbia.edu/2015/07/09/hey-guess-...
As a lifelong heavy marijuana smoker I've got some news for you friend.

Weed is addictive too. Smoking plant matter of almost any variety increases cancer risk.
> Performance pentalty way too high?

Is a single atomic increment really that expensive?
I mean we are not even talking about a full memory barrier here, just the atomic increment's implied acquire and release on the single variable. Other operations not dependent on a subsequent read could still be re-ordered in both directions.

And also keep in mind that the alternative was copying the whole string instead. Which means both heap memory allocation (which is often pretty expensive, even with per-core heaps), plus the actual copying. Unless a platform has a terrible implementation of atomic increment, or you have a std::string that is frequently getting copied on multiple cores (so as to have meaningful contention), I would have expected the actual copying implementation to be slower. But I'm not super familiar with the timings of these things, so i certainly could be mistaken.

My understanding was that the change was more for about being able to set proper bounds on some operations, ensuring .c_str() is O(1), and not O(n) sometimes, and similarly with string writes, etc.
Sharps Disposal Containers
I'm not certain what you're needing but if you want to make changes to a scene before making it live you can enable studio mode, this gives you a preview of the new scene before you actually switch to it

If it's literally just cropping you're after hold alt while resizing the element
Seems like I'll get paid for this a while after I get paid for TurnItIn selling a product based on stealing my work
Community Member Segmentation
Connection bouncer is what you're yearning for. If that doesn't interest you, then try IRCCloud, which is fantastic on mobile.
Thanks for your thanks! Whatever you're dealing with, I sincerely hope it gets better.
More accurately, bitcoin is a way for criminals to launder money.
Good question! Per user we make about 1/2 as much on Android compared to iOS, but we're currently getting 2x traffic on Android so it's pretty much a 50/50 split ~$20k each.
Religion doesn’t answer why we are here. Non-religious people think that’s what religion does.
> No non-profit will ever solve anything at this magnitude, by definition.

So when I say they make that for profit, you disagree, and when I say (sarcastically) that they don't want to make profit, you say the opposite again? Choose your camp. Mine is that SpaceX exists because it is profitable.

Then one thing that would be worth considering is that technology is the problem today. You seem to consider that cars made the world a better place, that's your opinion. But it would be hard to argue that the current climate crisis is not caused by technology. You're just blindly hoping that more of it will magically solve the problem which is: technology is destroying life on Earth. Because we can do something cool (nobody denies that SpaceX is cool) doesn't mean we should do it.
As a slightly tangential counterargument, forcing vapes off the legal market means less regulation around ingredients.
Amen.

And debt is a really un-useful term for this, too, IMHO. More often than not, when you're down the line and dealing with the concequences of prior shortcuts the optimal solution you can think of now is different to the one you considered at the time of the original decision. And it also completely ignores the concept of great, perhaps also expensive, decisions taken in the past that are now no longer such a good fit. They weren't knowingly done as a debt, but the world changed.

The word "debt" has too much associated meaning. People understand the term too well. Instead I'd like people to just talk about "change" instead. Value judgements about the reasons we got here don't add anything useful to the decision on the tradeoff as to whether the suggested change is worth doing.
Why ruin a good meme with FACTS! People
There is no biodiversity in agriculture. Whether or not the seeds you purchased have been edited to add drought resistance or high vitamin A content or other fantastic benefits to humankind you are still growing a monoculture, just as you were with non-GMO crops.
That's why I specified "physically addictive". Yes, weed can be and is addictive, but it's not chemically physically addictive in the same way nicotine or opiates are.
DALL-E 2 Makes Its First-Ever Magazine Cover for Cosmopolitan
I read the chapters and looked at the samples. If there was a place where several followed a similar pattern then I’d only follow the first one from the book and then figure the others out myself (eg different types of statement or expression). There are also some exercises that don’t provide immediate answers which encourage you to think ahead.
Ah right, thanks for the clarification there :)
>I don't know of any economist that's tried to do any macro-economic modeling using agent based reinforcement learning.

Is there a chance such work would invalidate swaths of macroecon canon on which much of the Fed's analysis is based?
Why don't these criticisms apply to Linux? The relationship between Linux Core and the Flavors of Linux seems to work well. Edge, Brave, Opera and more are all using the Chromium engine. If Google went off the deep-end, they would easily have enough resources to maintain a fork.
Maybe if Mozilla had just forked Chromium in ~2015, its market share wouldn't have gotten as low as it is right now.

I've told some people to switch to Firefox. A lot of them switch back to Chrome after a while, simply because it's faster.
I interpret your question as a realization that you have a limited capacity, and you'd like to prioritize your learning.

If you are thinking about optimizing for employability, the answer to this largely comes down to the market you are trying to fit into (both location and business sector) and what you enjoy. As strangers, we cannot really give insight into those things with what you've provided.

From prioritizing time/effort for value perspective, I can say:

First, don't feel the need to be an expert at everything. I've been developing software for a long time, and there are still things I don't know. There will always be things I don't know. That opportunity for growth is one of the joys of software development. Don't burn yourself out trying to do everything.

My philosophy is to invest heavily in learning things that are likely to be relevant for a long time, and invest less heavily in things that are likely to only be valuable for a short time. Having shallow breadth is useful, so is having deep knowledge in a foundational technology.

Learning the language/framework/editor du jour is fun, but understand that you may be on a hamster wheel. Much of the new things are extremely similar, competing and vary only to address shortcomings with an earlier iteration while introducing the next set of shortcomings. It is necessary to have a full toolset, but resist chasing all the newest tools. Hamster wheels don't get you anywhere despite making you feel like you are moving fast.

Also, don't feel like 'full stack' is some badge of honor you strive to attain and keep. Just make sure you are doing useful work that someone cares about.
> Axiomatic means unquestionable.

Not really; I challenge you to find a dictionary that says the two terms are synonymous.

Originally an axiom was a proposition that was "self-evident". But there's a long history of people questioning "self-evident" propositions, happily for us.

There seems to be a colloquial usage of "axiom" to mean a proposition that someone doesn't want us to question. I deprecate that usage. For example, the Law of The Excluded Middle is an axiom, but it has often been questioned; ergo, it is not unquestionable.
Important to remember that combustible cigarettes are terrible and e-cigarettes are a slightly less terrible alternative to those. In a world where cigarettes are so terrible however, e-cigarettes end up saving billions in health care dollars and quality of life.

Of all the e-cig players, Juul (which is now majority owned by Altria) is the most reputable one — by far - they have by far the best technology, quality controls, compliance and regulation teams, etc.

Unfortunately before Altria acquired Juul it was a terribly ran company. People spend a lot of time discussing the chronic youth issues but the reality is that Juul never wanted to sell to youths or anything of the sort — they were just _so_ incompetent at operations that they couldn't do anything.

They set fire to hundreds of millions of dollars on totally ridiculous projects plainly stupid ideas:

* A modular supply chain project with the idea that they could use manufacturing as a carrot for regulatory laws — this team was 50-100 people and had tens of millions of dollars in budget. Never did anything.

* All manner of vanity innovation projects: new battery technology, next and next and next generation projects, dozens of flavours, absurd marketing campaigns, rebrands, a $250k custom typeface, the list goes on.

* Hired McKinsey and Bain because the executive team (who were all ex-management consultants) wanted the company to move fast ....

* My personal favourite Juul story (ok I have a bunch) was that the company was so incompetent they didn't do headcount planning — You could just hire as many people as you wanted if your random (often incompetent) VP was okay with it. Juul had 50-100 VPs so it was sheer chaos.

It got so bad that Altria had to step in and install their own CEO and axe all of the existing executive team (and lay off thousands of random employees) to try and right the ship. Altria are a very legit operational business — you may not like them but they know how to work with the FDA within strict regulation guidelines. If Juul is removed from the market despite Altria taking over they're truly fucked.

In my time at Juul I have never worked with so many incompetent people.
It was quite impressive but also incredibly depressing as someone that joined because the idea of creating a connected device vaping product to help switch Americans off combustible cigarettes was very compelling.
Yeah, I get the sentiment but for my moderately technical to highly technical friends, it's clear that gaming is the biggest thing that has kept them on Windows (either solely, or dual-booting) at home for the past ~10 years at least.

It's the various multiplayer fads that really pose an issue. When an important part of your social life is trying the game of the day with a bunch of your friends, incompatibilities, delayed releases, and all of that really suck.
Violà! A wallah in Walla Walla with a wall a' wallabies!

https://wallawalla.org
Thank you, it was just a semantics vernacular thing. I've updated my comment to say "consuming" rather than smoking.
Rates for Writing
1. Trickle down economics, it just doesn't work.

2. Trans folks regretting transition, only 0.4% do. https://transequality.org/sites/default/files/docs/usts/USTS...

3. Vaccines causing long-term damages more than Covid while Covid causes long-covid with long term damages 1 in 10 times and vaccines cause long-term damages 1 in 100,000 times.

4. Republican presidents being a good thing, they have a horrible economic track record, completely wreck the country every single time and Democractic presidents spend their terms building them back up until the next Republican president comes. https://itdoesnotaddup.files.wordpress.com/2021/02/capture21...

Basically every major right-wing talking point. :D