skysight-inc/HackerNews huggingface dataset:
About five years ago I worked on a codebase with a similar bit of code. It wasn't nearly this big, but it was branchy, procedural, and verbosely commented. I didn't write the initial version but worked on it quite a bit and learned to appreciate the advantages of the style for the nasty bit of logic it implemented. I ended up having to vigorously defend it against another developer's half-cocked attempt at "refactoring", which got deployed more than once (behind my back) and thankfully broke in pretty obvious ways each time.

I warned him at the beginning that he needed to spend a couple of hours wrapping his head around the code before trying to modify it.

I warned him that the code arrived at its current state after long and painful experience.

I warned him that other developers had worked on the code, had exactly his initial reaction, and eventually admitted they couldn't find a way to improve it.

I warned him, after he confidently declared that it just needed to be "more object-oriented," that I had written a lot of object-oriented code, was open to writing it in an object-oriented style if it would improve things, and could not think of any way to do so that would not make things worse.

But he could not even bring himself to read the existing code. He never did. He worked on it for three weeks, wrote thousands of lines of code, and even tried to deploy his own version without ever spending a single contiguous, focused, hour-long block of time reading the existing code. He was "refactoring" the whole time.

The code he produced was exactly how you imagine it. The code went from several hundred lines in a single file with no classes (just a containing class acting basically as a namespace) to thousands of lines scattered over half a dozen files with at least that many classes. The guy kept adding classes and kept adding test after test after test. He couldn't get his code to pass the test cases I had written, so several times he declared that my test cases were wrong and changed or removed assertions. He also claimed that the existing code couldn't "pass" his tests because he had hundreds of lines of tests for components that only existed in his code. According to him, this proved that there was a ton of "hidden untested functionality" in the existing code, which was therefore "dangerous."

I was pretty busy with other things, and this was his project now, so if he had been a little bit more clever he probably could have made his abomination stable enough to replace the existing version over my objections. Thankfully it was never good enough to survive in production.
It does the opposite of what you want. It removes the imports that aren't used and consolidates or expands the used ones. When you copy and paste code from within the editor the imports should also come along. Copy and pasted code from outside sources seems like it should be looked at line by line for the proper imports.
I talked to a Genius in passing and was told that I need to triple tap to get it to “register correctly”, which did not help. I think I’ll actually take an appointment and complain some more and see if they can look at it with more scrutiny.
Volvo is doing exactly that, it’s called Volvo Care if I’m not mistaken and includes some newer cars, service, maintenance, winter tires etc in a monthly fee.
He likely wanted to donate the photo to the sponsors. But he wanted to do it in a manner as to not lower the value of the photo, and also highlight that it was his IP. If he did not mention his 500 Euro price tag, the company would assume that next time it's only worth 100.

Unfortunately, it was worded to make it sound like, "I took a photo of you. Your can either pay me 500 Euros or pay someone else 100 Euros."
I noticed today that Superbook seems a little quiet too...

Still, Superbook has delivered an in-market piece of hardware, even though it's 1st gen.

Samsung Dex is a new generation of the past docks they had and are interesting too.

Razer and Mirabook look great but they won't be able to compare until you can buy one.
Crashplan $10/mo. Encrypted, off-site backup with unlimited storage, versioning and it keeps deleted files as well.

My challenge is that I shoot uncompressed RAW with my Sony A7R3 which makes it 80MB/image. And I shoot high res close to gigapixel res. panoramas with bracketing - which triples the storage (3 shots per frame for HDR blending).

