skysight-inc/HackerNews huggingface dataset:
The example i usually give [1] in javascript is say you have function

(x,y) => x + y

Orgs targeting code coverage write a test for 1,2 => 3 and get 100% coverage and then stop as there is no incentive to go further. They don't write tests for say

(1,null)
(null,null)
('x',1)
(NaN, Infinity)

and so on.. these additional tests will improve coverage of scenarios and code coverage will not move.

I have seen projects where a test will have sequence of steps which trigger the code but the assertion is effectively true === true, or they will replicate the same function in the test instead of generating proper mock data or myriad different absurd testing approaches. This comes from twin pressure of showing coverage and having tests pass.

Coverage is also a challenge in code which uses AI/ML libraries or that use third party services. These really need statistical testing with large volume of diverse well maintained samples and results need statistical analysis for error rates not different from how manufacturing does it, I don't see that often. For code using face detection for example a single face getting detected or not is hardly an adequate test.

Finally, it is easier to improve coverage by testing simpler code than improve coverage/ refactor a function which has say 10 nested branches, so it is not uncommon to see 90% coverage and 10% of the most used / most error prone code poorly or not tested at all.

There are some methods to address these like mutation testing, do retros for failure of tests to capture production bugs, it is not easy to measure and coverage driven orgs will not see their metrics moving by doing these.

Well written test suites will also have good coverage, but not necessarily other way around. Developers who care and understand what they are doing and why they are doing it, will use coverage as only the first step to see where there are gaps in their tests.

Tests are also code that need peer reviewed and maintained, if the tests depend on implementation and constantly break or contains improper mocks or assert poorly. A lot of not well written tests is hindrance to development than aid it.

[1] Yes, most of these are not applicable in a strongly typed language, but it is far easier as a illustration .
Slippery slope only applies if there's actually a slippery slope to slide down. Nothing about this change indicates that Wikipedia will start charging the general public for access.
Well.. It depends... If development is what you want to do, then it's not OK. In terms of losing your edge, I agree with you completely and I'm in a similar situation at the moment(though for different reasons): the company I work for is infuriatingly conservative. The newest thing in use is the oldest which is still maintained. Any technology invented after 2011-2 is considered witchcraft. And even suggesting something which would clearly make things better for everyone, results in a long convoluted answer as to why not(without an actual answer, just a way to brush it off) or "open a jira ticket in the suggestions project" if someone is busy. Basically this is just a formal way to tell someone to leave a comment in the guest book. And the "suggestions project" has tickets dating back to 2014, all of them completely ignored. While I appreciate that there are no pointless hour-long meetings discussing made-up acronyms and whatnot, the fact that I feel like living in 2010 is not just frustrating, I'm absolutely furious. So it's easy to see why I'm looking elsewhere, even if I haven't spent a whole lot of time here. But in my experience if you want to be a developer and live on the edge, steer clear of the "architect" types of roles and stick to strictly "developer" roles.
It brings good fortune to the humans, not the animals.
It would be nice if there was some sort of standard like USB for magnetic charge cables! I do like the standard USB c charger that I can use for my laptop, phone, and switch, but there are certainly clear advantages to magnetic disconnect
Videoconferencing applications are implementing this in conjunction with face detection to "steer" wide angle cameras into "talking head" shots.

The current tech is spooky trash, parlor trick-quality from what I've used. Every time we use some of the automatic gizmos in conference rooms, we get tickets to make it stop.

Pick your favorite top video conferencing platform or camera maker and they'll want to improve what they have. The Creepy - "Just works" jump is a big one.

PS., the industry trade show is happening RIGHT NOW at https://www.infocommshow.org/
Race isn't a distraction, especially from economic issues. When you look through US history you don't see laws and regulations passed against people that cite income level, but we see them cite race. When blacks were prevented from voting or serving on a jury, no one considered their economic status. When housing covenants were created that expressly forbade selling to blacks, no carve outs were made for blacks of a certain income level.
This does seem to fit what I've seen.

I often have this weird imposter syndrome, where I sit on calls for 2 weeks and create some detailed end-to-end design. I then take that design and present it to a a team of engineers are are tasked with actually implementing it.

It feels strange to be doing that, and not having a hand in the implementation (i.e. coding). But then, those same engineers are the ones who come to me for the high-level questions.
The use case is the ability to easily replace/upgrade the batteries, RAM and drives by the end consumer without requiring any specialized tools or procedures barring removing some screws.

This is what we used to have with laptops 10+ years ago.

Swapping batteries due to charge issues was never particularly important to the majority of consumers and is a red herring.
Strong disagree on the leetcode bar.

