skysight-inc/HackerNews huggingface dataset:
>Many people think their code is clear.

This is true, but if you just get these same people to write more comments, they will also think their comments are clear when they're, in fact, not. I think anyone who is capable of writing clear comments is also equally capable of writing clear code.

If I was to suggest investing time in learning some skill, I would suggest learning how to make your code actually clear by getting the right people (with relevant domain expertise, but without experience with the code) to critique it for clarity rather than learning how to make your comments actually clear.

Why questions are best answered in architecture documentation, the code itself should be self explanatory (given the architecture documentation) for the most part with specific why comments carefully placed in places where it doesn't make sense to use the architecture documentation.

I've read code from various codebases from various companies, large and small. I very rarely see a comment which is genuinely both well placed and useful. From the bits of the linux kernel that I have worked on, I have generally seen pretty good why comments, although I think a lot of them could be shifted into architecture documentation.

All in all, when reading code, my default stance is to ignore comments unless I get lost reading the code, then I attempt to read the comments. It has been incredibly rare that I've found unclear code to have clear comments.
Reenactment, LARPing, competition fencing swords sure - but do people buy real swords with modern materials?
> Hope this isn’t taken out after this first run.

did something like that happen a while back?
https://archive.ph/aCUuj
>I think they innovated in giving users what they actually want in the algorithmic feed.

People underestimate this. TikTok's algorithm makes the app enjoyable to use while most other algorithmic feeds make their respective service less enjoyable. I imagine that is because TikTok factors in other criteria beyond active engagement. At this point we all know it is easier to trigger active engagement through negative emotions. By simply prioritizing any engagement, algorithms like the ones used at Twitter and Facebook end up prioritizing content that delivers us those negative emotions in order to get us to engage. TikTok's algorithm also factors in passive engagement like the dwell time you mentioned. That ends up creating a more positive user experience because it actually learns what we like instead of just what makes us reply angrily.
Forever.

With Spotify's subscriber base, the rights holders will never let them die. Universal, Warner, Sony, etc will adjust royalties up and down while still keeping the catalogue healthy enough to keep the blood pumping so they can continue their perfect leech, and never kill the host.

The podcast business was a shot at breaking this cycle, but it's unclear if it's actually working. If they make too much from podcasting, I don't see why the big 3 rights holders wouldn't just raise their rates to take them back to break-even.
You can’t possibly know what future people in the community may want and can only justify your own opinions about what ought to be by projecting them on these hypothetical people. If anything the evidence says differently as the people living in a community today were the hypothetical people in previous years.
Enterprise Managed Users solves the issue.
It's not pretty https://en.wikipedia.org/wiki/Synaptopathy

Imagine any dinner conversation in America could enter into any other dinner conversation as desired - it would probably saturate into a meaningless cacophony and all relevance and context would get lost.
So I'm not an expert, but for simplistic use cases I merely make use of https://github.com/oguimbal/pg-mem

It's a lot faster and easier than dealing with containers and the like.
More in private, but not the difference on an hourly basis is not necessarily that much.
This is a good point, although it’s worth noting that there are definitely cases where you want the sun table to be materialised (esp. when that table is small and referenced many times)
You'd have better luck getting a grant and just writing it for one gov agency with the caveat that you get to open source it.
Show HN: What do you want or expect from an antidetect browser
Hi HN! I'm one of the creators of MoreLogin and we're happy (and once again very nervous) to release this on HN. MoreLogin is an anti-detection browser, and the fact that there are already many anti-detection browsers on the market, even though we've been iterating on our anti-association capabilities to reach the top tier of the market, doesn't seem to feel like much to users. We have also thought about developing features specifically for crypto users, such as specifically developing trading platforms and wallets that can connect to mt5 and coinigy, and making automated trading robots to support them, as well as developing features specifically for marketers, such as ensuring the success rate of account registration. We think it's a cool idea, but it's all just based on our own ideas and we really don't know if it's useful and if people will pay for it. So we wanted to see what needs people had for this kind of tool, this kind of browser, and what we could go to meet them.