So the challenge is it takes very long time to upload this stuff across my bandwidth.
If we can throw voluntary in there...
Do you have any recommendations for someone who wants to learn to draw, but currently can't even scribble a decent stick figure?
All of my iOS devices are rather new, perhaps it depends on which one. I've used Siri, made calls, and spoke in channels on Discord without having it happen on my iPhones 7 and XS, and 2018 iPad. In comparison, my Macs are a 2013 Macbook Pro (running Mojave) and a Hackintosh desktop (still on High Sierra).
Isn't this basically the same sort of "whataboutism" that we decry elsewhere?
There is a review and discussion of that book here, https://news.ycombinator.com/item?id=18331219
I agree. My day job is working on code that isn't this level of critical, but also has the characteristic of being low level, both closer to the metal than typical backend code and also called by so much frontend and backend code that if there was such a thing as "even backend-ier code" this would be a good example. If you miss a nuance, a horde of angry developers will show up at your desk the moment the build deploys, and if you don't fix it fast, that turns into a horde of angry customers.

With code that far down in the inner loops of mission critical code, the dominant time cost isn't really writing or even understanding the code, it's ramping up on the nuances of the scenarios you serve, checking the direct effects of your changes, and then checking the second order and third order effects of your changes.

When your code is so far down that every change you make has third order effects, it's a lot easier to maintain code that is meticulously commented and written for maximum thoroughness explicitly baked into the file in front of you, because you're much more likely to miss the nuances if you just finished piecing together ten different files to figure out how the happy path works.
An outlet has to not only be premium but it would also have to be alluring for me to even think about giving them money.
No, here in the US, we have the no-fly list for that.

Once you're there, good luck getting your name off it.
The top selling automobile in America (Ford F150), has a base price of 43k. The Second best selling automobile ( Chevy Silverado ) is at 42k. In total the Average sale price of an automobile in America is 34k

Tesla is still above that, but not by much. I think people discount how much all those trucks and SUV's they see rolling around cost.
Sounds interesting

Yet no actual photos of the Fridge and setup
and no detailed info how to make it

All just Im great, look at these graphs
Getting down-voted by LoL fanboys is pretty funny.

Riot is notorious for releasing new heroes that are behind a paywall and that are overpowered.
Haiku, Inc. publishes yearly financial reports detailing financial transactions: https://www.haiku-inc.org/docs/haiku_inc-financial-report-20...

And most decisions are made in public, on the haiku-inc or haiku-sysadmin mailing lists.
Your post reminded me that I’m still smarting from my used 2017 car purchase last year. The windshield is pitted and replacement is the only real option and is expensive. We couldn’t see the speckling. We really noticed in the summer.
Hmm, I will try this with my pair and see if I can find the issue. Thanks!
This is a tip of the iceberg as to what these companies do. You have to see how they treat their h1b employees. This is modern day slavery that no one wants to talk about. I guess this is what capitalism has come down to.
>However, it does give me some comfort. When it’s not gamed, do other HNers also feel that a high comment:code ratio probably indicates quality?

I think people should spend more time commenting/documenting across the board. I'd much rather have verbose commenting that is unhelpful that I can skip, versus minimal commenting and code that is overly optimized and hard to parse. The less thinking I have to do to pick up where the last person left off, the better.

I would say that yes, in general high comment:code ratio tends to be higher quality.
People without Apple IDs can’t call me without texting first. I don’t get calls over FaceTime except from my parents anyway, everyone just texts, either iMessages or Signal.
Because the supermarkets are a oligopsony. This distorts the market.
The USA has proven to be extremely friendly to crypto, actually. The SEC supports it.

So once again, this hypothetical seems very unlikely.
cuid removes more of the randomness adds a counter and a fingerprint:
https://github.com/ericelliott/cuid

The default id in MongoDB does about the same. I always thought the MongoDB identifiers worked well for a lot of use cases.

Its also worth mentioning that integer incrementing ids can scale just fine if you reserve them in large blocks and they are no longer guaranteed to match insertion order, e.g: https://github.com/pingcap/docs/blob/master/sql/mysql-compat...
I respectfully disagree and would say c-level people of major companies are the most risk averse of almost all people. They run from failure like it's a stain. They want to always look good in the eyes of 'the big boss' and often have very little interaction with them and so are keen to always impress.

