skysight-inc/HackerNews huggingface dataset:
> One such operation can be to sell. The sell function can do things like marking the book object as sold

Maybe this isn’t a good example of OOP?

Does it suggest the author perhaps doesn't fully understand principles behind loosely coupled OO code?

If is_sold is an attribute of book, the class shouldn't have a sell method, but a mark_as_sold.

The action of selling is not the responsibility of a Book. Baking it into Book will create tight coupling between areas of the code (product and commerce) that should be loosely coupled. The "commerce" side may change for reasons unrelated to the "product" side. Keep'em separated.

And if we think for a minute, is_sold should not be a Book attribute in the first place. It seems to me this piece of information should be handled somewhere else related to inventory, not by the Book itself.

There should be a ProductEntry class, for instance. It could have a product_type and product_sku attributes, for example, pointing to a Book.

Even here, is_sold shouldn't be an attribute, but a method. It would have an availability_status attribute.

func is_sold(self) {
return self.status == ProductStatus.SOLD }

Ultimately, the inventory code should not care that it's a Book or whatever.

The logic of whether it's available or not doesn't belong to the product itself. What if someone bought, but returned it? Maybe it will be available for shipping tomorrow and the store wants to start reselling it already? Is it the Book responsibility to track that? No way.
Interesting! This seems related to the idea that quantum measurement is nothing but unitary evolution with a large number of degrees of freedom
It's pretty clear from the website that this is the intent.

It's the delivery from the logistical centers (where the train freight terminates) to the city centers.

They mentions repacking so that things get bundled by final destination rather than supplier.
I'm not sure I've seen weather condition specific warning signs, apart from the speed limits being lowered for the winter season by swapping the signs themselves.

Can you link to an example?
Why not simply split the input training data into a separate "license sets", and then train on them separately? Instead of one Copilot you'd have a "GPL Copilot", an "MIT Copilot", and "BSD Copilot" and so on and so forth, at least this would simplify the burden that's currently put on the user.

Attribution would still be a problem though. How to attribute generated code that's a random mishmash from thousands of inputs? The only solution can be to attribute all of them by doing some sort of reverse match. This "IP scanning" must clearly also be provided by Copilot and not be offloaded to the user.

