skysight-inc/HackerNews huggingface dataset:
I think I have 1, 2, 3 no problems after 35+ years of programming -- I still love it, I still learn stuff, and I'm shockingly experienced in a rather large amount of subfields.

The problems is #4. 1,2,3 are 'easy' given time and someone who's dedicated and actually LOVES that job.

#4 requites two (at least). In my 35y career I can count on the fingers of one hands the time where I really, REALLY "clicked" with someone and we both ran away with it. Needless to say, in all the cases, we still are on each other xmas card list, regardless of time/space.

But that's the scary bit, to really, REALLY "collaborate" you need someone who's already pretty much 'there' on the 1,2,3 listed there, and the chance of meeting someone like that is low. I don't say it's 'rare', I say it's 'low' and if you factor other things like personality, lifestyle and so on, it makes it actually 'rare'...

I treasure the people I can collaborate with, because it's magic. It's like, as a musician, when you jam and the band just 'gels' and stuff starts happening, it gives you a little shiver in the spine area that is unique.

But hell, it's rare.
Walt Disney's 1935 Memo: How to Train an Animator
Strongly agreed. Wrt. comments, the more I read this file, the more I see it as a reference of how good code should look like.
You must be new to TechCrunch articles.
Inside Facebook’s Secret Rulebook for Global Political Speech
And how is that different than paying full pin at Tesla?
Well, let's consider an example from this very code:

// The binding is two-step process. PV.Spec.ClaimRef is modified first and
// PVC.Spec.VolumeName second. At any point of this transaction, the PV or PVC
// can be modified by user or other controller or completely deleted. Also,
// two (or more) controllers may try to bind different volumes to different
// claims at the same time. The controller must recover from any conflicts
// that may arise from these conditions.

How would you rewrite the code so that this information was explicit in the code alone, and as obvious as when it is stated in these comments? Note that simply being able to handle any conflicts that may arise from these conditions is not necessarily the same as saying that they can occur and must be handled, as any particular implementation is invariably an over-specification.

As for redundant comments explaining the obvious, that seems to be something of a straw man, at least in my experience - personally, I have very rarely seen such code. The person who is not motivated to write useful comments apparently prefers to write no comments rather than useless ones.
I'm not sure that reducing the comments-to-code ratio by increasing the complexity of the code really helps anything. You've made the code more generic for what you currently think future changes are going to look like, which may or may not be accurate. And in the process you've split dateIsOnLeapDay and convertLeapDayToPreviousDay into separate functions, so if someone is tracking down a bug in line 10, they need to jump to lines 20 and 21 to figure out that the associated code is in line 15 (think "wait, did you say leap day? I meant leap second"). In a large program these would get even further separated over time - someone is going to decide that dateIsOnLeapDay should be in a common utils class because they want to use it somewhere else - and I think there's a lot of merit in keeping lines 4 and 5 next to each other.
Sears may be down to its last 24 hours
Oregon Man Becomes First Person to Cross Antarctica Unaided
Is it stealing? Should there only be one battle royale game? Should there only be one racing game? Should there only be one FPS game?
It also doesn't help that almost all arena shooters support cooperative team deathmatch, capture the flag, etc. The only difference is a lack of role specialization between teammates.

But the scene isn't as big for those as it is for 1v1, because its already overwhelming trying to track two people operating at peak performance, let alone 8 or 12. Its a niche of a niche.
> I called three dealerships in my area and confirmed if they still had the vehicles I’d seen in their inventory on their website.