In business politics, perception is the only thing that matters, so it's really hard to spin failure as success.
Why isn't the core code not most of the code? Why isn't it all core code with a tiny dash of ux or data access sprinkled on it? With, maybe, one abstraction layer somewhere (but never two touching!l.
> Thanks. I think you are a correct exception to what I said. I should have known that using words like "nobody" would not go over well on HN (but tedious to type "a very large percentage")

In the future, you could use “most”.
Calling Scala "purist language" sounds riddiculous to me. It is a hybrid of object-oriented and functional styles, with tons of weird hacks like case classes for pattern matching, implicits, type inference that kind of works, but is not full Hindley-Milner, Java bindings that require weird conversions between Java and Scala collection types, _ as a wildcard in few different places. Scala is the opposite of purism. There's a reason why Odersky's "Programming in Scala" has over 800 pages - even listing all the hacks used in the language is not trivial.
CIA's investment arm In-Q-Tel partners with AI-human translation company Lilt
Or even in a StarCraft (the first one) map. AFAIK, MOBAs were invented in SC/SCBW, and refined with the original DotA - the W3 map.

(Tangentially, I'm still amazed at the variety of gameplay ideas people were testing in SCBW and W3's UMS maps).
Code terseness and case analysis (handling all cases) are totally orthogonal: OCaml is pretty terse and yet the compiler is great at letting you know if you forgot to handle some case.
Each of those dozen or so has different causes. So until you file a report with a syslog attached, it's impossible to say whether or not yours is a new one or a duplicate.

But if it is a duplicate, and you already know about the existing reports, why are you frustrated that you've tried again and nothing has happened? We are pretty diligent about managing the bug tracker and closing tickets when they're fixed, so if the ticket is still open, it's probably not fixed.

Likely if you are booting from USB, the problem is your USB3 controller. Try booting from a USB2 port, or booting from another medium.
Unlimited Graphic Design for less than $10/day
Other interesting currencies to look into:

- The new Belarusian ruble also known as the "third ruble" which was introduced in 2016. The first and second generation ruble never had any coins; but with the third generation they introduced denominations <1 rubel, subdividing 1 rubel into 100 kapeks and minting kapek coins despite their very low value (1 kapek being ~0.0046 USD)

- In 2014, the defacto state of Transnistria (official the Pridnestrovian Moldavian Republic) introduced transnistrian ruble coins made out of plastic.
PUBG was a truly unique gaming experience. It’s just a shame that they were so slow to rollout maps and make basic mechanical changes early enough. I got oversaturated and haven’t played it in about a year. Just can’t dedicate 15 mins on a single match to die from technical shortcomings.
What The Fax?! Hacking your network likes it's 1980 again [video]
Idea for HN: Training an article summary bot as a community
If there is no world class article summary bot, perhaps HN could crowd source one: if every article had a comment which was the 'result' of the current bot and this result was corrected by HN readers who read the article and this corrected result fed back to the ML system behind the bot, perhaps we could make something useful.

What do you think?
Release doc? This is some random person's blog.
> it's not unheard of for places to sell quality marijuana for as low as $48/ounce, which is very cheap

When I look at other dried herbs on amazon, they're much cheaper. E.g. thyme is about $10 for 12 ounces, oregano is $13 for 5 ounces.

Weed obviously has higher taxes, more regulation and I presume a smaller market (most people consume culinary herbs as part of their diet, not everybody consumes weed). But I'd expect the price to come down once the regulations disappear.
Common in my experience receiving goods on delivery. Take your time. They understand.
I don't think it's a problem at all except for the small issue that PUBG is an Unreal Engine game and there's a possibility that Epic's inside information about PUBG benefited their development of Fortnite. It's all just speculation (and a settled lawsuit?) but it's an awkward piece of the genre's history.
The way I think about comments is that you should always be able to articulate what the consequences of deleting any line of code is. If the code itself is insufficient to do that, it needs a comment.

There are three kinds of comments: why, what, and how. How comments are almost always a sign that the design is poor or the complexity is too clever. Why comments are necessary to understand the code and are almost always a good thing. What comments can be useful guideposts for skimming code, but they are also extremely prone to code rot. I suspect what comments generally end up being neutral in a net value proposition.

You want a high ratio of why comments to code, but I suspect most high comment-to-code ratios arise from what comments, which severely attenuates the utility of a pure comment-to-code ratio.
Wow, that's great. I wish we had such great service here.
> HTTP and TCP/IP do not provoke "child like" wonder and curiosity, because they can be understood by everyone. In other words, they provoke a more mature sense of wonder: one that is backed by a fundamental grasping of the technology, which means people also understand the challenges associated with the tech. The fun is in overcoming the challenge.

It's precisely the same with blockchain tech in every respect you've described here. And indeed many of us did (and still do) have a high degree of wonder over what's possible with HTTPS and TCP/IP more generally. The "child like" part comes from the realization that the species is indeed undergoing a rapid maturing process, and that the internet is a part of our collective childhood.

> With shitcoin technobabble: little to no effort is made to explain the underlying tech with useful analogies (often times, because there isn't really any underlying tech, or because the tech is actually only going to benefit a small proportion of "users").

Did this person just tell me that I have used too few analogies? I strongly suspect that you actually have no idea who we are or what we're about.

There is nothing about this part of the comment that reflects a mature and educated grasp of this topic.
Gold was considered trustworthy because it was rare. The earth's crust only contains a small amount of it. The attack that people were worried about was the government creating a whole bunch of currency and insisting that it was all valuable. They couldn't do that with gold, so gold was trusted.
Remember Victoria Taylor, Reddit famous for being in charge of AMAs? She joined Cake a couple weeks ago to get conversations going with fascinating people there.
Maybe the true measure of having #4 is being someone who can magnify others who don't already possess all these traits.
Note to others: 3rd order is not necessarily 10^10^10. It can easily be 10^100^1000.
That is the exact thread that prompted me to buy the book.
> This algorithm doesn't work if you have multiple nodes

Then what's the random part for?

> Yes, this is what I meant by reserving some bits.

What I'm saying is, if you separate it out into an increment-field and a random-field, then you need a lot of bits and you need to fundamentally change how it works.

If you merely make sure your random number starts below some threshold, you only need 1 bit, or a small fraction of a bit. You would still increment the random number, but you wouldn't have to worry about hitting the max value if you always start between 0 and 2^79.9, for example.
Won't removing time bizs increase the chance of collisions?
UUIDs rely on a lot of randomness to avoid the issue, but in ULID this is much more limited, and the timestamp fills in for some of it, afaiu
This article is just a poor ad attempt for the author's commercial products.

I don't mind when someone advertises their product through a good article, but this was way too condescending.

The title is also click bait as in he only occasionally writes extremely basic static websites for his own products.
Washington state took a careful evaluation before putting rules in place. They decided to target a certain percentage of the black market, both in price and distribution. Two years in, the supply is ample for the legal market, businesses are profiting and the state is making money.

The fear was was that nobody would pay for a more expensive product if you could get it cheaper, but customers like the idea of buying a product with a consistent price and quality.
"Purely financial" things can also be political and discriminatory.

https://en.wikipedia.org/wiki/Redlining
Hmmm.

The original article this was republished from is here:

https://theconversation.com/vitamin-d-a-pseudo-vitamin-for-a...

The third paragraph of that article says:

The largest ever clinical study on the benefits of vitamin D
in preventing fractures is now reported in the BMJ, with over
500,000 people and around 188,000 fractures from 23 cohorts
from many countries.

With a link on the "largest ever clinical study" text to:

https://www.bmj.com/content/362/bmj.k3225

The article presently pointed at by HN (on sciencealert.com), is a re-publishing... with the link removed.

Seems kinda dodgy. :(

HN mods - It'd probably be better to link to the original article, as the sciencealert one looks to have specific, strategic problems. ;/
Databases provided by IBM[1]

1: https://en.wikipedia.org/wiki/IBM_during_World_War_II#Critic...
if you use krita for painting, artstudio pro is a pretty good alternative. i've found it does pretty much everything i'd want out of photoshop & also has .abr support. the biggest downside so far is that it eats through battery much faster than any other ios application i've tried.
Is anyone else the backend version of this? Instead of using Docker, Kubernetes, AWS, etc. write your own bash scripts to provision servers, deploy code, etc.

Instead of using fancy monitoring frameworks, just have a cron job that SSH into all your servers, and send an email if disk or memory usage spikes too high.
The poster above was talking only about banks screwing up, not fraud or identity theft.
I found your comment to be flippant and condescending in way that doesn’t drive this conversation forward, especially since you don’t back up your argument. Perhaps you could fix these?
You are quite right that IPv4 is exhausted and unobtainable. Moreover, your intuition about IPv6 is also correct, though I would argue the lack of Internet-scale protocol translation is what actually destroys the IPv6 value proposition.

The limitation you point out is not actually in BGP but is, instead, a matter of convention: ISPs will, generally, accept prefixes longer (smaller) than /24 but will not advertise them to other ISPs, in turn. This convention arose out of the need to mitigate the steady increase of core routing table size--as did CIDR, itself, and VLSM before it.

While not ideal, most organizations use DNS for failover of individual, redundant hosts from one address to another. Of course, you may find this unsuitable for your use case, but if the users of your host's service are "the Internet," then the only alternative is to mediate how those users access the host, either by inserting a proxy or creating redundant connections with a custom client on the host.

If you can provide more detail regarding your specific requirements, I may be able to elaborate further, more bespoke alternatives.
A life of pain and suffering on a factory farm is worse than a natural life, where there is at least the possibility of joy and natural behavior. The only thing many factory-farmed animals ever touch is steel, concrete, and their own waste; they never see the sun nor feel the wind. Many are artificially inseminated, so they don't reproduce naturally. Many never see live plants, let alone eat them, so they don't feed naturally. Many live in cages so small they can't turn around or stand up, others so packed together that they go crazy and resort to cannibalism. To mitigate or prevent cannibalism, pigs and chickens are mutilated in various ways. From lack of exercise and intense weight gain many can't stand on their own for the later portions of their short lives. The scale and degree of cruelty that factory farming inflicts on animals is really incredible, and I think it says something horrible about humanity.
Oh man, for some reason Epic Games and Epic MegaGames were distinct in my head. Two companies, one which made ZZT, Jill of the Jungle and Jazz Jackrabbit, and the other which starts with Unreal.

I loved ZZT back in the day.
Gaming with an EGPU on Linux: Is It Worth It?
Rich people buying their way to good scores is probably a feature, not a big.
You want an IPv4 broker. Do a Google search. You can find several firms selling IP blocks. The going rate is around $20/IP, or about $5K for a /24 (class C.)

I believe you will still need to be able to justify the need for the address space to complete the transfer. "Justifying" a /24 should not be difficult.

(I've owned a /24 since the early 90's...)
When viewing HN in Firefox Mobile on Android, this submission's title has a square with "OBJ" in it after the word Kanren.

Is that intended? It doesn't look like the "your device lacks this Unicode character" glyph.
Multipaint
> As for wayland, as far as I understand, it does not support network forwarding (yet?)

Indeed, because Nobody Uses That.
Ah, that's an interesting breakdown.

For me, those numbers boiled down to "a Tesla M3 is $10k cheaper than an A4 because it gets $10k of government rebates"

- 7500	: Federal tax credit
- 2500	: California rebate

Of course, the argument is that fossil fuel vehicles are the beneficiaries of unaccounted-for negative externalities, and that these rebates rectify that somewhat. But it's interesting that the A4 would otherwise be comparable. It seems that as long as the subsidies exist and it's mostly Tesla benefiting, it's in Tesla's interest to keep the price up at a level where this is the case -- where they're only cheaper due to subsidies.