skysight-inc/HackerNews huggingface dataset:
> Oxycodone was first formulated in 1917, so it's not really "new"

The drug being talked about was given a new time-release formulation which was described as less addictive.

The drug company spent a lot of time and money distorting the image around addictiveness.

Here's a list of things Purdue did: https://www.feinberg.northwestern.edu/sites/ipham/conference...
Agreed, I don't imply that developers should talk to customers but they should at least work with support team in a more cohesive manner.

I have seen the flip side also where the developers are very accessible, support pushes every minor issue over to engineering. This is like super rare though.
Yes, you should delete tests for everything that isn't a required external behavior, or a bugfix IMO.

For the edification of junior programmers who may end up reading this thread, I’m just going to come right out and say it: this is awful advice in general.

For situations where this appears to be good advice, it’s almost certainly indicative of poor testing infrastructure or poorly written tests. For instance, consider the following context from the parent comment:

Otherwise you're implicitly testing the implementation, which makes refactoring impossible.

A big smell here is if the large majority of your tests are mocked. This might mean you're testing at too fine-grained a level.

These two points are in conflict and help clarify why someone might just give up and delete their tests.

The argument for deleting tests appears to be that changing a unit’s implementation will cause you to have to rewrite a bunch of old unrelated tests anyway, making refactoring “impossible.” But indeed that’s (almost) the whole point of mocking! Mocking is one tool used for writing tests that do not vary with unrelated implementations and thus pose no problem when it comes time to refactor.

Now there is a kernel of truth about an inordinate amount of mocking being a code smell, but it’s not about unit tests that are too fine-grained but rather unit tests that aren’t fine-grained enough (trying to test across units) or just a badly designed API. I usually find that if testing my code is annoying, I should revisit how I’ve designed it.

Testing is a surprisingly subtle topic and it takes some time to develop good taste and intuition about how much mocking/stubbing is natural and how much is actually a code smell.

In conclusion, as je42 said below:

Make sure you tests run (very) fast and are stable. Then there is little cost to pay to keep them around.

The key, of course, is learning how to do that. :)
Comunicando
It's an odd title; most of the article talks about books that are not focused on Brutalism, but on a range of styles of which brutalism appears to make up a limited part.