A new bait and switch technique I saw with a friend. Once they had him interested, they changed the location of the vehicle on AutoTrader to be about 250 miles away (so it wouldn't show up in default searches) and they could claim "they didn't have it any more" (and then of course say "no, you're mistaken, it's not that price", or "I'm not seeing the car you thought you were looking at...").
Is it odd that the control room is completely empty except the leadership?
IntelliJ ultimate with php plugin, it’s basically phpstorm but I also use the python and some others.

A single unified IDE for everything makes sense to me.
Ask HN: Is it possible to create placeholder accounts?
I want a feature of my app to allow me to add a friend using their phone number, even if they're not a member, then also allow me to send them a message in the app. So when that friend finally signs up with that phone number, the message will already be waiting for them, in their inbox. As if they'd be claiming a dummy account. Is there a name for this or any way of doing this?
>But the closest I ever came to using a functionally developed product was RabbitMQ (written in Erlang). That one was _such_ a pain to use and operate — must have been the developers still dreaming in the purity of its code instead of writing some installation docs. I moved on to Kafka later and didn't regret it a minute.

Err, RabbitMQ is one of the easiest to setup and stabler queues/messaging systems. And I'm no user/fan of Erlang...
> "Putin says Russia was forced to develop the Avangard after the U.S. withdrew from the Anti-Ballistic Missile Treaty in 2002,"

2002 - 16 yrs
Researcher publishes proof-of-concept code for creating Facebook worm
This looks like pretty normal code. What is all the “space shuttle” stuff about?

The only unusual things I see are a) 8-space indentation, b) lots of “if err { return nil }”, and c) lots of comments.

Aren’t a) and b) standard for Go? How else is it possible to write Go code?

With less verbose error handling and 2- or 4- space indentation it wouldn’t look especially “branchy”.
https://waxy.org/2018/12/why-you-should-never-ever-use-quora...

https://konklone.com/post/quora-keeps-the-worlds-knowledge-f...
May I say there's something _poetic_ in the whole thing?

The way the petals open to release the animal is touching, and resembles how you'd free a butterfly that has come to rest on your hand.

Deeply fascinated.
It's a small quote from this [0] article.

[0] http://www.ethanhein.com/wp/2018/white-people-with-acoustic-...
Shorter sleep can lead to dehydration
If Visual Studio Code, which is open source software I use daily and have not audited, tells me to update and I lose something of value to me from it, I'm going to be furious.

You can debate about the "real value" of Bitcoin or lack thereof, but I'm sure it had "real value" to the people who lost it. If people will pay $5 for Bitcoin, its worth at the time is $5, if $3,000, "real value" is $3,000. But that's besides the point.

Again, I've never really used Bitcoin and don't find it particularly promising, it's not my hill to die on. I do care about an issue like this, though.
You missed the E in Result<T, E>, by the way.
Ask HN: What about Python makes it popular for ML?
I don't have experience with Python, but from my only superficial point of view I don't see it much more powerful or flexible as a VHLL than, say, Ruby or Perl. What made Python the high level language of choice for machine learning? Was there just a couple influencers at the industry that decided to build ML libraries for it because Python is already a familiar language to them? Would the language choice been immaterial if they were working with a different high-level language?
I think another issue is that aside from the cost of sending the advertisement (usually negligible) there is no risk cost associated with the volume of advertisements being too heavy. The user in question is one who has discontinued your service willfully, so if a heavy volume campaign converts 2% back into active users and permanently fatigues the other 98% then it's not unreasonable to see a gain of 2% of users for free - assuming you were ready to write off that full volume as potential customers prior to the campaign.

I also would be absolutely unsurprised to learn that "participating in your service to shut your emails up" is a tactic seen as legitimate by some companies... (facebook, I was talking specifically about facebook because they are terrible)
I hate this kind of argument. "Oh no it's my money, I don't want to pay for these fuck ups, I pay for my own healthcare and I work hard". Dude, just help the people around you, don't tell me you couldn't leave with less money.

This kind of selfish mentality needs to go away.
AFAIK historically people could use shells like money although there was no central bank, no taxes and some random people could occasionally "issue" new with the help of the sea. Any token that is reasonably convenient to be used as money and is not too easy to issue can be used as money. The idea that taxation is what makes them valuable looks pretty bizarre to me.
> lookup H1Z1