Any FAANG will still give you algorithm questions in interviews, even at a Staff level.
Was just thinking about exactly the whole Wiki ecosystem.

It's created by individuals like us and should be available via maybe archive.org as a complete dump for individuals to play with.

Are they available ?
Linux isn’t growing in those markets either. Moreover, it’s increasingly seen as a liability - thus increasing efforts to replace it with eg Fuchsia.
Had to deal with this recently, Homebrew on macOS though. Meson build failed. Had to manually install Mako with pip, which also installed MarkupSafe. Then bitched that Homebrew (or Linuxbrew) will break in the future for some reason. So next time I build X, I can look forward to that. :/
Holy crap, I played this at my friend's house as a child. My main memory of that game is how horrible the English voice actor was when trying to sing and I vaguely remember the ball dynamic and having issues with it being buggier in the second game, maybe. Anyway this is awesome and I wish more developers did this.
"Their findings: Without a News Feed algorithm, [...] Facebook makes even more money from users scrolling through the News Feed."

The obvious conclusion one can draw is that the product is primarily engineered to control users' information intake, and only secondarily to make money.
Wallet that bought $8k of SHIB token now worth $5.5B
The source study is from the heritage foundation - a fairly infamous conservative think tank. I think most outlets that pick up this study are going to have a similar bias.

See: https://en.wikipedia.org/wiki/The_Heritage_Foundation
(Caveat that this may be US specific.) For the Central time zone there are 2 variants. CST and CDT. Most people will wrongly use CST to mean both variants but that is incorrect. Central Standard Time only applies when daylight savings is off and Central Daylight Time only applies when it is on.

The same is true for say PST and PDT.
Justice Department Probes Visa’s Relationships with Fintechs (Square, Stripe…)
Czechs typically dont use “robota” to mean “work” (they use “prace” for that).

Robota is more common in Slovak than in Czech.
LinkedIn-level insights right in your calendar
> The purpose of async IO is to permit the interleaving of fast and slow activities.

You absolutely do not need async IO for that. You can do that with a synchronous programming model just fine, using threads and letting the OS do its thing.

Async is an absolutely horrible programming model. There are really only two advantages is brings: It lets you avoid the memory and context switching overhead of threads if you need to handle a very large number of requests concurrently, and it lets you do concurrency without worrying about synchronizing access to shared resources (but there are much better ways to do that).
Ask HN: How did you find inner peace?
As a software developer, I often struggle to find my inner peace. What are your tactics to keep a fresh mind?
I’m not sure where the distinction between “natural” or “artificial” selection is, or if it matters. But it seems clear that humans and our technology are capable of creating far more pressure for other species to either evolve or die if we target them for some reason.

If it weren’t for us hunting these elephants for their tusks, there isn’t a reason they’d evolve in this manner. So I just wouldn’t call that evolution by natural selection. Same thing if we set off to exterminate all mosquitoes.

But I do get your point. I’m conflicted if we can count ourselves as any other predator species when discussing evolution.
We should count our blessings, and one of those blessings is living in a secular country.

Some countries which collect individual religious affiliation actually do so to enforce religious laws. For example, I think that a non-Muslim man cannot marry a Muslim woman according to traditional Islamic law, unless he converts to Islam first, and many countries actually enforce this prohibition until today.

Of course, to do so reliably, you need a population-wide database of religious affiliation first... Sigh.
I assume that in its training, incrementing a counter in redis is common.
Yes, but in the long run isn't this breeding out this specific diversity? I recall reading that genetic diversity becoming limited in endangered species makes them much more susceptible to being wiped out by disease.
Normal, yes. Okay, maybe. You may find companies less interested in hiring you if you haven't written code in a decade.
Yes, try the blind mode button, I just added it!
The United States used to stockpile raw materials for military use. A lot of that ended after the Cold War did because it was considered inefficient. (And it probably was; efficiency and resiliency are at odds here.)
There is a real time streaming api that is available for free (and has existed for a long time)

https://wikitech.wikimedia.org/wiki/Event_Platform/EventStre...
The example I cite -- MK-ULTRA, Charles Manson, and Jack Ruby.
Thanks for your efforts!

In my view there's absolutely space for Xorg in the future. Not every OS can run Wayland well and Wayland lacks some X features like network transparency.

I kinda hope it'll be backed by an organisation that's really keen on taking it forward. Augmenting the security model for example. And going back to some client rendering enabling features like anti-aliasing. I really think there's a lack of a viable remote display tool in Linux, where Windows has RDP. Block pushers are just too slow. VDI usecases are picking up again heavily, as do other security based techniques which could benefit, like remote browser isolation. Filling up my desktop with Windows running on a bunch of other computers is just so powerful.

