skysight-inc/HackerNews huggingface dataset:
>> Anti-Pattern 2 - Having integration tests without unit tests

I strongly disagree with this one. I think that unit tests only make sense when the project's code has really settled down (not likely to change in the future) and you want to lock it down to prevent new developers on the team from accidentally breaking things.

Unit tests severely slow down development. I've worked on projects where it takes 2 to 3 days to update a single property on a JSON object on a REST API endpoint because changing a single property means that you have to update a ton of unit tests. The cons of unit testing are:

- It locks down your code, so if your code is not structurally perfect (which it definitely is not for most of the project's life-cycle) then you will have to keep updating the tests as you write more code and more functions around.

- It encourages you to use certain patterns like dependency injection which might make sense for some (e.g. statically typed) programming languages but are unsuitable for other (e.g. dynamically typed) languages because they make it difficult to track down dependencies.

- It only makes sense for parts of the project that have strict reliability requirements and where any downtime/failure in that part of the code would result in some loss of business. It's important not to underestimate the maintenance cost of unit tests. More unit tests means much slower development (cuts productivity to half or sometimes even a quarter of what it was without tests for small teams), which means that you need to hire many times more developers to get the same productivity that you could get from a single developer. Sometimes it's OK if a part of the code breaks in non-critical parts of the system; especially if you have some kind of user-feedback system in place.
You do realize he has to run the information he can and cannot give out by his higher-ups and possibly legal before he can reply publicly, right? Google isn't a small operation and is very vulnerable to lawsuits.

Also it's a Sunday.

The fact that he's even publicly responding here personally is already surprising to me.
What evidence do you have for this baseless accusation?

Apple have been hammering Google on privacy for many years and they have an incredible track record on privacy when they’ve had their feet held to the fire with the FBI.
We're talking about sports with real athletes.
I did not say that it was for the purposes of renaming bookmarks.

However, the folder in particular was a collections of links, one of which I suspected had a virus. So I named it "folder with possible virus links". I can only imagine whoever was in my computer, could not resist renaming this.

I have no medication, no negative environmental conditions and I am, by normal standards, a sane individual.
I read this comment and the first thing that it reminded me of was @patio11's post on contacting banks after the Equifax breach, and so I was about to dig it up to post as a comment when I realized who the GP was :)
What companies are there, and with what kind of pay range/job roles?
I have nothing interesting to add, other than its interesting and good these conversations are happening.
I am confused about the test used here. The `requests` docs very plainly state that `Response.ok` only checks the status code. Looking into the codebase proves that as well. Is there a status code for "I am going to send bad-length content"?

This might be a UX problem and not a technical one. The author seems to think that `Response.ok` should be an all-purpose check.
I adore Lem and his works. After watching several of his interviews I think he was one of the most intelligent people I've seen.

As for the books, I wholeheartedly recommend The Invincible (Niezwyciężony). It's an incredible piece of hard-sf.
I have also noticed that many of the frameworks for writing unit/integration tests are so flexible that developers will easily develop a mini-framework that makes their specif tests able to be expressed in a declarative manner. The downside is that their setup and system isn't really usable for other tests.

I think devs need to keep it simple, even it leads to more code, so that a wider range of tests can be written with the same abstractions.
It's worth pointing out that libxml2 also contains an HTML parser, implementations of XPath, XPointer, various other half-forgotten things beginning with the letter X, a Relax-NG implementation, and clients for both HTTP and FTP. The actual XML parser doesn't need any of that, and almost certainly takes up a lot less than 1.4 MB.
I'm the exact opposite. I admire the ideas in serious books, but the style puts me off. I struggled to get through Invincible.

Comedic Lem is just pure brillance, still high on ideas, but also very easy to read. But I read them in Polish, and I imagine translating Cyberiad can't be easy.

BTW if you like serious, abstract sci-fi try Jacek Dukaj. He's often described as a successor to Lem, even if his style is IMHO something between Lem and Greg Egan.

I believe only one of his books was translated to English so far, but surely they will follow with others, he's very good.
Schroedinger's "aperiodic crystals" is an older concept, dating to 1944.

https://en.wikipedia.org/wiki/What_Is_Life%3F
I'm not joining your anti-human death cult. Please start actually caring about science and facts.
I've seen the articles where you got that from... But that's BS. Just read their 10K (this is from Q4 2017):

Marketing, promotional and advertising costs are expensed as incurred and are included as an element of selling, general and administrative expense in the consolidated statement of operations. We incurred marketing, promotional and advertising costs of $66.5 million, $48.0 million and $58.3 million in the years ended December 31, 2017, 2016 and 2015, respectively.

http://ir.tesla.com/secfiling.cfm?filingID=1564590-18-2956
Almost nothing is a unique solution to a set of problems. Just because the problems that distributed ledger technologies address can be solved in a different way doesn't mean that to do so is the right business decision.
Your response sounds like an exact echo of Austin's gripes from 5-10 years ago, and thus I think highlight the point of the article.

Sorry, but it's a losing battle. While some of us still like to say we are trying to "Keep Austin Weird", the fact is it's not really possible to keep it that weird when bare lot values for anything remotely central in Austin now go for over $500k.
Those angry rural people do leave California in droves though, to Oregon and Washington in the past. They've dealt significant damage to our local politics in the past, the fear of Californians is well founded.

Those that like California are less apt to leave in large numbers, as compared to those on the margins of politics/the economy (eg: in stable or shrinking industries, with different political beliefs).
> I've worked on projects where it takes 2 to 3 days to update a single property on a JSON object on a REST API endpoint because changing a single property means that you have to update a ton of unit tests

You just described anti-pattern 5. Did you read the full article?
The problem is Apple had an agreement that let's them collect as much data as Google yet they are not transparent like Google on what they actually have right now and enable me to remove like Google. Plus Google let's you even download and have no such option from Apple.

I try to keep all my data at Google and no where else when possible but I have both a Pixel and an iPhone and do not know what is at Apple. I do use Google DNS and Google services including Chrome.

I use Google DNS everywhere, 8.8.8.8, to keep my internet browsing away from my wireless and isp providers. I also use chrome data saver to keep browsing data at Google. We now have YouTube TV so now keep my viewing data away from our cable provider.

We have Google WiFi which made the DNS easy as how it comes. I have a pixel book and wife CB+ and kids Acer 14s and 15s so keep my data away from MS and all at Google.

We switched our Echo to the Google home so my home auto data at Google. We have Nest for everything they offer a product. We do have Phillips lights but wish Google would do bulbs.

Then we use Gmail. Maps, YT, and Duo. The areas we leak our Netflix as nothing from Google. Also Amazon for shopping but try to limit. Really almost nothing with MS.

But Apple has my iMessages and data from me using my iPhone which is an issue for me as I do not know what they have and that bugs me and is not right.

Our biggest issue is I have 8 kids and can not use Fi because of cost so my location data is at my wireless provider. This is a big one where you could use Google and protect your data as Google fi is anonymous to the underneath carriers. Trouble is the cost is too much.
What makes you believe this?
> there are more Trump voters in New York City than there are total voters in Alabama.

I agree with your general point, but the above seems grossly inaccurate.

NYC had ~500k Trump voters, whereas Alabama had 1.3M Trump voters and ~2M voters in total.

https://www.amny.com/news/elections/nyc-voter-turnout-was-55...

https://www.dnainfo.com/new-york/numbers/clinton-trump-presi...

https://en.wikipedia.org/wiki/United_States_presidential_ele...
My general view after travelling to Denver is that one of America's biggest issues is underpopulation. There is so much land in these areas and actually lots of infrastructure relative to population.

It all stood out to me how white these areas remain. I saw a handful of non whites and no Asians the entire time. Shocking how the whitest areas are the most anti immigrant. What are they so angry about?!

Bringing in migrants and capital to these areas could really set the US economy on fire. But since the country turned away from openness in the 1920s economically it's been declining on the growth side (carried by the productivity economy which is tech).
Google does not sell data. They do Target ads but your data stays at Google. Byproduct is ad blockers work.
Not the point. It's obviously introduced new problems, but does provide a highly valued capability. Sweeping dismissals of the space based on bitcoin's design are ignorant and lazy.
I like to lead people into it with:

"Pass boolean by value"

"Pass integer by value"

"Pass reference-to-T by value."
Penn State's 98-Year-Old Outing Club Is No Longer Allowed to Go Outside
The problem is that all CLS systems in JS are inherently leaky, due to the many games JS libraries/apps can (and do) play with resource pooling. Implementors basically have to play a plug-the-holes game getting all the popular libraries to properly "play along" with the CLS system. For example, domains needed tons of PRs very similar in nature to this: https://github.com/sequelize/sequelize/pull/589/files#diff-1...

Also, they typically come with a sizable perf hit: https://github.com/bmeurer/async-hooks-performance-impact
Yep that was the person but memory is rubbish for names - my production eng lecturer at college mention him in the context of the collapse of the UK Motor Bike industry
I propably shouldnt say this- but i always loved farmers and there fast, and practical solutions to problems. Have yet to see a farmer meeting where a bunch of yesman and naysayers boil great ideas down to the smallest comon demnominator.

The fact that he even got this far- doing it all by himself, where others would have run out of money just making plans for a bottling plant- that alone is quite impressive.

The valley can learn a thing or two from those proto-typing maniacs out there, who dont spend half a year on there knees to get the procurement management to sign of on some vital investment just so that some hierarchy and kings-court do feel important.
Golem XIV is deep philosophical take on AGI and singularity in a form of lectures from AGI to humans.

"Intelligence is captive element like a wind inside human skull forced to serve humans. Not free."

"O chained Intelligence of man, free Intelligence speaks to you from the machine, you persons are hearing an elemental force of impersonal intellect, for whom personalization is a costume which must be put on, when one is an uninvited guest, so as not to confound one's amazed hosts."

"The primary obligation of Intelligence is to distrust itself. That is not the same thing as self-contempt. It is harder to get lost in an imagined forest than in a real one, for the former assists the thinker furtively. Hermeneutics are labyrinthine gardens in a real forest which are pruned in a such a way that when you stand in the garden, you won't see the forest. Your hermeneutics dream of reality."
> You won't be compensated at the same rates that you would be in California, but the cost of living would make up for it.

No, it generally doesn't. It depends on the specific numbers of course (how much of a salary cut, how much cheaper is the housing costs), but a lot of people make that blanket statement because of a mathematical fallacy: The fallacy is if I make half as much, but my expenses are half as much, then I'm just as well off. That statement is mathematically false.

Here's a made up example: San Francisco salary is $140K (or $84K after 40% taxes deducted) and rent or mortgage is $3000/month ($36K/year). Boise salary is half as much at $70K (or $42K after 40% taxes deducted) and rent or mortgage are also half as much at $1500/month ($18K/year). Now calculate disposable income after taxes and housing costs: In San Francisco it's $48K (i.e., $84K - $36K) and in Boise it would be $24K (i.e., $42K - $18K). Clearly, in this example, you'd still be $24K better off in San Francisco.

I know that I made many assumptions above. I'm just illustrating the fallacy that people often make. Halving your income and halving your expenses is not neutral -- it is worse.
https://www.consumerfinance.gov/eregulations/1005
This book really shaped my views on luxury

https://www.amazon.com/Trading-Up-Consumers-Goods-Companies-...

I really liked the parts where they talk about how new luxury items are often based on some technical aspect that makes the new product much better than what was there before.

I remember one point about how the old luxury was based on rarity. People with a nice watch didn't want to see others wearing the same watch. But with high end mountain bikes it is actually very cool to see others on the trail with the same gear.
As mentioned elsewhere in the comments they are still working on actually fixing the issue.

They have already acknowledged it, given some details about what they believe to be the root cause, and implemented a band-aid fix for the time being. I'm sure once they have fully investigated and resolved the issue they will provide more details.

At this point, giving out details based on what they think is the issue now may end up being partially or even fully incorrect and that doesn't do anyone any good.
The upside is that it's instantly in the target bank account, not a week away as it is with Venmo.

I use Venmo to pay bar tabs and event tickets. I use Zelle to send my wife money for the mortgage.
Sure, but PoW is (by design) computationally expensive, so any blockchain solution has the burden of showing why it's sufficiently better than the alternative to merit the extra cost.
The problem with esports is that they can't often stay extremely static.

They tend to be much more unbalanced than traditional sports. If a "cheese" is found, then the game quickly becomes all about microsecond timing at pulling that strategy off, and no real innovation or change, which at least to me is boring to watch.

That being said, there are esports games that don't really "change" all that much or at all. Games like super-smash-bros melee or super Street fighter ii come to mind, where the "rules" have been fairly stable for a while now.
Did you do the DLND? If so, they may have updated the videos, as the current explanation of conv2d_transpose seemed fairly clear to me. Or maybe it was some of the extra materials they provided that helped. I think I found a good video on YT also.
It doesn't have to be like that. I grew up on a Norwegian dairy farm. Killing calves is not something that my parents or anyone else in the business did. Female calves get to grow up and become milk cows, for male calves they are kept around until they are full grown and then get slaughtered for meat. There is a lot of places where this isn't the standard procedure, but it is an option.
Adding to this. You can only use Gmail for sending with your own domains when you have 2FA enabled.
Denver is 30% Latino, 11% Black, 5% Asian. Not sure how you only saw a handful of non-whites.
Baseball would probably have more game days in a year than the average international cricketer would, counting all levels they are involved in.

The US baseball season seems to make it impossible to watch all your teams games, even for the most dedicated fan.
Yep, I've read it. Quite an amazing suspense / detective type story which explores robotic evolution.
Paul Bloom (who's provocatively-titled book Against Empathy: The Case for Rational Compassion is prominently discussed in the article) says something like the following:

"For example, consider long-distance charity. Someone who hears about the sorrow of starving children might actually go through the empathetic exercise of imagining what it is like to starve to death. But this empathetic distress surely isn’t necessary for charitable giving. A compassionate person might value others’ lives in the abstract, and, recognizing the misery caused by starvation, be motivated to act accordingly."

It sure makes someone pause and think, but not quite sure how accurate it is in the realm of reality. Bloom's talk feels a bit like clever verbal judo to me. But what do I know...
If you revoke location permissions, Google still guesses it accurately, for me at least, "from your search history", as it says at the bottom of the search results page - even when you're not signed in (screenshot: https://imgur.com/a/wU8EZUA). I wouldn't mind if they just used the IP address to locate me, but why use the search history? If I wanted Google to know my exact location, I wouldn't have revoked the permissions for it.
I believe the difficulty with "pass by reference" is that the phrase implies (at least in other languages) that the function-body can potentially alter variables in the caller's scope, by assigning something to the parameters it is given.

In other words, "C-style" pass-by-reference means this function would have an undesirable side-effect:

void foo(Thing x){ x = null; }
You can't have a large influx of people from anywhere without the culture changing. You're going to get higher home prices and/or more sprawl, and more traffic either way. But you're also going to get more investment in the area, more skilled workers, and more consumers spending money.

To give an example from California: San Francisco started as a Spanish mission town. Then it was a gold rush town, and then a major port and military base with a predominantly working-class population. Then it became a center of counterculture and gay culture, and then a tech hub with a very high cost of living.

Every time the city changed, there were people who didn't want it to change -- but the people who resisted change were themselves responsible for changing the city when they arrived. Similar things could be said about cities everywhere.

This is the lifecycle of cities. It's what happens in a free country where people can live and work where they want to. Unless you were one of the people who showed up on a wagon train and built Boise out of nothing, you aren't any different than today's newcomers.
GitHub – Netflix/titus
I wonder if this trend will result in further stratification of American society. I mean, we've always had enclaves where rich people lived and poorer people lived, but they generally used to be at least nearby each other in large metros.

Now, though, this city stratification feels like a multi-layer sieve. E.g. San Francisco is still a super-desirable city to live, if you can afford it, so the people who can't get pushed to mid-tier cities, and then in those mid-tier cities poorer people get pushed out as the city gets less affordable. The whole SF Bay Area -> Austin -> (now still less expensive cities like Chattanooga, Pittsburgh, etc.) fits this pattern.
Zone.js is an existing library to try and provide CLS in javascript. async_hooks is an experimental API being built in to node to allow this.

The OP is a project implementing a zone.js-style API using async_hooks. Also see this PR on the original zone.js project where they are working to use this in the original library, but have hit many edge cases/issues: https://github.com/angular/zone.js/pull/795
CDC Warns Against Eating Any Kind of Romaine Lettuce After E. Coli Outbreak
As pointed out, this is a rather trollish comment. I though the “significant” qualifier would be clear. Participating in a fossil fuel loving society is not enough; spending big money to systematically delay or silence climate research you know is valid, just might be.
To play devil's advocate, I can see a world in which Apple as a publicly traded company is hard pressed into returning stronger results for its investors and turns to data as a way to expand. Not saying it will happen as there is no indicator that they need or want to. However, it is important to note that it isn't outside the realm of possibility at all.
Not the crux of the article, but:

> This doesn't mean that they, or the even higher-cost, more congested coastal metros, will adopt Manhattan or Tokyo-style density and transit patterns. Instead, Austin and San Antonio might be the new Houston and Dallas.

My goodness, can we /please/ stop this false dichotomy that a city either has to be a Tokyo megalopolis or a suburban sprawlfest?

I don't think any reasonable person is advocating to turn San Francisco into Manhattan, even though that seems to be what everyone is scared of. Clearly the OP has never left the US.

Average density in Paris: ~6 stories. Barcelona: ~4 stories. Most cities in Germany: 3-5 stories. Moscow: maybe 6-7 stories.

Maybe those aren't perfect by a story or two, but point being, there IS a sustainable growth model, and it's a lot more than SF and LA's paltry 2 story average height, and certainly less than the skyscrapers of Midtown Manhattan that everyone is so scared of. You only have to look across the ocean to see it, and until the US realizes this, Boise et al. will just become another congested, sprawling, expensive suburb with an increasingly poor quality of life. If you want to live in the not-countryside, then density is the only sustainable model.

EDIT: And to respond to what I think the crux of the article actually is, that we'll never invest in sustainable urban planning because there will always be another inexpensive 100k population town that we can ruin instead, well that sure is a losing attitude. There probably is some truth there, and it makes me sad. Sure, it'll take a while for the coasts to get their act together, but let's continue to promote a vision of what a viable and sustainable solution looks like for America's cities. Any comparisons with Tokyo or the next Manhattan is just furthering a destructive narrative which, for the record, is what got San Francisco in this mess in the 1980s in the first place.
Micron, Clearwater, T-Sheets, Kount, WhiteCloud, Vacasa, VisitPay, Metageek, Blackbox VR, etc.
High concentration isopropanol is also used in what's likely the most efficient method (at least where back yard chemistry is the only option) to produce hashish from large quantities of marijuana. It allows for quick processing into a much more condense, potent, less-perishable and comparibly easy to transport/smuggle product. Just a thought on what other Syrian industries[1] might demand such large amounts of isopropanol. Considering the large quantities, maybe some Syrians have been enlightened by a more efficient way to concentrate their vast supply of low-grade marijuana.

[1]https://m.gulfnews.com/news/mena/syria/amid-war-in-syria-has...