That's what the grandparent was saying: Brandon Greene, the man mostly responsible for PUBG was also responsible for H1Z1 (SOE licensed the Battle Royale mode from him for H1Z1 and hired him as a consultant):
https://www.pcgamer.com/battle-royale-modder-brendan-greene-...
There is already Problog with probability and logic. Could somebody help me understand benefits of Kanren?
>People like this, even if many don't want to admit it to others (or themselves)

People only like the cheapness and the convenience (and perhaps the no-surprise factor).

Everything else being the same (price and time to prepare), nobody would eat McDonalds vs a quality burger (except the kind of people who eat Hot Pockets for the taste, but that's a much smaller demographic than McDonalds buyers).
OP wrote clearly that this is anecdotal data.
I am suddenly SO curious about the PINBALL_GAME stuff, but I couldn't decipher what it was referring to.
Kubernetes, eh? (strikes through its name on my list)
Honest question: Why do newspapers, NPR, etc. often refer to pot possession / sales as being legal in California and some other states, when they're clearly illegal under federal law?

There are numerous other behaviors that IIUC are illegal under U.S. federal law but are not proscribed by California law, including: aircraft hijacking, carjacking, credit card fraud, and possession of destructive devices such as missiles and poison-gas weapons.

And yet I don't hear those same news sources referring to carjacking, etc. as being legal in California.

The cynic in my suspects that those news organizations are intentionally choosing language to push their own agendas, but maybe I'm totally missing something here.
Is someone not familiar with the code competent enough to decide what is a "simple error check" and not a bug? This is very weak as they suggest that even the branches that would result in no-op are accounted for. So if someone introduce a code with a branch that is unaccounted for that automatically means the code is either faulty or is a "simple error check". With something supposedly trying to be a space shuttle worthy code the lack of definition of "simple error check" is very worrying. Would I want this code to fly me to the moon? I'd be wary.
AirPods get stuck in low-quality 16 kHz audio mode when starting a VM
Now finish UT4!
Instead just generate the word list, which is what you need anyway to put your handmade key into the hardware wallet. Pick the words by some truly random method, like Von Neumann coin flips or picking words out of a hat. The last word is (partly) an 8-bit checksum made by cryptographic hash of the other bits; the easiest method without using a computer is probably just to try different words in the hardware wallet until one works. With the Ledger at least you'll have to re-enter the first 23 words with every attempt, so on average you'll be inputing 128 * 24 = 3072 words; at ten seconds per word it's 8.5 hours of focused effort.
"comply for everyone's good"

Nope. Some of us dont appreciate the EU thinking it can regulate what events one can remember.

It's annoying enough getting these dumb EU cookie popups.
Agree - I live in SF. A few months ago, after leaving my local dispensary, I was standing out front looking up directions. The dispensary security guard politely asked me to move along. I don't know where the OP is from, but around SF you actually can't loiter around the stores.
Cool. I'll see what we can do (or comment out) to make it work with a scrollbar on the right. Thanks for your feedback!
I need a ride too :)
I would add an additional F, Family. It might mean getting closer to your siblings and parents, or it might mean working on your relationship with your partner or kids, when everything is said and done this one probably is the thing that most people are happiest or saddest about when they look back on their life.
This is great!, but.. IJKL instead of HJKL for char movement will keep vim users away, so it doesn't really have emacs nor vim keybindings (nor sublimetext, vscode, etc..), this can stop lots of users from giving it a try IMO. Not implying that there is anything wrong with that if the author desires it to be that way.
You've missed d) the codebase lives longer than a few months and someone else than the original author has to make changes. Comments describing the intent and caveats are extremely useful in ensuring the future developer gets adequate understanding quickly, and reduces the chance they'll introduce bugs.

Tests can help understand the interface, but they don't help to understand the rationale behind it, the underlying abstraction, or implementation caveats.
I don't believe housing is the issue. Housing is the distraction. The real issue is that the US incentivizes disparity. Shitty minimum wage, no car = no job (lack of public transport), no universal health care (health issue? Your life is over) and no free education (no money and no good grades? Good luck)
Facebook’s Secret Rulebook for Global Political Speech
That's close to my procedure but last time I did car shopping two dealers made me come in and after an hour of paperwork it turned out that they didn't keep their end of the bargain but added 1000-2000 to the price. I walked out but still wasted a lot of time. Only the third dealer stuck to his promise afte a little amount of negotiating.