E.g. it references "Imagine Moscow", but Stalin forcefully rejected Le Corbusier twice, and Moscow was never re-imagined in a brutalist manner in Moscow, but possibly in Brasilia (Le Corbusier's Ville Radieuse[1] was inspired by his plans for Moscow, and Brasilia was designed to incorporate aspects of Ville Radieuse). I'm sure there are interesting examples of brutalism in Moscow (though most of the brutalism in Russia are down to Khrushchyovka [2]), but they postdates the era the book is about, and the most prominent design ideas for Moscow at the time were not brutalist.

"Consumer Culture Landscapes in Socialist Yugoslavia" seems to focus on the work of Zivorad Jankovic, much of which isn't brutalist either.

Lastly it references "Soviet Metro Stations", but most of them are not brutalist at all - certainly not the most famous examples.

If it wasn't for numerous references to brutalism in the text, I'd have assumed this was an editor messing around, but I'm not convinced the author of this piece knows what brutalism is. The books might well be interesting, though, but when the article tries to shoehorn them into a box they don't appear to fit in, it makes it hard to tell. It'd be nice if the author tried harder to describe the books in more detail rather than try to invent his own narrative around it.

[1] https://en.wikipedia.org/wiki/Ville_Radieuse

[2] https://en.wikipedia.org/wiki/Khrushchyovka
For landlords, you're correct. Rents will go down as more housing floods the market and the profiteering will cease. Look at Vancouver BC, where rents are significantly lower than land prices.

But I don't entirely agree with this point. Regular folks that are getting rich off property are the single family homeowners. Density tends to increase land value. This law makes single family home land more valuable and easier to sell, since a developer can plop townhomes or a second house in the backyard and profit. So now on top of regular people, you've got builders competing for the same properties, hence prices will rise.

I'd be worried if I owned a townhome or condo, since I wouldn't have any empty land to be built on and that's the kind of home that will be built on the now upzoned land. But there are no swathes of empty land in Portland to fill with more single family homes.

Folks that own property the in the (now up-zoned) expensive neighborhoods are NIMBY because they want to preserve the low density neighborhood they live in that are close to everything, not because they want housing prices to soar more. Older neighborhoods like that just aren't built anymore--developers pick off the shelf of 1-5 nearly identical plans and fill a neighborhood with them. Old west coast city neighborhoods have a cool vibe that doesn't really exist in many places anymore, and can't really be replicated. With this up zone that will be going away over time.

That's OK, because these neighborhoods should have been upzoned a long time ago and the land needs to be accessible to more people. But the conversation is more nuanced than "my housing price will go down!!1"
Yes, this is a kind of Wild West situation. We should figure out the best way out, ideally with all interested parties getting something good.
This still doesn't solve the fact that Apple can control who gets to do business on the app store. Politically divisive apps, government blacklisted apps, gambling apps, adult oriented apps, crypto apps, free speech apps, certain vpn apps - none of these can currently exist with the Apple curated App Store approach. And just because those apps might not be for you doesn't mean millions and millions of users who have shelled out $1k+ for a phone don't want them on their fancy device they paid for.

Allowing sideloading as Android does would fix all these issues. Sideloading can start with a 3rd party app store, even.
The first sentence of the article:

>After surprising many with the Air's 517 miles of EPA-estimated range...

A few paragraphs later in the article:

>During a real-world ride along with Lucid in one of the company's prototypes traveling at 70 miles per hour on the highway, the Air achieved 458 miles before depleting its battery. The automaker still needs to deliver a production vehicle to the EPA before it has an official EPA number. It expects to do so in early 2021 when the Air goes into production.

Isn't that opening incredibly misleading? The car does in fact not have 517 miles of EPA-estimated range. The company is projecting 517 miles of range once the EPA tests it, which has not happened yet. So why are they calling the 517 number "EPA-estimated"?
For open source/free software code, provided that it is well designed, transparent, and straightforward to review, its nation of origin does not matter. The history can be relevant to maintainers, to understand why certain decisions were made. But "this code was written by someone in country-I-like" is not a code review shortcut.
> Martin Fowler, who is using his software craftsmanship cred to legitimize a shop that ships work to the third world and turns programming from a white collar to a blue collar profession.

Can you expand on that, or point out resources describing this phenomenon? Not as proof, but to explain to me what you're getting at. I hold the ThoughWork-ers I know in high regard, so I feel personally challenged in a bunch of ways by your point and worry I've missed something.
> shouldn’t decide what’s best for people we’ve never met and let them decide instead.

I totally agree!

I didn't mean to imply this bit about house size is good. In general, this measure removes piles of restrictions on land use and that's one of the big reasons I like it. I was just pointing out that there are some work-arounds.
In 2020, Portland officially becomes a shithole city.
They also eased risk disclosure requirements https://www.sec.gov/news/press-release/2020-192

It's honestly laughable that their top priorities in the height of what appears to be a massive stock bubble is weakening investor protections at a time when they should be strengthened
God I loved that game (IW2). Wasted so many hours just flying around with the physics in that game. I'm in total agreement, I get the same vibes.
Good point. Things might revert “back to normal” after the pandemic though. But who knows…
I laughed at this, and I agree that almost any sort of appeal to authority should be derided as the cheap trick it probably is. That said, Kent Beck says a lot of smart stuff in his books, and I don't think you should stop listening just because his name comes up.
In 5-10 years we get a longform glossy magazine profile of one of the younger Sacklers. The headline will end with a question mark.

It will talk about how the heir has become an active philanthropist, dedicating his/her life to “making things right”. It will list their accomplishments since the family was exposed. It will end with an open ended question about “the sins of our fathers.” It will really make you think.

They will spend their life slowly giving away half their fortune, one gala at a time. They will start a foundation. It will have a name not too dissimilar from a pharmaceutical brand name—meaningless but vaguely positive (too bad Altria is taken). They will max out that foundation’s board with Big Names in that world—just so long as their name isn’t Sackler.

Their investment of half of the payout they kept will grow larger than the original started at, and they’ll never pay more than a nominal dime in taxes thanks to those sweet 501(c)3 write-offs.

Their reputation will be laundered, at least enough for their checkbooks invited back to the parties. And their kids? Home free.

In a few generation the hundreds of thousands of deaths on their hands will be forgotten, except by the families of the victims that were just the cost of doing business for them.
I would also test implementation details that are legitimately complicated and might fail in subtle ways, or where the intended behavior isn't obvious.

If I've implemented my own B+ tree, for example, you better bet your butt I'll be keeping some property tests to document and verify that it conforms to all the necessary invariants.
At least with the COVID-19 ships there was a reasonable public health argument for not letting people off the ship.
Ahh yes the old "Hurry up and wait"... been there too many times....
A better, safer shared vehicle for a Covid-19 world
The intention of the zoning reform linked to here is increasing density in existing low-density areas.

Here's (only) one example of analysis of the density<->housing affordability relationship. Spoiler alert: density always increases housing costs in the long run.
https://www.newgeography.com/content/005183-what-price-urban...

There has never been a city in the US that has made housing more affordable by increasing density or legislating affordable housing. The 'why' of that is complex.
The user is https://sco.wikipedia.org/wiki/Uiser:AmaryllisGardener Since the edits are public I'm not going to consider this doxxing. I'm not going to link any other identities to the username.
That's why you can't have a city based on cars. The very old cannot drive! I don't know why this perfectly obvious and globally well-known fact is so little-known to Americans.
This must be a recent change, then. The latest DNS-related RFC I can find which mentions either term is RFC 8765 of June 2020, which has exactly one mention of “primary” and “secondary” each. The previous RFC which uses either term is RFC 8501 from 2018, which uses “master” and “slave” multiple times throughout. IIRC, this was changed from RFC 1035’s “primary” and “secondary” some years back into “master” and “slave”, and I think it was due to confusion with primary and secondary DNS resolvers.

EDIT: I did not look far back enough to find RFC 8499 from January 2019 (7 months ago), found by darrenf in a sibling comment. This RFC apparently changes the terms again to “primary” and “secondary”.
I think it’s an attempt to quote American Psycho, although it’s slightly wrong.
Self-driving cars learn to read the body language of people on the street
> These are banks. It took them over a decade to only finally implement SMS 2FA.

A lot of the slowness is driven by regulation and especially the slow decision-making that leads up to regulation.

In the UK for example, I cannot think of a single bank that uses SMS as a 2FA channel for internet banking.

Some card providers (Amex for instance) do currently provide one time codes for card purchases via SMS, in an attempt to be compliant with PSD2’s Strong Customer Authentication (SCA) rules, but I suspect this’ll change soon because the EBA has already indicated that SMS based SCA is not acceptable[1].

It’s worth remembering that ultimately, SCA or not, banks and do bear liability for fraud not due to the customer’s negligence (in the UK at least), so that’s the ultimate backstop to whatever tech they choose to deploy.

[1] https://www.ensygnia.com/blog/2019/7/11/sca-otc-not-ok-says-...
Except they aren't effective, and have done nothing but piss people off. Many municipalities have been getting rid of them for years now.
[Author here] As others have pointed out, it wasn't originally a sales pitch and we later pivoted to something else. I agree it came across in a kind of annoying way.

I've added a new update at the end to describe what happened, for anyone who is curious.
Its in the footer: https://blog.racket-lang.org/
If you are in a flood plain they do. I assume it's the same for the others. But drainage is really more about dealing with density. In the town/city poor drainage on my lot could flood my neighbors house. In the country there's enough space it's not an issue.
https://cannabisprimesale.com/shop/

Some Health Benefits

Relief of chronic pain

Alleviate anxiety

Fight cancer

Anti seizure

Helps treat depression

Help weight lose

Regulate and prevent diabetes

Slow development of Alzheimer’s disease

Mend bones

#marijuana #blackberry #cannabis #weed #kush #sativa #concentrates #cbdoil #edibals #hash #depression #anxiety #pain #seizure #cancer #concetrate #thcoil #cbd #smoke #wax #shatter
This actually shows something interesting: that there is a coherent visual language for interfaces within the sci-fi subgenre of graphic design that just kind of appeared by implicit consensus. Which I guess can be said for many visual design trends - many of us can guess both when and for what purpose a product was designed based on its graphic design.
Most of the world lives in housing poverty compared to American norms.
As someone loudly lamented a long time ago: please stop using the word “impact” as a substitute for figuring out effect/affect.

"A long time ago" might be the 1700's, because it's been in use that way for several hundred years. So don't hold your breath.
A wargaming exercise predicted the past few months of the 2020 presidential race
It says in conjunction which means that yeah, stock brokers can now invest. But it also said certain professional certifications, designations or credentials or other credentials issued by an accredited educational institution. These educated folks don't necessarily need even a Series 7.

Yes, I would like to read Matt Levine rip this apart.
but in my neighborhood, such homes are largely occupied by multigenerational families.

In my neighborhood, these are also duplexes (maybe coincidentally, maybe not, I dunno), which are allowed to be bigger.

In areas closer to colleges and universities, those homes end up being shared by large groups of students.

Yeah, but these big houses are probably old. In the universities near me, such large houses haven't been built in my lifetime. I doubt it's too much different in Portland.
I have been a TSLA investor for a few years, I believe in electric vehicles. At 100$/KWh we're talking 5000$ for a 50KWh battery back, which is plenty enough for most people. This could allow us to see $15K-20K electric cars in just a few years, maybe before 2025, which is awesome. Very soon buying a gasoline vehicle, in a modern economy, will have people giving you weird looks.

What does have me a little worried though is that most of the world doesn't live in a wealthy city. As electric cars rise, gasoline prices will come down, which will keep gasoline attractive for a while, particularly in poorer countries. Failing ICE vehicle companies will try to sell their gas vehicles to these poor countries as well, and our used cars might end up there too. In other words, poorer countries could keep gasoline cars going for another 30 years after they've been banned here. What are we going to do about that? We're all breathing the same air.
I see this problem a lot. TDD is a hard skill to learn. It took me 2 years of continuous practice to really get it, and by year 3 I was only just starting to get decent at it. People who try and do TDD for less than 6 months haven't even left the parking lot yet.

I try and short-cut that steep learning curve by mentoring other developers, but there isn't enough people who have that experience around. I've met lots of programmers, and less than 10% of them have ever even tried TDD, let alone done it enough to gain insight and mentor others.
I'd caution people outside hyper-growth startups from drawing that much from this chart. People in that ecosystem have very different utility functions than most software engineers.

Comparatively, I'm sure a chart with database swapped out for language would show a huge over-representation of NoSQL products like Mongo and Couchbase. Yet for the overwhelming majority of projects the right answer is just use a solid SQL product like Postgres.

Again, for SV hyper-growth startups the calculus is different. Mongo has tons of downsides and pitfalls. But the one thing it has going for it is, you can get started fast without having to think about it. Just throw shit in a giant nested key-val map and pull it out later. You don't have to design schemas or provision ahead of time. Change the JSON on the fly, and if you hit performance issues, just throw more hardware at it. Move fast and break things.

For 99% of projects that kind of attitude comes back to bite you in the ass. For every hour that you save today, you'll end up spending ten hours in a year or so from now when you're eventually forced to detangle a crusty sloppy mess.

But for a unicorn-aspiring SV startup, that tradeoff works. Almost any startup would gladly spend a hundred man-hours in a year or two, to get back one man hour today. And that works, because the growth rates are astronomical. In a few years, you'll hopefully be a billion-dollar unicorn with tons of resources to throw at the minefield of quick and dirty technical decisions you made at the seed stage. (More realistically, you simply won't be around anymore, at which point the pitfalls in waiting also don't matter.)

The point is don't necessarily pay too much attention to the decisions made by YC startups. This is true even for regular startups with more prosaic aspirations. (Some of us are more than happy to own $10 million companies, and aren't aiming for billionaire or bust.) If your business model is rooted in 1000% hyper-growth rates, that encourages many tradeoffs that are otherwise deeply pathological.
This is ridiculous. Yes, of course, provide alternatives for the less able but that is a very small population at any age group. My grandmother at age 86 gets around in Germany on foot and by bicycle just fine. She doesn't have a car and has access to the subway for longer distances. We can still heavily pedestrianise while also allowing for deliveries and the less able, there are many successful examples.
I'm relieved they didn't change the documentation. Hard to improve on perfection. https://docs.racket-lang.org/pkg/index.html

