skysight-inc/HackerNews huggingface dataset:
I'd been thinking recently about how to write a "train your own recommendation algorithm" feed reader and fediverse reader, but I was unsure how those sorts of algorithms work. It looks like cosine similarity is a good place to start.

I wonder if you could get anything useful from just upvoting/downvoting entries in your own feed for a few days/weeks this way, or if much more signal would be needed for a real algorithm.
I have no patience for tinkering with configs/learning some crazy syntax/worrying about toolchain reproducibility, that's why I run Mac OS, install Rust/node.js/Go/Java/C compiler once and forget about it.
Easy, sue the surrounding landowners for entrapment or kidnapping

Equally as frivolous as suing people for trespassing on public land
Samus Returns was also incredible.
What do you mean the function to create a directory? When would you be creating directories outside of derivation build phases?
eBay already collects most of this information for tax purposes as I’m sure you are aware. This will do literally nothing, fake scans and photoshop cost nothing. Something like Onfido probably would raise account creation costs a big amount but I don’t think this bill mandates that level of identity verification . Go on any sketchy forum even ones frequented by teenagers like marketplace section of mpgh or bitcointalk and you will find EBay with attached PayPal for only a couple hundred dollars.
That's a pretty good counterexample, and probably the more common one. But what if your company only paid for a tiny subset of the product? Would you want to see everything that's unavailable along with a tooltip even if it really detracts from the user experience of the features you did pay for?
My brother and I built this over the last 28 days using Elixir and Phoenix Liveview.

Since day 1 our goal has been to launch as quickly as possible and get something useful out to gamers like us. We want to make it very easy to manage your game collection, your price alerts, and find good videogame deals from brick and mortar stores. We're going to expand soon to other physical stores and ultimately add in digital storefronts as well.

Think Pinterest for videogames.

Thanks HN!
Ask HN: Any tips for dealing with the anxiety of having written bad code?
It at least solves the defined problem, is performant, secure, decently tested, and stable. So you might call it "good code" by those measures. But there are some glaringly bad, overly complicated patterns that make it unnecessarily hard to understand and very difficult to work with and build on top of.

I've been feeling a lot of anxiety from this. It's affected my sleep, even during vacation. I'm waking up in the middle of the night thinking about it. I've been nearing burnout for a lot of reasons recently, and I worry this could push me over the edge.

I think the main anxieties stem from:

* Not being able to have pride in my work, which is undermining my confidence. It's always been important to me to feel good about my work.

* Fear of how this code will bite us in the future.

* Feeling shame around my peers. It makes me feel really dumb around smart devs that I like and respect. (I almost feel like crying while writing this out.) I have already heard rumblings from team members about how bad certain things are, and it makes me feel stupid and incompetent. It hasn't been their intention to shame, but it still hurts because I agree with them. But they don't have a full understanding of all the many factors that led to this.