So in other words I'd love to see an X12 that really moves towards the future. As I understand it, it's currently with RedHat which only sees future in Wayland and X is just on life support. I regret that because I see a lot of concepts in it that are still very valid and that have been lost in current alternatives.
Not at the NY Post.
Can you elaborate on this? Not the first time I've heard a similar sentiment (and the proliferation of PHP over the years def provides some justification) but I've never heard people explain why.
Ask HN: Are people losing interest in Twitter?
I don't check Twitter very often these days, but today I looked through the feeds of some people I follow (mostly academics, writers, and software people) and noticed that many who were formerly quite active (5+ posts a day) had stopped posting often in the last 4-6 months. No self-declared Twitter breaks, they just seem to be fading away. Does anyone else have the sense that longtime users are becoming exhausted by the platform and turning away? If so, where are they going?
Businesses that call themselves ".org" are disgusting.
If the analog add ons are DIY or even extra money, then software developers cannot rely on them being present and won't develop good software and use cases for it. At least not most of them. The best you can hope for is niche software support.

So adding stuff yourself is nice (I do it myself!) but not a way to move the industry or even the Apple ecosystem forward.
That is true, I’ve looked at Twitter and went “how is something so basic in functionality not an open standard?”.

Although it’s not always as intuitive as email. IRC could’ve extended into something like Discord had it not been so programmer centric.

Either way, these people have us by the balls over already established syndication capabilities like RSS, just weighted in their direction(s).
https://dumps.wikimedia.org
Please don't take HN threads further into flamewar hell. That's exactly what we don't want here.

https://news.ycombinator.com/newsguidelines.html
Once upon a time in a Diplomacy tournament, two players locked a third into a bathroom, forcing the third player to miss a turn. The referee ruled that was acceptable, although I think later tournaments forbid that sort of thing.
But then it's a good thing from the 9 other secretaries' point of view where they didn't consent to being harassed sexually, which is the point.
I am going through the suggestion list and implementing them. The blind mode is just added!
I think most of the guys like you are confused between coding vs copy pasting from stack overflow.
This took me years to figure out. :) Even cooler is that you can put them in a random pattern AND have the system determine its own geometry w/o measurements.
But that in and of itself is not even being bourgeois, it's middle class in the standard definition.
I like the idea, but I would much rather support a version of this that doesn't include re-forestation. Is that something you're thinking of offering?
The specific claim in the video was % of code being written by early adopters. I can't tell from the video how "early adopters" was defined or how they measured % of code so it's ambiguous. But story should have made it clear this isn't a percentage of all new code.
Disclaimer: I work for the Wikimedia Foundation but I don't represent them.

I'm pretty sure there is a team working on building semantic context into the wikis.
Bridge was a pretty fun game, however the card counting was what turned me off. For those who love tracking where every card has been and could be, it's probably a very fun memory game.
I’ve been using this for weeks and it blooooows my mind. It comes up with crazy recommendations, just yesterday I wrote this big ass logic to do something, then I wanted to move that code to a function so I wrote the function name and I kid you not copilot suggested a one-liner that worked… the thing is so useful and I’m not writing simple code (writing cryptographic code). And when it’s not doing that at the very least it provides auto-completion to lists where a counter has to increase and things like that. It’s just baffling, I don’t think I’m that directly impacted by AI, or at least this is the first time where I’m like “wow, AI really is changing the world RIGHT NOW”. Half-joking: can’t wait for it to just write my code.

Also if this feature would be paid tomorrow, I think I would pay for it. It’s really noticeable when I don’t have copilot enabled now.

Oh and, autocompletion doesn’t work with markdown files because of markdown plugins I think? But this is another level of insanity: when I’m writing english it figures a lot of the sentences I want to write. Makes me question if I’m just a deterministic individual with no choice.
That sort of thing isn't being sold. There would be mass riots on wikipedia if wmf tried to pull that type of shit
This is my experience -- your foot gets in the door to get an interview easier though.
Also for an other reference, Maine's GSP is 52 billions, so that's a week and a half of it, as a one-shot.
And in most cases, if you memory map (mmap on Linux/BSD, MapViewOfFile on windows) it’s way faster than reading the file - because you only ever read what’s needed on one hand, and it stays in cache between invocations.
Exploratory programming, for me, involves tons of quick refactoring jobs. Moving methods around, copying code from one place to another. If I sit down with a decent Go, C#, or Java IDE, I can sling code left and right, mash it up, refactor it, move code around, change interfaces, etc.