Also, I chuckled a bit at the "Jet Fueled" tagline. Racket's green threads operate with a "fuel" which gets consumed over time, at which point it yields to another thread. I think the metaphor was a happy accident rather than an intentional nerdy reference, but still.
I have plenty of tests actually calling database. Maybe it is not a proper unit test, but it is not a problem for me.

I want test to protect me against regressions, and I do not really care how they are classified.
Deep Learning Moves Cancer Vaccines Toward Reality
NSF and the Simons Foundation partner to uncover foundations of deep learning
Ranzel
hey hacker news. Ranzel is a livestream and video platform that allows users to share locations and directions and invite others to come to that location. we are about 2-3 weeks out from having our full MVP on the App Store. I would love to know what everyone thinks. thank you!
> Getting below $100/KWh will reduce EV price to FAR below ICE vehicles;

LFP cells with volume discounts were already sold for less than $100/KWh for a few years. Not much changed.

Cheapest EVs in developed countries have passed the $20k barrier, but I don't see everybody falling for EVs.

The type of people who are happy to have just anything to drive buy into something like https://runhorse2020.en.made-in-china.com/product/uwcniFmDXJ...

But even they switch to cheapest, crappiest IC sedans starting at $7k in China (say thanks to $500 per ton steel)
I know that PagerDuty also uses Elixir for some of their backend services. See https://www.pagerduty.com/blog/elixir-at-pagerduty/
One big file is hard to handle. Ereaders choke on them just like the browser does.
EPA test is not a real world test. It’s a specific format.
You seem to think the rationale is testing performance; but from GP it seems that the rationale is avoiding the tests ossifying implementation details against refactoring rather than protecting external behavior to support refactoring.
My Favorite Robots
People who accomplish their political goals through violent means continue to be violent because you're teaching them that its effective. The more you surrender to violent rioters demanding policy change through fire and violence rather than the ballot box, the more you demonstrate that violence is the way to accomplish anything.

The outcome of surrendering to violent mobs is to embolden and empower violent mobs. There will be more and worse.
Whats interesting is that they are focusing on the current Model S and zero mention of the 3, which has a significantly better efficiency due (in addition to the smaller size, admit-ably) to the fact that the newer 3 design, powertrain, and chassis was a rework that is far superior to the, basically, 9 year old, Startup-developed, Model S. Next-Gen Model S will bring not just larger packs but Model 3 lessons in weight and their claims probably wont pan out, even if true.
If only we had a recent practical demonstration of what too much explosive stuff in one place can do...
Agreed, thank you for posting. I'd also like to add: I wish this article had been title had used the word "Incorrect" instead of "Fake". I generally attribute things called "Fake" as having had some sort of intentional incorrectness. "Fake" doesn't always imply _malicious_ intent (think "fake houses" for nuclear testing), but it does imply knowing intent.

This kid was well intentioned, tried his best, and got it wrong. To me, that's "incorrect", not "fake".

[Edit: Spelling]
Having regression tests greatly improves your chances of catching a regression.