There are a lot of reasons this happened (including some poor early decisions that I'll take full credit for, a complex and changing feature set, pressure to hit a hard deadline, building on top of an existing codebase with many legacy issues, team politics, and concurrent personal issues), but those are the things nobody sees when they look at a git blame.

I've got 10+ years of professional experience, so I've shipped plenty of substandard code and been through all of this before. I know a huge portion of code in the world is bad, and this should all be old hat by now. But it's still never caused as much internal angst as this.

Some possible paths forward I've been thinking of:

* Just make the code better - I can do small bits progressively, but a major refactor has been shot down by leadership at this point in time. And the undermining of my confidence is filling me with the fear that I'm not even capable of this. Maybe if I can just slowly keep getting small wins over time I can build my confidence back up.

* Documentation - for the things I can't fix, at least document what the current state is, to provide help and background for future developers.

* Therapy - I'm already in therapy, and will bring this up. There are some obvious "self worth" issues tied into this, with me attaching my worth as a person to the quality of my code. Maybe my therapist can help with this.

* Stoic exercises - I can't change what others think about me or my work, so I can try to not let it bother me. (Easier said than done. Stoicism has never worked super well for me.)

* Find a new job - maybe I just need a new perspective and a fresh codebase. (This would be a challenge right now.)

Would love any advice or similar experiences HNers might have!
What computer are you using that boots so slowly? I can’t say I have had that issue in over a decade.
It's not rude for me say it's not me, it's you.
In lambdas, sure, but in longer functions there's usually better way.
This is an example of why I love OpenStreetMap so much - you never know what amazing things people will use the data for once you’ve mapped it!
Which then begs the question: are there any known buildings in which the front door opens onto the border?
In my career, the big cancer has been decent engineers thinking they're good managers and end up making everyone up and down the chain miserable because all they know is a command-and-control style managing, or passive-aggressive style managing where the reports don't necessarily know they're being left on the line to dry.

It has been super rare for me to see managers who are just filling a position and grifting. Perhaps the only time was at a large defense contractor where I interned in college.
I don't know if it should be considered cheating to use an emulator because they have a very different CPU instruction timing profile than real hardware; here's a notable result from before, with real hardware running XP down at 8MHz:

http://winhistory.de/more/386/xpmini_eng.htm

Also, it looks like he started with something resembling WinPE, which is already stripped-down compared to a regular install.
We had to move from the very urbanized Capitol Hill area of Seattle. Whenever we got home it took 20 minutes of driving around to find on street parking. Then it was a game to find where you parked the car the next day. This is because the apartment building did not have enough parking to handle the number of people living in it. As a result, we moved to the suburbs where we have parking.

Since we moved, Seattle reduced the minimum number of parking spots required for apartments further. This seems to be a stick approach rather than a carrot approach.
useEffect is precisely for getting/posting data. That is one of its purposes. If the react team is acting suddenly like it isn't they are ignoring... reality?
I actually had the opposite reaction -- on most websites I have to zoom in to 150 - 200% to get it to be readable (HN is at 175% for me). Here I had to do no zooming.
I haven’t read the article, and maybe there is an answer there, but my immediate theory are easements. That is, the land is theirs but the owner of an adjacent property has the right to access their property through a defined corridor. Here in Washington state I know of some properties that even have public easements on them. Meaning that if their property blocks access to a public land, the public has the right to access that public land through a defined corridor.
> And how is SaaS income “passive”? There is server support, sales, etc.

It surely depends on your market, but things like sales are for generating new income. You can always stop working on sales and keep drawing existing income. I don't know how much server support most SaaS businesses entail, but in my (n = 1) experience, it's not a lot.

I"m a little confused by your reference to independent consulting, which is not at all like SaaS. It has more flexibility than full-time employment, but it's still active income that you have to work for (with a minor exception for retainers).

But it sounds like you aren't really interested in finding a way that passive income could be useful, and I'm not here to list all the reasons people like to run SaaS businesses. If the benefits don't stand out to you, then by all means you should do something else!
You're conflating who needs to take care of that - if someone on public land doesn't stay on public land, when they are out they can be charged.

I don't see why you need to change the narrative to be "OH WOE IS ME, THEY TOUCHED THINE PUBLIC, but pissed on thine private a bit". That can be charged with evidence.

People MAYBE doing a crime is not a crime, and is a fucked up premise for you to persue, I'm disappointed in you.

I hate to break it to you - the govt can define walking paths and public lines.
> Perhaps you and I have different styles of communication

We can certainly agree on that. I put a lot of thought and effort into making my questions clear and specific when there is a particular piece of information that I’m trying to find.

I do not put a lot of stock into meandering exposition — I don’t understand how on earth “answering questions that weren’t asked and refusing to answer questions that were” could possibly be something that I could do with a straight face. I would be embarrassed to think that I could influence another person that way.
If there's a public right of way across my land, I don't see why I would have to pay to maintain it. Doesn't apply in coastal California of course but I'm certainly not going to plow public access in the winter to a location that I don't otherwise need access to.
I wish there was some lightweight (optional) web-ring like structure for Publish so we could learn from each other. Find me at

https://publish.obsidian.md/zero-chroma-infinity/Signpost
Holy shit I remember playing this like 15 years ago. Massive nostalgia here.
Coracle – a web client for the Nostr protocol
I think this is incorrect.

As stated in the article:

“One were to weigh themselves every day and throw away all of the results which showed an increase in weight.”

Imagine I weigh 190 today, and I measure 180 tomorrow, 185 the day after, and 170 the day after that. The graph of values would be 190->180->170, ignoring the day when we increased from 180 back up to 185
There's probably a mechanism for the county to establish a road.

There probably isn't real demand or funding to build a road. In Michigan, a lot of the roads used for land access are maintained when a timber harvest needs the road and then very little otherwise.
Problem is that artists makes rigid models in other programs they aren't made to have proper structural integrity. Rigid body physics lets you work with those models anyway, with proper physics you'd need to hire real engineers to design the different vehicles and structures and weapons in your games so they don't collapse on themselves.
And you failed to answer it by injecting other scenarios.
Is there an in-between? A “plastic body system” where something behaves as a rigid body until a certain threshold or conditions and then behaves as a soft body during that condition, later returning to RB simulation using the new shape and altered parameters?
Many things that target macOS and everything that targets iOS will have a CI running on macOS.

For better or worse, iOS is not a niche target.
Average person paid to work 8 hours probably spends half of that time on browsing internet, so there's little loss.
https://en.wikipedia.org/wiki/M%C3%A9nage_%C3%A0_trois

Problems that could arise from classic Seinfeld: https://www.youtube.com/watch?v=HEMWMsy0DgU
Exceptions exist, sure. The title is that you prefer single letters generally but the submission text is more about exception situations for throwaway variables, so it doesn't quite sound consistent. The title and submission text also contain no concrete question, so I'm not really sure what you're looking for here.

Even in your example cases, though, compare these two lines:

a = arr.filter(n => n.flag === true);
a = arr.filter(user => user.flag === true);

Which one is more clear here?

I hate ${JavaStyleVariableName}s that are so long that it takes extra mental effort to parse the names, so I'm fully with you if you argue for appropriate variable name lengths, but having any name at all (one character is typically not a name) can give some indication of what it is, even if abbreviated or otherwise terse. The variable 'n' sounds like a number, rather than an object that would have a .flag property. While not very confusing, it's also not the most intuitive thing to call it. I wouldn't flag this as "please fix" in a code review, but it's also not better than using any name at all.
Strict enforcement of MSRP is bad for consumers so I’m not sure why you’d celebrate that.
I have exactly one windows box in this house and I avoid turning it on but it is a requirement to operate a particular piece of hardware. It takes several minutes before it has completely booted, it runs Windows 7 on what is a perfectly fine machine for that OS.

Highly frustrating.

That's why you get articles like this:

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

And many others besides. Windows can be such a cycle hog. Probably if I installed 64G of RAM and an SSD I could cut it down to something more decent, but I don't use that machine often enough to offset the expense (and never mind driver/installation media hassles, it isn't broken so don't fix it!).

Other machines take on average about a minute or so but they are running Linux, running Windows on them would easily double that.

My daily driver is a T540p (mostly to conserve power) and it works well enough. Not exactly a speed daemon in use but maxed out on RAM (16G), a 2.5 GHz i7 and a fast SSD it doesn't perform nearly as well as my 20 year old self would have expected it to.

OS and browser will happily eat all of that, and I can't use swap because of the audio drop-outs that would cause. If there was a way to shoehorn in more memory I would take it.
> I don’t use “social media” at all anymore

Posted on HN, QED.
I can only think of a few scenarios: math functions, string formatting, iterators, and generic code where there is no meaningful name.
Fun scene in Deutschland 83 has a HVA geek trying to use a 5.25" floppy they snatched from NATO into a Robotron A 5210's 8" drives. After hacking around a bit, he managed to read the floppy and it spits out a bunch of numbers in sequence. "It is encrypted" he says as the screen shows columns of numbers scroll by.

Shortly after, this flashes on the screen briefly [/g]:

OK
10 CLS
20 FOR I = 1 to 64
30 FOR P = 1 to 6
40 FOR Q = 1 to 5
50 A=48+RND(1)*9
60 A$=A$+CHR$(A)
70 NEXT Q
80 A$=A$+" "
90 NEXT P
100 PRINT " ";A$:A$=""
110 NEXT I
OK

https://starringthecomputer.com/snapshots/deutchland_83_s1e3...

https://en.wikipedia.org/wiki/A_5120

https://www.imdb.com/title/tt4445154
Not sure if Wii U is modern, but since it's on Switch too...

Donkey Kong Country Tropical Freeze? That's 100% a triple A 2D platformer, with incredible graphics, some damn impressive level design that takes advantage of multiple foreground layers and numerous interconnected level specific mechanics and one of the best soundtracks in recent times.
From this article, "This rancher, who wants to remain anonymous, sees trucks driving around in his pastures, sometimes well after dusk. Every rifle season, a fleet of trucks is parked on his private driveway. He’s witnessed people shooting deer on his property from the adjacent public land, and he’s caught people shooting deer well within his property. He’s heard shots ring out from the same direction as where his kids are out fixing fences, causing panic. There have been times he’s tried to approach trespassers and they’ve fled the scene, leaving dead or wounded deer behind. Law enforcement in his area is stretched too thin to respond to all the calls."
Also, how did the checkerboard pattern happen to begin with?

You might want to reread TFA, the explanation seemed simple enough to me. And it isn't what you apparently think.
This sort of algorithm requires quite a lot of data to work. If you had a large collection of many people's votes/bookmarks, that would work. It's not enough to just use one person's preferences as there is nothing to compare them to.

Although I guess you could use link data (or some other source) to base suggestion off.
Can you provide some research to backup that claim?
Parts of this are a distant reflection of Adobe AIR and Flex, both of which used xml for much of its functionality.

Of course this is more interesting because it’s modern and appears to work on the web. Maybe tires will be a worthy contractor of things like Flutter
I agree. Phrased slightly differently:

It’s a pity this post is fat shaming, because it _is_ a distraction from an otherwise interesting post.

Intentional or not, it unnecessarily gets in a dirty jab that cuts deep.
I am this exact position. I had a separate account (work related) and personal one. It boiled down to me knowing that I value influence and authenticity more so I used my personal account. It's easier to make arguments and discussions with people knowing who you are vs a pseudonym. You do need to be a bit careful about words (as you always should) because people interpret them differently. Also, accept the fact that you cannot please everyone and that there will be people that are for and against you.

If you find the message above useful, please do follow me on Twitter: https://twitter.com/westoque
Out of spec reviews just did a video about this: https://youtu.be/i-c8AUeKs5c

He compares the different battery heaters (heat pump vs resistance), depending on the model year, which is probably related here.
I don’t think you could in general in the US either. If you grant someone easement you might have a duty to do basic things like not make concealed traps that could hurt them. Fear of litigation is just another excuse to keep land private.
But no true dev would put sugar on his porridge.
Is it really invading anyone's privacy? Those parcel of lands are huge. I guess some people might build a house right at the corner...
And many of these new panels and wide phone booths provide extras accessibility issues. https://www.reddit.com/r/sydney/comments/zk9ooj/city_of_sydn...

https://www.reddit.com/r/sydney/comments/zb3k8k/have_your_sa...
Cool find! I had not seen that before. But I still think the one I linked to is the canonical origin since it actually named it and described the method we ended up using (media queries) but this article definitely seems like an important precursor as well - and it strengthens my point of how important ALA was that this post was also posted to ALA.
I’m not talking about the 1970s. Gattaca was made in 1997 and was a major production with a famous foreign cinematographer at the helm.
It seems silly to contest this with airspace rights. You can fly a GA plane or paraglider over private land. But a ladder isn't allowed?
Of course it could... but will it? Depends on Peloton, but they would most certainly issue a C&D first.
Yeah and those modern frameworks use useEffect lol.

This "3rd party library by default" bullshit is killing me. I just read that link, it's basically "here's a general problem with data fetching that every front ender should thoroughly understand OR actually you know what just use a fucking library and forget all about it".

The React docs have been full of this rubbish for a few years now and it's just straight up irresponsible. Worry about what your own library does, and if there's footguns or complexities then explain them thoroughly. Don't just handball them off and treat your API consumers like children.
That's a very fair point. I'll remember that moving forward
And sometimes the answer is that the land is just landlocked. These properties are often… not very desirable.
Surveying has become increasingly computerized, so your software experience could be very useful. You would need to take a university course to become a registered surveyor. The earnings are good as well.
> useEffect is precisely for getting/posting data. That is one of its purposes.

Where is this said? Because everything I've read has been that doing any non-idempotent action in an effect will cause bugs. Therefore, GETting data is fine but POSTing it is not. I've read this even before these new beta docs.
I’m pretty sure that that coverage is just inside their area of operations. Someone can be far outside of a substation and fire a rifle into it to do damage. that is a large area to cover with cameras.
You could also frame it as a protein vs carbs argument and which one fills you up more with less overall calories after a given meal.
This looks cool, very easy to use and look up some video games. I have a few random questions:

1. Where do you source the data about the video games?

2. Any consideration to either open sourcing or writing a technical post about the Elixir bits of your tech stack?

3. When it says "We don't have any prices yet, give us a few minutes!", what is going on under the hood that's taking a few minutes?

Thanks for sharing!
The article explains how the explicit lack of such easements and corridors is causing problems.
Corridors and easements exist somewhere, and are discussed as a way out of the trap.
A complete noob question (I am not a gamer and not a game developer):

Is this a big thing? I.e. is this enough to start a community-driven effort to create an open source alternative to something like GTA (at least in gameplays I watched transportation seems to play a big role)?

I have been wondering for a while why there is no open-source open world game similar to GTA, considering its poppularity.
Yeap, me too. Especially when dealing with math/physics. Full named variables for math and physics is incredibly difficult to grok, once you're used to reading it in traditional math form.
You missed my point. Al Jazeera is a hyper progressive outlet that criticizes every other government but their own.

So an ethical standard by Saudi Arabia will be like that.
Isn't there anyone who knows what Christmas is all about?

http://blog.newadvent.org/2022/12/watch-linus-christmas-spee...
useEffect is treating undefined as meaning undefined.

It makes perfect sense from inside of useEffect.

If there are no dependencies ([]), the dependencies can never change, so React can always reuse the old effect.

If the dependencies aren’t defined, there’s no way to tell if the old effect is OK, so React must always rebuild it.

**

But `useEffect(()=>{})` doesn’t explicitly show that React will get `dependencies = undefined`, and in this case that’s unusually important.

You could have ESlint force you to change that to `useEffect(()=>{}, undefined)`, I suppose…
I suppose it makes sense as to how we ended up here, but how was physically traveling to these plots of land originally handled?

With this system and the laws around trespassing, how could any of these parcels of land been legally accessed? They would have had to cross a number of plots to arrive on a plot designated to the property owners.
> Some days after the call we got a stack of floppies in the mail from Microsoft with a small bug fix

That is just so utterly inconceivable today that I didn't believe it at first. Not just being physical media, but receiving that level of attention and care.

The best you can hope for these days is a vague forum reply with some shockingly bad information from an "official Microsoft rep" who is at least 5 degrees of separation from anyone who has seen code before. Disgraceful.