Buying a car and medical billing are the sleaziest businesses I have ever dealt with.
Three Amazing Sci-Fi Writers Talk About the Future
Funny, but I still use a 6-month cash-flow spreadsheet broken down bi-weekly. I teach my children about other tools, and what they should learn about to do it better, but if you dutifully keep a 6-month to 1-year cash flow spreadsheet, you are leagues ahead of the average person. It was the first tool (started in my thirties, and in my mid-fifties now) that made me avoid waking up to a negative balance, because I couldn't foresee expenses coming in right before my paycheck. I admit I haven't done much beyond this, however, compared to my parents, I am doing much, much better. I can only hope my children can write the same twenty years from now!
Sorry, next time I’ll just stay quiet and let someone continue to think that censorship was invented by Patreon and Twitter.
> supermarkets increased the price a little bit explicitly to help them out

How is this different from normal supply and demand?
Why? Does this file/comment cause you to lose confidence in the project in some way?

I'm genuinely curious to understand the reason for your comment.
My comment was directed to the OP's question of comment:code ratio in general, not in this exact circumstance.

Additionally, in no way am I advocating for no comments, that's obviously not possible (like your example). Comments are useful, even necessary, for code that might have an otherwise confusing logic to them.

I've seen plenty of code with documentation for a method with nothing more than:

/**
* Bills the user
*
* @param user The user to bill
*/
public void billUser(User user) {
//
}

In my opinion, that comment is completely redundant, and I think it's driven by the idea that we should comment EVERYTHING.
Every salesman had a kid the same age as the customers or a cousin who worked at the same company

I had a sales manager at a used car dealership tell me he went to the Air Force Academy (my alma mater) after he asked about my college. Little did he know we have a "secret handshake" of sorts, which he was completely clueless about. Ended up calling him on it and he backed off of his high pressure sales bullshit.
Breaking things down into smaller pieces is good when it’s good... but there are drawbacks that I feel are often ignored.

For example, as you say, a small piece of stand alone code implies that someone can do meaningful work on it without understanding the entire context around it. It also implies that it is suitable for reuse. But if it’s both reused liberally and encourages you to keep working on it, it will almost certainly mean that your changes will have unanticipated consequences. So you still can’t get away with being unaware of the context.

When you break things apart you also fossilize that way of approaching the problem, which often makes it more difficult to see orthogonal approaches and refactor towards them later. Instead you keep working within the structure that’s already there, which often leads to concerns being spread out across different modules. Too often people decide on the structure before they even understand the problem.

I think it has similar problems as religiously following the DRY principle. There are so many situations where your code will be much, much worse if you insist on always sticking to DRY.
For deep learning specifically, the TVM project (http://tvm.ai) is a substantially more advanced project than Halide, with a much larger community. I’d highly recommend checking that out.
It should be sustainable for patients to directly pay for the provider for the services directly for most medical care.
I also like the “trashy little subroutines” comment.
It is explicitly legal in WA, CO, CA and others. Those states have successfully passed laws to this effect. Because the feds don’t/can’t enforce the federal laws prohibiting cannabis on residents of those states, it is for all intents and purposes legal, no scare-quotes required.
Not about to duplicate a complaint that has dozens of pre-reported instances, none with an answer, no.
Are you referencing "Hallucigenia"?

https://www.nytimes.com/2015/07/07/science/hallucigenia-camb...
Not true in the UK, McDo really ain't that cheap anymore (or perhaps I'm poorer than I think).