Here's the intro video we made a while back - https://www.youtube.com/watch?v=hW4O8yXe4r4

Any feedback or questions are welcome! :) Thanks!
"routine stuff" probably isn't the best term to get people on the same page.

You talk about availability in a couple other comments; at my provider, I can usually get an appointment with my PCP within a couple days, vs almost certainly waiting at least 30 minutes at the urgent care.

I think the last routine thing I went in for was a sprain evaluation (I wanted advice on strengthening the joint more than I was expecting any immediately useful treatment). There wasn't any urgency there really, and I wanted to discuss it with the doctor. If I thought I needed antibiotics for something I would just go to the urgent care.
Can someone who knows more than me tell me whether "negotiate with compliance to disable those devices for a single day two months in advance so the ensuing shitstorm only costs $10 million" is a working solution?
You do not understand SQL. HTML and SQL are essentially unrelated. It would be to your benefit to spend some time reading and learning on these topics.
Or remove unnecessary things that add cost. Ability to buy drugs on the open market (including India), capping insurance payouts, reducing intermediaries, adding more people to the service side of things and removing people from the administration side.
Seems like you can read this 2 ways, the additional way being allowing workplace relationships that have a touching component to it. Regardless of how appropriate that is at work.
Sam Bankman-Fried accused of possible witness tampering [pdf]
in production, on a friday before I leave for vacation

for real though I love tools like SequelPro or TablePlus that let me work out a query before I bake logic or stuff into my apps. Also sometimes I use it to work out the data needed for reports. I am working with salesforce for the first time in my life and apparently there are tools that let me treat it like I'm used to SequelPro.
>Order in sentence may be unimportant but it may not be clear which particle you are supposed to choose. Even native speakers regularly screw up particles and particle use has high regional distinctiveness.

Native English speakers use the wrong prepositions all the time.
That's even better lol.
"For starters, the new paper will be a 'paper' paper, printed and delivered by mail and carrier to subscribers, and available for single-copy sales at local advertisers. If Nader has his way, the website will be a sideshow to the printed main event, as he believes digital publications fail to engage readers because they’re too cluttered and abbreviated. Plus, he said, the 'real decision makers' get their news in print."

Is this true? My God it might be true. Real decision makers are old born pre 1970? And have never really used only online tools without paper?
It’s not that much work
I think the detection performance is bad enough that it might just degrade chat
I’ve had lawyer patients just giggle at the fact that I’m near the top of the income rankings in Australia. ‘Clearly doctors don’t hide their income very well!’

Patients pay less, and I get paid relatively more in Australia (less in absolute terms than the US). There are fewer middlemen clipping the ticket.
Differences Between iOS and Android Mastodon Clients
This claims Atari Jaguar support, but I've never seen it. Does anyone have any links to video or imagery of it in action on that platform?
Sorry, it is unclear if this comment is AI generated or not, I can't give you full credit for it.

(No seriously. "The classifier considers the text to be unclear if it is AI-generated.")
Do you just leave the gaps open where the hinges were, or are they covered somehow?
I love it! a filter to search based on if the knives have an emerson opener would be a cherry on top.

Also a filter for if the knives had assisted opening.
Ask HN: Is it still safe to use Stripe?
I heard a lot of shaky news over the past year from Stripe's customers: [0], [1], [2]

Now there's news about the whole Stripe raising more money [3], [4], [5], eyeing an exit within 12 months.

What does this mean for Stripe customers now and 12 months from now?

I would like my payment infra to be stable, boring, and profitable/sustainable.
But the news is giving me mixed impressions...

[0] https://news.ycombinator.com/item?id=32261868

[1] https://news.ycombinator.com/item?id=32854528

[2] https://news.ycombinator.com/item?id=34233011