TBH I would have expected that the "evil geniuses" who came up with Copilot would have thought about such obvious pitfalls beforehand. It's not much of an achievement to innovate by ignoring the law.
I like this reading of the story a lot (although I didn't read it this way when I read the book originally). It reminds me of how Camus approaches to making peace with the absurd: recognizing the absurd and creating a personal meaning in order to get free from the meaninglessness (I might be totally off base with this interpretation of Camus).
A government HAS to mandate behavior to create a functioning society. The idea of democracy is that everyone should participate in where the boundaries lie.

The tendency now it seems is for people to absolve themselves from maintaining a democratic discourse by taking a selfish absolutist position.

There will always exceptions.
Things like this have been made, but there are challenges:

* you have to prevent replay attacks, where somebody just records a session and replays the response

* lower-power devices are usually vulnerable to side-channel attacks, for example you can limit the power supply just to threshold where it starts working, and then you can infer information about the internal state and possibly key material

If you look at practical attacks against existing key fobs, you'll see that there are a lot of things that can go wrong in the field.
Im only using it, because my company forces me to use it.
I personally hate Reddit, but I think it's misleading to talk about their "fall". Arent they thriving or even excelling by the metrics they (and most other non-users) care about?
Atomic-scale quantum circuit marks major quantum computer breakthrough
It seems to be last mile distribution from logistical centers, so targeting rather short distances given the size of the country and distribution of large cities.

First segment is between on of the biggest logistical hub and Zurich (largest city), which are 70km apart.
The problem being that many of these scams are perpetrated against a generation whose instincts are to to trust any message or call that claims to come from an organisation they are are familiar with.

As an example, an older friend called me the other day to say amazon had phoned him about his prime subscription needing to be renewed that day.

Does he have a Prime subscription - no
Does he have an amazon account - no

Yet he still thought the call may have been genuine.
Same experience here.

It even has additional advantages, such as generating open api files automatically from the types and validating payloads between microservices.

Pydantic and Typeguard are too very useful libraries in this context.
It's such a wonderful book! Beautifully written, haunting, lovely and sad all at the same time. One of my all-time favorite stories.

"I don’t know what’s worse: to not know what you are and be happy, or to become what you’ve always wanted to be, and feel alone."

One interesting thing re: the novel is the disease Charlie has, PKU is generally screened for in infants today and treated with dietary changes: https://www.sciencedirect.com/science/article/pii/S0022202X1...
Cretaceous oxygen levels were at times comparable to those today, and possibly lower. In any case dinosaurs probably had very efficient lungs, as birds do. Unfortunately there's no way to get DNA that old.
An acronym glossary up front is often helpful. But the current practice seems to be to add copious whitespace until it fills two or three pages, when a fraction of that would suffice.
I agree. The Reddit mods I've dealt with were nasty people.
And yet that can also be valid - the /r/teen sub, which is meant as a safe place for teenagers to talk, bans people who've posted in creepy subs - do you disagree with that?
I am not saying pay everyone SF wages but don't pay more or less. Pay every one the same if they have the same skill/output. If that means you can't hire people from SF then so be it. If you can only find people in SF to do the job you need then you are effectively paying everyone SF wages.

I am specifically targeting Sass businesses that have global identical pricing for their products and don't incure any additional expenses if an employee remote works from SF vs Bangladesh.
And (at least here in Bogotá) they are pretty good places for burglars to hide, surprise and attack cyclists.
Based on his name and the picture in the article, I assume the author is Dutch. We don’t have the distinction between underpasses and tunnels in our language and just call everything ‘tunnel’. It may have to do with the country being so flat that there are no mountains to tunnel through.

I can only think of a single real bicycle/pedestrian tunnel, which is the Maastunnel in Rotterdam. Incidentally it is also one of the oldest tunnels in the country. It was recently renovated and is actually really pleasant to cycle through, because motorised traffic uses a separate tunnel tube.

As for turns in underpasses, at complex junctions or infrastructural elements it may be tempting to just make a small bend so that the underpass is cheaper to build or easier to fit in to the environment. Take these crossroads for example: https://goo.gl/maps/21Yqj89WwyiiuZfD9. If you look closely you will see a bicycle tunnel going underneath from the southwest to the northeast. This important connection for the residents southwest of the shopping center is relatively long and has a slight bend. This makes it feel dark and unsafe to the people who use it.

A better design can be found at this roundabout: https://goo.gl/maps/TXuFjXj85huufc7m6. Because the middle section is open, all of the individual underpasses are short and there is a lot of daylight, making cycling there safer and more pleasant.
Small tunnels and no stations, plus I would presume good ground for tunneling. All together, a smart way to take advantage of tunnels’ strengths while minimizing their weaknesses.
It is curious how all of this is also shown in St. John of the Cross’s writings (Ascent of Mount Carmel, and his poetry). I guess any true spiritual “way” must acknowledge the need for detachment together with the need for attachment, contradictory as it might look. “In order to possess I must go through the way of dispossession…” and so on.

Edit: not trying to compare or enter into a discussion, just sharing what I do know.

The reading has been quite interesting, despite my not shating the buddhist view of the world. Thanks to whomever posted it.
Looking at the comments that got them banned would be illuminating. I've seen my fair share of people just being straight up assholes. Sorry buddy, be civil, or go somewhere else.
Sounds a bit discouraging to be honest but fair.
The solution seems to be a Goldilocks zone between popularity and death, too popular and it devolves, too unpopular and it dies. HN manages to keep itself tucked neatly into that zone I think.
Or TumblrInAction or PoliticalCompassMemes.

Regardless of the content of your responses/posts, you get banned.
You're suggesting there's a misleading flaw in the measurement device itself which is a different phenomenon than the article describes (in which a particle's normal evolution through time _actually_ decays when measured).
There was a time when Ron Paul was Reddit’s favorite politician.

https://www.theatlantic.com/daily-dish/archive/2007/11/ron-p...
On the other hand American English LOVES periods, leading to visual abominations like N.A.T.O.
Ikea uses zigbee. Better for this purpose than wifi or BT (but sadly not much).
Clarification: this is valid, useful criticism, not at all pendantry.

Usage of the "tunnels" word got me confused through the first half of the article, until it showed a photo of an underpassage in the Netherlands.
They're pretty common in some places. The E17/A22 entering France for example has these overhead signs[0] that go from 110 in good conditions down to 70 in very bad conditions or even 50 if there's congestion. There are also similar signs in Belgium but they're more rarely adjusted depending on weather, it's usually just according to traffic.

[0] https://maps.app.goo.gl/pbCArbN5yraJZFBw9
My thought is start using emojis for stuff like this.
Not only that but he manufactures and sells lock picking equipment and consults on physical security. There's nothing part time about LPL's lock picking any more.
I have worked in fraud prevention, detection and analysis. Depending on a lot of factors the weakest link is either the retailer where fraud occurs, the bank's protections systems or the customer.

Retailers would a lot of the times not do additional security checks because those cost money. If someone buys something for 5-10$ the retailer doesn't pay for additional verifications to the bank and they are then liable for the loss. Sometimes they won't even pay for that for larger amounts OR that they avoid doing those checks because it breaks the transaction flow and the customer might just cancel the transaction - most of us are impulse creatures and if we're adding additional checks then the impulse could be stopped.

Banks also still use SMS messages for verification. SMS is horribly insecure[1] and it's shocking to see it's still the last line of defence between your life savings and a potential attacker. Yet having worked in this field, I know that the decisions are taken from a purely financial/time frame point of view. "We have 6 months to implement this, our devs have done this before and thus an SMS carousel is the easiest to implement. TADA". Or "we have already the contracts setup, we have done this for this other account type, so we're going to reuse it". There are very few incentives to use anything else and it goes back to adding friction in transactions. If our world wouldn't be obsessed with buying quickly and easily, more defences could be added.

Lastly, banks are horrible at talking to people. They don't know how to do it at all, so they cannot make communications clear. The biggest impact to fraud prevention would come from nationwide campaigns were users are shown some of the most common ways these attacks occur. Common sense suggestions also seem to lack entirely - "if you're ever unsure, pick up your credit/debit card and call the number on the back of it. That's your bank's contact number, it doesn't need a website, you don't need to call a number from a message, just call this one number". One bank I worked at did this small communication exercise and over the next few months it accounted for a significant decrease in phone-related fraud.

It's a very complex issue and I'm seeing Europe being the next big target from what I have seen regarding anti-fraud processes in European companies (a lot of them rely on outdated tech that cannot handle checks fast enough). European banks also move a lot slower than UK banks, transfers move slow, security checks are poor and in general they seem to spend A LOT less money on fraud prevention... Cybercrime is on the rise[2] and we're horribly unprepared.

Blaming people is the worst approach. We can all fall victims to these types of attacks, but we should spend time to educate those around us and exercise a bit of caution, yet understand that we can all be victims.

[1] - https://krebsonsecurity.com/2021/03/can-we-stop-pretending-s...
[2] - https://risk.lexisnexis.com/-/media/files/financial%20servic...
Communication has become a catchall for MBA types who are drawn to fast revenue generation in tech. Often they talk more than think or read.
places need limits. they really really do. They do in real life, they do in online. Should someone be able to go to a bar and shout insults at the owner. depending on where the bar is this will end with you in an alley.
Why should a private company allow things that affects their bottom line?
You're not doing engineering here, bro.

> Could you give some examples of big features from the last 12 months?
> ...
> I can’t recall a new Rust release ever breaking existing code. Is this what you’re talking about?

Let me show you two links:

1. Rust version history: https://github.com/rust-lang/rust/blob/master/RELEASES.md

2. GCC changes: https://gcc.gnu.org/gcc-12/changes.html#c-family

Compared to Rust, GCC, the C compiler, is absolutely boring. The C language has been stable for decades, so there's hardly anything to be done on the language itself. GCC has been used in all kinds of occasions, and has compiled all types of applications and system software. We know it works in every situation. There's hardly anything to be done. This is how the real stability looks like - boring as shit.

Now, what, 12 months? The number isn't simply getting there.
I used to work in RT-TREP team at Thomson Reuters. 90% is a bold claim. They had an entire floor in different countries working on particular component.
People who hate their lives? I’m sorry I don’t know what you’re talking about. You’ll find all sort of people on Reddit, but certainly not mostly people hating their lives, society and others. You must have spent too much time on the worst subreddits.

You’re the one hating here. I wonder what your "reality" is like.
>Most of the world's grain is eaten by humans' food.

Evidently.

It's like when, talking about how there are too many cars, they make a separation between "cars" and "humans", as if cars weren't driven by humans. It's very basic manipulation.
The robots are too busy working in the Cloud, using ML and AI to analyse Big Data, to flip burgers.
Hey, molly0! Do you have a specific example in mind? I'm thinking about how common this use case could be but can't come up with anything.
Not sure how drones are related – denying rail use from an advancing enemy has always been easy. A destroyed railroad bridge cannot be replaced with a temporary ponton bridge, for one.
Pretty sure they are just pumping their metrics ahead of a future IPO. The current shareholders will all disappear and the new ones can slowly pick up the pieces in a few years.

Forget running a sustainable business with your customers at the heart of it, the new way is going just fine.
> Yuri's criticism was not that Julia has correctness bugs as a language

Are you sure? Here are some issues from the post:

"Wrong if-else control flow" seems like a language issue? bug is still open [0]

"Wrong results since some copyto! methods don’t check for aliasing" seems like a bug in a core library. The bug, which is filed against Julia, not some third-party library, is still open [1]

"The product function can produce incorrect results for 8-bit, 16-bit, and 32-bit integers" was a bug in a core library, which was fixed [2]

"Base functions sum!, prod!, any!, and all! may silently return incorrect results" seems like a bug in a core library and is still open [3]

"Off-by-one error in dayofquarter() in leap years" seems like a bug in a core library which was fixed [4]

"Pipeline with stdout=IOStream writes out of order" seems like a bug in a core library and is still open [5]

I've been deliberately conservative here and only posted the issues from Yuri's post that are in the JuliaLang/julia repository. The other issues are filed against JuliaStats/Distributions.jl, JuliaStats/StatsBase.jl, JuliaCollections/OrderedCollections.jl, and JuliaPhysics/Measurements.jl. Since I have not used Julia very much, I don't know whether these are commonly used libraries or obscure libraries nobody uses, but they seem pretty close to the core use-cases of the language. Maybe someone who uses the language a lot more can shed some light on this issue.

Some commenters seem exhausted by what they perceive as a continual stream of lies about these topics, which has left them less inclined to post about them.

[0]: https://github.com/JuliaLang/julia/issues/41096

[1]: https://github.com/JuliaLang/julia/issues/39460

[2]: https://github.com/JuliaLang/julia/issues/39183

[3]: https://github.com/JuliaLang/julia/issues/39385

[4]: https://github.com/JuliaLang/julia/pull/36543

[5]: https://github.com/JuliaLang/julia/issues/36069
6502s or 65C02s were used with cache in many Apple II accelerators. Apple licensed one of them for the Apple IIc.
It's not really about the smartphones, I think. They are just a symptom of much more fundamental behavior (which may or may not be problematic - depending on how you look at it).

All those 5-10 second breaks -- waiting for a light, waiting for an elevator... If it were not for the phone, what would you typically do? Focus on some random thought or two. Then snap out of it and carry on. The fact that now this is often not a random thought but random input from random app doesn't seem to change that much - pattern stayed the same, just now you can see it in other people from the outside, so it seems more profound.
I agree with you kind of. But it was a loose collection of forums initially and still is if you look at it that way. The Reddit admins forced the idea of communities as a reason to start banning. You can see this over time. Subreddits were not called "communities" until the admins started banning subs. It's classic group dynamics.

You can't ban a group that isn't a group. So the site grouped loose collections of people into what they called communities. And it became self fulfilling as groups define themselves by what they are not as well as what they are.
Are there features not covered by kid3?
Look up the difference between criminal and civil law.
r/funny (mainly) is a symbiote to 9gag.

The other major subs are also filled with shallow/unsubstantial content

But if you keep out of those it is usually ok
Do you find it odd that most people buy chairs capable of supporting 200kg when they know that no one over 100kg will ever sit on it?

Now just a moment, I'm 6'2, with a long torso, and 100kg is literally unhealthy for me, unless I decide to lose muscle mass.

(No, other 6'2 people, I don't care what your healthy weight is. I said long torso. Most 6'2 men are 8" shorter when sitting beside me. The torso is the heaviest part of the body...)

Yet now I am unwelcome in your home?!?

It's hard enough buying shirts, and now this.
The EU already has a project to introduce a replacement for the screw couplings used in EU rail freight today, the Digital automatic coupling (DAC). The "digital" part AFAICT comes from the ability to also connect air (for pneumatic brakes) and data cablings, not only mechanical.
Reddit is mostly crypto-critical so unless you posted something paywalled or in the wrong sub, this is unlikely to be the root cause.

WSJ is paywalled isn't it? Like as in no one can read the article.
Ask HN: How can I improve navigation skills?
I am going to be 26 soon, but I am still very terrible at navigating to places. I often get lost, even in smaller cities (or even a train station!), and have to constantly look up on Google Maps (with GPS), ask people, miss connections, taken wrong connections, running around in circles trying to find my destination.

Has anyone here been like me and considerably improved their spatial awareness and navigational skill? How?
you can type check this in static languages too if the type system supports structural typing [0]

[0] https://en.wikipedia.org/wiki/Structural_type_system
Yes, the context is Python.
> I really don't know where the extreme stuff has gone

https://en.wikipedia.org/wiki/8chan

and I don't visit it either because I am too old but who would want to fight qanon would probably need to. I salute them.
Home installations are usually at several times 10 square meters, or more. 50 is common, 100 seen.
So someone gives an argument which involves less than 1/4 of the world population merely having to change their consumption patterns by eating less meat, but still you see a better solution in 'cutting our population' by more than that? Wouldn't it be better to first focus on the lowest hanging fruit in which we tackle the problem by focussing on those people using a disproportionate amount of resources, instead of indiscriminately reducing the whole population? Not to mention the fact that there are not really any ways to quickly 'cut our pupulation' to this level short of killing people.
There’s C++ programmers and then there’s C++ programmers.

The C++ programmers who have been using std::unique_ptr have absolutely the easiest time learning Rust as Rust is basically C++11 smart pointers on steroids. These C++ programmers usually have the opposite problem, there’s things you are allowed to
do in Rust, that you can’t safely do in C++ without copying.

Then there are C++ programmers who are still using C++98 style for whatever reason (commonly gamedev) and they don’t benefit from any similarities because their style of C++ is so old that there aren’t any similarities.
> You probably don't sell code snippets that you collected from various sources you can't remember without knowing whether you're even allowed to sell some of them.

actually i'm sure you do, you just don't think of it this way. The education you received to learn to code would consists of such snippets and examples. Then you sell your skill as a programmer, which consists of you recalling past experience and knowledge, and transform that into the final piece of code.

Copilot is merely doing something like that, but way less sophisticated than a human brain.
You might want to see to Stuff Made Here's comment in this very HN Post:

https://news.ycombinator.com/item?id=31880501