The better burgers made by large commercial chains are more expensive though.
Now that's an excellent point, I agree. However, at its heart, Kubernetes does not even have that many distributed features. It's a rather classic master-slave architecture that shells out a lot of distributed primitives to etcd (which could be a much better candidate for the points you mentioned), but on the other hand, it's a mainly a system orchestration system that juggles an operating system, syscalls, SECCOMP, firewalls and related stuff — exactly the area where Golang shines and Haskell would have a rather hard time.

In this way, I rather like the tradeoff that the OP post shows: It's at least _possible_ to write Go code that's almost as defensive, safe and exhaustive as a safer language could provide, it's just a lot of manual work and discipline. For the small subset of code that needs these guarantees, it's possibly overall more consistent and efficient to take this route than splitting code into different languages with different strengths.
I only see rational disagreement. Sorry that this discussion is making you emotional.
The paper that the article links to is this one:

https://www.ncbi.nlm.nih.gov/pubmed/24729336

That quote appears in a sentence near the middle of the "MAIN RESULTS" section.

The sentence you quoted does not disagree with this at all; it's unclear what it has to do with the "supplemental D has no benefit" argument.
They solve roughly the same problem. Snowflake is able to create 64-bit unique IDs at the cost of needing a central coordinating service, this format uses 128 bits for IDs which lets them be created independently as long as you have the correct time.
I disagree. I like the taste of McD!burger and I like the taste of foodtruck!burger. They are entirely different tastes; sometimes I want to experience the former, sometimes the latter.

No-surprise factor isn't that big of an issue if you're buying; restaurants tend to have consistent food quality & taste too.
An Intuitively Complete Analysis of Godel's Incompleteness [pdf]
It's really odd to watch people see them as "the Fortnite company" and ignore/discount the Unreal engine, etc.
> Swift on Linux lacks the Objective-C runtime and therefore the Objective-C-based Foundation and Cocoa frameworks. In their place, the Swift project has been creating a pure Swift replacement.

Clarification: Foundation is being reimplemented in Swift. Cocoa will continue to be written in Objective-C and be macOS-only.
Will Durant? I've always liked that quote.
Health insurance has ridicolous margins? Whats your source?
Click the RSS feed or the homepage. The archive is only to essays. The more frequent link summaries keep his audience engaged between essays.
Nothing of relevance happened.
Comments straddle this weird line between code and human process. They're in the source code files themselves, and there is an appeal to trying to evaluate a project by looking at the source code alone and trying to gauge abstract technical merit. But I think the real truth here is that comments are a tool in the service of a development process, which includes things like having code reviews, having code reviewers be sufficiently motivated (intrinsically or extrinsically) to care in useful ways and neither nitpicking nor rubber-stamping, having motivated people on the project in the first place, having shared values about what code you're going to write and what code you're not, having tests and doing the operational work to keep tests running, retaining people on the team, etc.
> So yes, just because you use a functional programming language won't help you sell your widgets or make a great product. And you can spend lots of time fucking around with it for its own sake and still not sell widgets or make a great product.

It comes down to trust. You're either fucking with your code in a powerful programming language that lets you do everything, or your fucking with the language restrictions to get your code to compile in the first place.

You can either go eat at McD's which sells pre-cooked burgers from minimum wage employees which kills the flavor and the taste of the meat being served but is extremely safe, or you can go to an upscale burger joint where artisans grind their meat in house and cook it to a perfect medium rare.

These days, I prefer the latter.
"are willing to pay $100 over the manufacturer's invoice. "

With the two new cars I have bought so far I paid substantially under invoice both times. Seems a made up number to me.

I also paid cash each time and they begged me to finance for three months so they would get more incentives from the manufacturer.
Why must they have? Part of what distinguished the Mac GUI from PARC’s is the former’s refinement, elegance, and whimsy, contributed in large part by Kare.
On a related note, please note that most people have the opposite issue, myself included. I know we are highly biased and tend to overcomplicate things, so I follow the KISS rule by heart.

But when I do have to write complex parts of software that cannot be simplified, I will take a lot longer because I'll need to prove, first to myself, that it really cannot be simplified. Then I'll still add a big warning, either to others or to my future self (which is effectively a different person).