[3] https://www.nytimes.com/2023/01/30/technology/stripe-thrive-funding.html

[4] https://techcrunch.com/2023/01/27/fintech-stripe-tried-to-raise-more-capital-at-a-55b-60b-valuation/

[5] https://techcrunch.com/2023/01/26/fintech-stripe-eyes-an-exit/
There’s also the eatmydata program which does similar by using LD_PRELOAD to intercept io calls.
Artificial fact !?
I don’t know who is invested in Intel that's betting on anything but a high risk high reward underdog story comeback. Intel already was undercompensating to the point of driving the talent out of their company to begin with. These wage cuts are a sign for investors to flee faster because management lacks coherence.

Management seems to be betting on a strategy of promising the world to gain government subsidies while in reality cutting costs and letting the business wither and die and I don’t know if that justifies the valuation.
What Makes Discovery of Witches Tick?
> It also doesn't address existing economic issues with different society classes (e.g. Hindu vs Muslim)

Muslims in Kerala have a much lower fertility than Hindus in Bihar. The impact of religion on fertility in India is vastly overstated.
The comment is missing everything useful. If it was public, I'd definitely ask for docs on it:

What is the phone number for? When I read it, is it ready for display as-is or should I be formatting it? Same question when I set it. Can it be null or empty? Does or can the system use this number for anything - such as sending SMS messages?

Being static is a huge red flag, though, and even though it's private I'd still ask. Why is it static? Is this thread-safe (and how)? What context does it get set in, and when can I use it?
Sounds like a place that's not really interested in solving customer needs. :(

Most places aren't like that, at least the ones I've seen. :)
Apple Music is a better choice than Tidal and far better than Spotify.

They offer $0.010/stream versus $0.003-$0.005 for Spotify and $0.013 for Tidal.

Also offers the best quality audio with lossless up to 24-bit/192Hz without using MQA.
I think it's interesting that they have 295 million ad-supported monthly active users, which accounts for a revenue of only 449 million euros in Q4, compared to the 2 717 million euros from their 205 million premium users. That means each ad-supported user is only worth around €1.52 per quarter, or around 50.7 cents per month. That's not a lot of money, so why even bother? Why not limit the free accounts in other ways to get an even bigger difference to the premium accounts, and remove ads completely? And why are Netflix adding an ad-supported tier when there's so little money to make from those users?
What's interpersonal love got to do with it? Everyone would love 9-10 figure checks.
GNU includes glibc, which is used by most binaries in the system, including systemd and user applications. Beyond that, I think you underestimate the degree to which coreutils is used. For fun, why don't you try uninstalling them? You might be able to remove bash, but I would be shocked if you can boot without coreutils.
The OK Computer (Apple Lisa)
Oh, yeah. Sites which disable the much-loved "command-click" are a PIA. Let people browse as they will; forcing them along your expected paths is inconsiderate and off-putting.
Yes, you’ll find out when you get there. If it’s dangerous they’ll close the road.
But what isn’t a viable business today can be built into one in the future. Example, every restaurant ever opened still operating today. How do you reconcile this?
awesome, excited to check it out
And this is why you don’t rely on a closed source stack if you have any alternative.
Two days ago, everyone: “You should use SQL because everyone knows it and modern SQL is pretty good.