The good tooling for these languages makes it so I can do a lot of this work with a couple button presses. I inevitably end up with code made from different phases of the exploration... the static type checker is good at reminding me which pieces of the code base need to be updated, because they were from an earlier phase of exploration. There are a lot of idiosyncratic tricks buried in here, like changing the name of a method when I change its semantics (like frobnicateWidgets() to frobnicateWidgets2()), so all the call sites become errors, and I can review them one by one.

This works poorly in C++, the tooling just sucks.
"OneMic Series - Muscle Shoals Sound Studio - Tour"

https://youtu.be/hP4IwPgylzE
Except it's only advantageous to female elephants, according to the article:

"They identified two likely genes AMELX and MEP1a, which are passed from mothers to the offspring on the X chromosome. But if a disrupted gene is passed in a male elephant, the elephant dies; the female elephant would instead evolve to be born without tusks. "

What would be the effect of this on male elephant population when taken to the limit (i.e. 100% of females are tuskless)? Seems to me that it'd skew the proportion of births towards 2:1 (assuming it's now at 1:1)? How significant impact would that have to the species as a whole?
if commentErr != nil {
hn.Upvote("https://news.ycombinator.com/item?id=29017491")
}
Agreed, and the American one at least has this in mind, broken as it may be. Not so many others.
> a federated protocol (which AFAIK is already even required by GDPR).

You might be thinking of the GDPR's Right to Data Portability[0] which includes "the right to transmit those data to another controller ... by automated means".

This should require Facebook to synch the posts you make on their website to another account you hold on a Fediverse node, but unfortunately it doesn't require Facebook to synch content that you can see (but didn't produce) from their website to that node.

[0] https://gdpr-info.eu/art-20-gdpr/
My team maintained about 30k laptops at one point.

We historically bought <1000 batteries a year, mostly due to environmental issues like cold and good lifecycle management.
I maintain a relatively new one called HN Pro [1]. It was rated 5/5 on the iOS App Store until Friday's HN updates broke parsing, but that bug has since been fixed. I'd love more folks to try it out and provide some feedback.

The app is privacy-first; no tracking or analytics SDKs are installed. You can log in with your username, upvote, downvote, and comment. The idea is to provide as close to the web experience as possible in terms of "feel" and not to add any extra flair.

I'd love to work more on it, so if folks have any ideas with respect to monetization or marketing, I'm all ears! FWIW, I've been recently toying around with the idea of just open-sourcing it and making it donation-only. Haven't really come to any conclusions yet.

Also, I'm aware of some UX/UI issues with the latest update—it had been a while since the previous build and recent UIKit changes have created some wonkiness. :)

[1]: https://apps.apple.com/us/app/hn-pro/id1384303792
Lessons from the Legacy of Apple’s Steve Jobs
LOL, now that I've read it, I'm pretty sure Derek's blog inspired Charlie to write this story (that, or the common denominator of reading "Ignition!"). It's a great cstross "what-if" story :D
You've been repeatedly posting flamewar comments and aggressive attacks. We ban accounts that do that. I actually just banned you for this, but then looked closer at comment history and decided to undo that and warn you instead.

You can't attack other users regardless of how wrong they are or you feel they are. It's also not ok to use HN for ideological and political flamewar. If you would please stop doing these things and use HN as intended from now on, we'd appreciate it. The rules are here: https://news.ycombinator.com/newsguidelines.html
And heaer I thought I was the only person who just can't get enthused about their new MacBooks, knowing that CSAM could just get added at any point in the future without my consent.
When was the last time you could install anything on Windows without rebooting? I'm exaggerating a bit, but not much.
There are many type of Staff eng , some of them are solver who solve toughest problem in the team. They need very high standard of coding knowledge.
Facebook is getting ever more desperate to get clicks and interactions. More and more of my notifications that will say they just happened or happened 20 minutes ago then I click it and find it was a post from the day before. How stupid since most of the time it is a repeat post I have already purposely passed on.
This is not a helpful stance to have. There are developments and solutions for industries, processes, and individual households all drawing to the same goal. Renewable energy generation looks to be pricing coal and gas powered energy generation out of the market by being cheaper to build, deploy, and maintain, for example. Bonus, it comes with its own industry.
Martin from GitHub here. While Copilot is good it's not quite up to those numbers yet I'm afraid. It’s early days, but we’re already seeing that for some languages when people have it installed, we see about 30% of newly written code being suggested by Copilot. Vary’s between languages and the numbers of users in the technical preview is a LOT less than the 73m folks we have on GitHub, so a long way to go before it makes up a third of everything..