Other languages are too complicated. :(“

Everyone today: “tries using sql

Oh wow, the tooling is quite basic, and you can’t express complex data structures and imperative code. :(“

What did you expect?

Look, I spent 4 years in this rabbit hole, and here’s my advice:

Don’t try to put the square peg in the round hole.

You want easy to write, simple code and pipelines? Just use sql.

Have a dev environment and run everything against that to verify it.

Do not bother with unit testing your CTEs, it’s hard to do, there are no good tools to do it.

If you want Strong Engineering TM, use python and spark and all the python libraries that exist to do all that stuff.

It won’t be as quick to write, or make changes to, but it will be easier to write more verifiably robust code.

If you treat either as something it is not (eg. Writing complex data structures and frameworks in sql) you’re using the wrong tool for the outcome you’re trying to achieve.

It’ll take longer and “feel bad”, not because the tool is bad, but because you’re using it in a bad way.
Now, we can delegate such tasks, comment every functions, classes and variables to GPT-3 davinci or Codex with clever prompt as clear as possible, (ELI5, reasoning, anecdote, storytelling, metaphors, etc). I think that would definitely useful AI use case.
Good to hear that its working out for you. I'm actually having a bit of trouble keeping in contact with the active users. I put a post in the discussion area of the repo but didn't get much response. If anyone has any ideas on how to better keep in touch with the users I would appreciate it.

I agree, it needs better visibility of what is happening with the active connection. Its easy enough to use icanhazip etc. in a browser to see the active IP but that's not possible in apps like a torrent downloader or game. Someone suggested a feature to monitor data input/output in the repo discussion area so I'll tag onto that with your suggestions.
We are MoreLogin
I definitely hope omitting the frame pointer falls out of style; it's certainly a pain in the ass for reverse engineering :)
It's always acceptable. It's your site.
No.

SQL is almost the _textbook definition_ of a declarative language.

It does not define the way. It defines the end result.
Pay cuts are better than layoffs. That said, investors need to take a paycut in dividends as well.
No, the thread you replied to started with the question I quoted.
The simplest test is "who are you defending"?

Ideally, product people defend the end users. Realistically, compliance people defend the company from getting screwed in an audit and ultimately sued by the government.
If I pay for 7.88 billion concurrent streams, yeah I would expect to be able to have everyone access it
This, I prefer an inconsistent comment that can still shred light on some code than no comment at all. Code also becomes obsolete and no comment just makes it worse.
38% of their revenue is not a lot of money and not worth bothering with?
I don’t know how many people have worked on a project with JavaDoc, but it really is an incredible boon, as the OP notes, and will make you want to comment everything with quality. People talk about “poorly documented code”, which thy acknowledge is a weakness, but they don’t connect that the comments cover the documentation. If you’ve ever joined a place with turnover, having you own documentation on the magic mega project is really valuable. Yes, comments can lie, but you’ll figure it out when the call doesn’t do what it says on the box. The benefit is that you jump ahead on all cases where the comments are truthful and the code still works without issue. You might also discover that someone already written a method or tool you thought you needed. There’s huge savings from having comments and documentation. Comment and documentation can even be a way out of the bus problem.
I don't consider comments litter. Commit messages rarely have the amount of context needed for a specific block of code.
This seems really bizarre to me. They seem to want people to have the network of connected GH repositories, but this behavior promotes "forking" a project in a way that breaks that network, which is to `git clone` and then create a new repo from that clone.

To put it another way, if the user had "forked" the GH repo onto GitLab, there would be no data loss, but that behavior would promote using GH in a way that breaks the upstream/downstream relationship that you see on GH.

It's even worse that the deleted fork was private. What impact does GH expect deleting the hosted private repository has on folks who really want to keep a private copy of the repo, such as offline or on another git hosting site? I'm really struggling to see any real-world positive sides to this mechanism. Seems like an ineffectual legal or compliance CYA.
Yeah, its definitely one of those things where it is worth reading the docs [0], and not just adopting an “always do it this way” rule of thumb.

[0] https://www.postgresql.org/docs/current/queries-with.html#id...
> We fought hard for 90+ days internally, but in the end couldn’t get over the issue that we’d be in violation of our contracts with customers.

Contracts with some customers, surely? You could have the default be 90+ days, then those customers whose contracts specify a shorter timeframe get that shorter timeframe configured on their account instead. You could give the customer the choice at signup, and let them change it later using the settings console. If their contract doesn't specify a period, send them a notification that you will be changing it to 90+ days, but telling them they have the right to object if they disagree with that.
Awesome. Just yesterday I used Wireguard in my Windows laptop. The one acting as the gateway is using a dynamic public IP. So I used Dynamic DNS service for the client to connect to. The problem is when Public IP is changed by the ISP, Wireguard VPN tunnel failed because it keeps the old IP.

Do you have/plan this kind of feature? I mean Wireguard Client will check the Public IP of the Wireguard Server from time to time?
+1

The hover effect, too. Nice experiment to learn something, now it's time to burn it with fire.
Only when your system have fonts exactly as used in pdfs
The "Medicare can't negotiate drug prices" is about Health and Human Services not being able to negotiate prices. The companies they contract with to operate Medicare Part D are free to establish formularies and negotiate prices on the open market.
And I have, and yes it’s completely possible during a time of war. In all other cases you have at least 2 years in jail. Followed by an inability to get a decent job following a discharge under less than honorable conditions. That’s your second ability to compel. Either way your life is over.
Nick checks out?
2. Is very applicable to workarounds often linked to 3rd party issues.
There's likely contaminants on the surface of the battery which, when water is added, become conductive.
this would be a newsletter I would actually read
Ask HN: Which Discord servers are you on?
Because WASM supports capability based security and thus never trusts code to do the right thing. Unlike every single one of it's predecessors.
I... i dont even think there's a way to have conversations here anymore. There are undoubtedly people here who work for countless startups that do thr exact same thing, use countless products that work the exact same way. And yet, 2 threads a day about how Netflix implementing something theyve warned about doing for literally years.

Lol! Its like this site having more pity for consumerist tech workers that pissed away hundreds of thousands a year versus rhe empathy displayed for otherwise actually poor, disenfranchised folks.
SQL is absolutely a declarative language. It is practically the textbook definition of a declarative language.
How did you approach the data population? The images of the knives are all consistently positioned, which is impressive, and there seems to be a decent amount of structured data for the number of entries you have
"Comparing to html is nonsensical" No, absoltely not. We are speaking about programming paradigms. We can speak about those without computers, we never have to speak about HTML. A food recipe is a program, what you are executing when you cook, and it is imperative. Going to the restaurant you can achieve the same (the dish) but in a declarative way.

But I compare SQL and HTML for you. In both cases you are creating a text/a script in order to achieve something. The way how you achieve this can be really different in HTML and SQL. You can create a chess algo in SQL, but you cannot in HTML (purely), because in case of declarative language the framework around it strongly limits what the language could do. How would you explain this, if SQL and HTML are the same by nature? Focus on the text you write, because that is your product. Where is a condition is HTML, and why there is not?

Bitmap (like all data: xml, csv, whatever) is not a language in a classical understanding, but if you wanna make it, yes, they are purely declarative.

"It is not a declaration of what you want, but is a definition of what you have"
Nope, i can define this without having a computer:

imperative: cooking recipe

functional: assembly line in a factory

declarative: your assistant. or let's make SQL declarative: you ask chatgpt to write a query, and define this query in english

"declarative is restricted to only markup languages"
no, the form of the language is irrelevant. CSS is not markup, but still declarative.

Elements of languages cannot be declarative or not, you can only describe the entire language as such, because we are speaking about programming paradigms.

C is assembly at the end of the day, as everything else for the computer itself, but this is irrelevant here. From purely imperative, which is basically machine code to purely declarative (maybe chatgpt?) it's a scale, you put everything somewhere. Functional programming is syntax sugar over iterative, but it's really important one, as it changes how your mind try to solve problems. So basically what I'm saying everything is an abstraction over another one, down below the machine code, but this is just how thing works, not how you use your brain to solve things.
I'm saying all this, because not the technical details, the implementations behind is the point when we speak about a purely theoretical classification which programming paradigm is.
Test it by not testing it! Genius!
Exactly. A comment is the last step. I strive to write no comments, but if I feel that's the best option I will. In my opinion it is very rarely the best option.
https://github-backup.branchable.com/