skysight-inc/HackerNews huggingface dataset:
Reminded me of this quote from the movie Cube:

It's all the same machine, right? The Pentagon, multinational corporations, the police. If you do one little job, you build a widget in Saskatoon, and the next thing you know, it's two miles under the desert, the essential component of a death machine.
Mostly you run into problems either using the "inheritance" pattern, or with discriminated unions. These are pretty common in C. There really is no alternative to inheritance because if you don't type pun you end up needing to copy a lot (or you can pass around pointers to internal members but it's really easy to lose track of memory that way). And there's also not really an alternative for discriminated unions; the functionality is pretty unique. You can pull the polymorphism out of the type up to the top of your control flow, but that severely degrades your locality. In other words, at some point you have different batches of functions for each "type", but you don't realize that's what they are until you trace the call graph all the way up. Of course, sometimes that's preferable to avoid branching, but at least w/ discriminated unions you get the option.
I think it's mostly a switching cost problem.

Strings-as-char-* are part of the public APIs of damn near every C library, including the standard library, so there's no way to change that idiom without breaking the world or causing a huge migration tax. The kind of people using C are often doing so specifically because they want to avoid that kind of churn and want a maximally-stable platform, even if what it's stabilized to is sub-optimal.
I’ve always found my performance reviews to be very useful, and people’s feedback extremely insightful.

I think they can be brilliant, and they can be awful. It depends on the approach of the manager and their subordinate.
> police and intelligence agencies are using the same surveillance tools to solve and deter crimes and prevent terrorism

> Cops surveil, that's their job

These statements are not equivalent. No one is disputing that cops surveil people. The question is, are they using the same tools that China is? That's what the person you're respnding to thinks the Economist needs to back up.
Well, this guy doesn’t have any manors.
As a conservative, I fully support the right to unionize. It's a bedrock of free association and the free market. I happen to also believe unionization is wrong for many industries, but folks should be able to make those choices on their own. Many conservatives I know believe the same.
So, a question to developers reading this: would you be happy to work alongside a person who participated in the development of this system?
Great advise, also highly relevant on the same/ similar matter: https://hackernoon.com/12-manager-readmes-from-silicon-valle...
I actually code closer to 14-16 hours a day. But I have a standing desk / bar stool combination, plus a compile of my work typically takes 3-4 minutes, so I have a yoga mat, weights and stuff to work out while I think & wait. I'm 54, yet look 40 with a near six-pack. I'm really lucky.
light up the cpu, get the work done fast, then shut down.
that is typically the energy efficient thing to do.
You should re-read the article. We've seen an increase in productivity, but no matched increase in wages (a 75% increase in worker productivity in America from 1973 to 2016, while average pay rose by less than 50% and median pay by just over 10%).

As for the rest of your comment, you should look into the Lump of Labour fallacy[1].

1: https://en.wikipedia.org/wiki/Lump_of_labour_fallacy
Tesla stock surges as shareholders show renewed confidence in CEO Elon Musk
"What is the best career advice you’ve ever received? Odds are it wasn’t from an annual performance review."

I guess the odds were in my favor.
Having outfits like the LA Times casually throw your info at dozens/hundreds of largely unaccountable third-parties without your consent.
Looks like a jetbrains IDE, I'm a massive fan of intellij and it's my goto programming environment but it's type error messages with typescript are terrible compared to vscode (enough that if I can't understand what the hell it's saying I'll boot vscode).

It's about the one thing I can really ding intellij for at the moment.
There is no idiomatic way to use strncpy, unless you're running the 7th edition of Unix [0].

[0] https://stackoverflow.com/a/1454071/6561829#6561829
Site seems down. HN attention.
Complaining that no one agrees with you does not mean that there is no "diversity of ideas." It means that people have decided your ideas aren't good.
Time to rewrite Java in Rust.
We have been convinced taxes are the problem, while wages stagnate.
Can I just change that to

"The plaintiffs alleged that Apple abused monopoly power on A10, A10x, and A11 based smartphones and tablet computers in its handling of operating system and web browser sales"

Would that make it a monopoly?

IIRC Apple didn't sell Intel based machines when Microsoft lost this case so IIRC there was only the tiny Linux market (at the time) relative to MS. No one else sells A10, A10x, and A11 based devices so Apple does have a monopoly there by that definition.

I'm frustrated that I can't replace Apple Maps with Google Maps so that it's the integrated "map" function in iOS. I can't use real Chrome, which has a proven record of being faster and more secure than Safari, on my iPhone, even if it happened to use more battery. Frustrated can't make gmail my default mail app so clicking a mailto link goes to Apple's Mail app. I'm frustrated that it's extremely hard to run GPLed software on iOS (requires $99 a year and self-signing or free and resigning every week). No Kodi. No EMUs.

I would love to see Apple change their polices there.
Ask HN: What SaaS business tools are you using that has let you down?
Let's try something new - instead of recommendations, let's hear what SaaS products or tools you're using in your business that have disappointed you and your team. In my experience most SaaS tools always pitch a great game, but after the integrations been done and your business grows you often find out shortcomings that aren't advertised on the tin. Let's hear about them!
Because most of the internet already goes through under-sea cables? We're pretty good at not cutting under-sea cables.
At my current employer, we completely reinvented our performance management [1] and it has worked out to be so much better. We spend less time on coming up with arbitrary goals and really focus on strengths and developmental needs. The overhead involved with spending a lot of unproductive hours on performance has been minimized. The conversations are really about what people have contributed, what their strengths are, and how the firm can support their development goals. Also, by using our new performance management system, the conversations around promotions and such are much more streamlined and data-centric. Overall, the expectations of both sides are better managed.

[1] https://hbr.org/2015/04/reinventing-performance-management
Check out Bangs on DDG [1]. Just insert "!g" into your search text and it automatically redirects your search to Google. It works for thousands of other websites too. (Wikipedia's !w is one I use all the time)

[1]: https://duckduckgo.com/bang
The West invented this stuff, though our implementation is less centralized and relies much more heavily on the private sector. The Chinese are just copying it.
I agree, the blurb describes in detail what a "Pals Battalion" is, but not why it was actually problematic for the communities from which that battalion originated from.

Basically, large groups of young men from the same community (hundreds to thousands), would all join up patriotically into the same battalion. After all, if they were going to join a war, they might as well join together with those that they know and already have bonds with. Unfortunately, the unintended consequences were those same entire battalions could be wiped out in a single day (like at the Somme), and now you had a community losing nearly all of it's young men at the exact same time, with hundreds of families in the same area now missing a son at the exact same time. As one would expect, the effects of this would be devastating mentally, and demographically enough so as to destroy smaller communities that had sent the majority of their sons and now no longer had fathers for the next generation.
Any idea what the cost to heat it is annually?

Did they buy it or is it an old family home?
Do you mean "often short for China the country"? Because otherwise it does sound pretty weird for you to say "Chinese communist".
Or perhaps heating a greenhouse in a cold climate where fresh food is expensive or impossible to import.
Good stuff, although I think the "what do I want to be when I grow up" question is needlessly infantilizing. Much better is something like, "what am I trying to accomplish?"

For peer feedback, I strongly recommend a trick I stole from my last boss: manager interviews of the employee's peers. You ask the employee for some people who they've worked closely with, mix add in others you think would give good perspective, and then do a short (30-60 mins), structured interview with open-ended questions and follow-up on patterns.

With that material in hand, a manager can write up a peer feedback digest that I think is way more useful than what normally comes out of the process.
Guns drawn in case they arrive to find an unstable person armed with a gun threatening to shoot back.

This isn't indicative of a police state, it's indicative of a state where guns are too readily available to people with mental health issues.
That seems about right. "Getting 1% richer" would imply something completely different for a billionaire than for a worker, so I don't see why it would be a useful measure.
Safe Autonomy: A Reality Check on the 94 Percent Human Error Statistic
I feel like articles sometimes elicit a certain "no shit" reaction, but then don't really dig in to solutions.

Specifically around the mechanism of the performance review, this piece is pretty practical for framing thinking about an alternative approach: https://medium.com/the-carrot-or-the-stick/the-performance-r...
Ah my bad, completely misunderstood what he was saying.

Thanks for providing context.
I like the abstraction of patches, because some of our projects still runs SVN and HG, and because we're all on Phab, we're all using the same flow. We actually don't feel any urge to move to git at all (it's probably going to happen some day anyway)
agred
You are lucky. I have never had a really useful review. We also do 360s but you never get the real comments but only a compiled version which then is also not very useful.
How to Incorporate CSV Uploads to Solve Your Customer Needs
At least part of the high cost can be explained by HR departments wanting to hedge their bets in case someone needs to be fired for cause. Having a well documented paper trail of reviews which demonstrates that an employee was unfit or underperforming is the surest way to avoid a lawsuit if it comes to that. Whether or not it is worth a couple of hours of every employees' time every year is up for debate.
Especially since `strncpy` takes a `size_t`, meaning that `buflen - 1` will turn from `-1` to `SIZE_MAX` due to the signed to unsigned conversion. I think OP just slightly misremembered what is on the man page:

strncpy(buf, str, n);
if (n > 0)
buf[n - 1]= '\0';

Which still checks `n` after calling `strncpy`, like you mentioned, but doesn't have the underflow problem.
Test1
Verifying my Blockstack ID is secured with the address 1L6n65iyqf9vJoMhkbQEQ9cjYJpeA4LVqi https://explorer.blockstack.org/address/1L6n65iyqf9vJoMhkbQEQ9cjYJpeA4LVqi
The problem with these sorts of systems, both those backed by technology and those backed by old-fashioned prejudice, is that it exerts an upward force on those who are already on top while simultaneously pushing downwards on those who are on the bottom. Each of the examples listed here have this effect: having a high credit score means you get cheaper healthcare, have more opportunities to find a well-off partner, don't need to pay deposits on car rentals, get to travel, etc. It seems as though if you're on top, you're going to stay there, meanwhile if you're on the bottom, you're going to stay there also.

What I'd like to know, as an American sitting literally a world away from the people under this system, is to what extent wealth and influence purchase a high social credit score? Some factors are obvious: those with more money are less likely to incur debts, for instance. But what about connections to administrators? I imagine there isn't a politician in all of China who doesn't magically have a sterling social credit score.

I wonder whether the net result is a society in which a high standing resulting from material and social wealth leads to perks that in turn lead to more material and social wealth.
> Why wouldn't unions only negotiate for union members? Seems silly to call someone a free rider if the union willingly lobbies on everyone's behalf. Maybe there's something else?

In the US, unions have two options:

1) Define a large bargaining unit which includes both members and non-members, collect fees from everyone in the bargaining unit (whether or not they are a member), and provide representation to everyone (and also have control over everyone in the bargaining unit).

2) Define a bargaining unit to include only members of the union, collect fees and dues from members of the union, and provide representation to members (and have control only over members).

In both cases, the union has full, exclusive control and representation of the bargaining unit - it does not compete with other unions for representation of members, and it is free to define the bargaining unit pretty much as it wishes.

In the US, unions have typically preferred to do #1, because it allows them to collect money from a larger pool of people, and it gives them a greater degree of control. In most other countries, unions either aren't allowed to collect fees from non-members or have to compete with other unions for representation of members, so they can't rely on exclusive representation laws to give them the right to represent (or control) people who decline to join.
And the HFT industry is incentivized to use as little processor time as possible, and thus as little power as possible.
You don’t see a difference between rating products for consumption, and rating people and their behavior? Spooky.
4 Years of K8s
How Customer Success Became a Thing
Why people vote against their economic interest
One of my friends hated when they cancelled performance reviews at his company.

Some people like getting told what they're doing right and wrong.
> Or a park that remembers people that do not litter and greets them with a positive reinforcement signal when they walk in.

People who litter will have points deducted from their score and they'll no longer be allowed in parks. Unless they have money of course. "Donating to charity" can increase your score, so the rich will be able to whatever the fuck they want and the poor will lose access to parks.

> playing against aimbot is like banging head against the wall, it definitely lowers my quality of life

Some friendly advice from a fellow human - go take a nice long walk in a park. Enjoy the fresh air and sunshine, while you still can.
Agree - lots of opinion and generalizations here, but painfully short on any kind of supporting evidence.
I would argue that you still have one string type, while the traditional C "string" type is actually an array of characters, or a pointer to an array of characters. :-)

Re: snprintf - yes I saw that and it definitely does do most of the heavy lifting, but it still is something that the developer needs to handle manually (I know, I know, not everyone should be using C...).
Cost of living has risen higher. So even if wages grow, if they don't keep up with costs, then yes, you can say they are poorer.
I've been working professionally for over a decade, and it never occurred to me that performance reviews were meant to provide career advice. I thought they were meant to help you understand if your are meeting the expectations for your current capacity. For example, as an engineer at company X, is my development-time vs customer-support-time supposed to be 50/50, 80/20, 20/80, etc.. and how well am I aligning with those specific expectations. I consider this separate from "career advice".
No, the other questions are:

1) Does your union represent you as talent or just by your seniority?

2) How much more (or less if you're talented) do you make now because you're unionized?

3) How much are you forced to PAY to the union for the privilege of having your job?
Here is his PDF of slides - http://tinyclouds.org/jsconf2018.pdf
What, so in the US people doing a certain type of job at a certain company can only join a single union if one is already recognised by their employer?!
Having a strategy of having the person tell their story, and the manager having their story is a good combination.
like described here: https://www.goodreads.com/book/show/774088.Difficult_Convers...

It's the conversation together about what the next chapter could be and should be that can be really valuable.
I've found performance reviews are good for understanding upwards perception and expectations when a manager doesn't communicate well.

In my experience, I've found that they've lead to an, "oh, I better get out of this place ASAP," or, "oh, there's a problem with my manager that I better raise ASAP with his boss."
You see this a lot in machine learning. Reward a neural network or evolutionary algorithm for identifying squirrels vs. cats and you'll get one that compares one pixel of the usually beige wall color in mostly indoor shots of cats vs. the non-beige pixel found in mostly outdoor shots of squirrels.
I'd agree with this, I've had good experiences and downright painful ones with performance reviews. I've always found the process outcomes are heavily influenced by the relationship with my manager. I feel like you need a certain comfort level discussing with them or it tends to fall into that "Waste of Time" the author is referencing.
It's more about control.
Not if employers aren't perfectly rational, and would rather hold out for that unicorn amazing employee who works for peanuts, as appears that many are doing.
I think it's absurd to claim that every tech center is an offshoot of Silicon Valley. No one does this for other industries. Milan isn't considered an offshoot of Paris because it has a fashion industry. Chicago isn't considered an offshoot of New York because it has a financial industry. Similarly New York isn't considered an offshoot of London because it has a financial industry.

Only for tech do we do this.
> Not necessarily. The unions can redefine the bargaining unit to be members-only, in which case they will pay neither dues nor fees, and won't be entitled to benefits or representation.

Do any unions currently do this in RTW states?
It's a bug for sure, but anyone who cares about correctness ought to be using a style that doesn't allow this tortured contortion:

array[i++] += i ...
The SCOTUS case has to do with membership in public unions, which is different because it involves a government- sanctioned union requiring membership as part of employment with the government. It does not affect private sector unions.
Rest in Peace, Recalled Ikea Sladda Bike
The entire point of the license is to highlight how ridiculous it is that one should have to be/retain a lawyer in the process of generating sequences of 0's and 1's to run on a computer.

Programming is mathematics. You stop doing things like trying to 'license' 2+2 on x86, and we'll stop making goofy licenses to mess with you and give your lawyer a heart attack.

We all know if you see something you really like but don't like the licensing of, you'll just rewrite it differently, and slap All Rights Reserved on it anyway. Thus is the joy of the Turing Machine. What you do can be redone in an infinitude of different ways. You insisting on licensing schemes just holds back code from being utilized, and builds legal structures through which software writers and users can be abused.

I've recently thought of creating a TTCACOI (Take This Code And Choke On It) license as of late.

I mean, clearly if forced binding arbitration can force you to relinquish civil rights through Contract law, one should be able to compel auto-esophegeal blockage through licensing terms right?
Thank you for noticing and commenting; I appreciate your salute. Positivity is enormous help to people, including me. :)
Thanks for calling this out... In my career, I've seen some reviews be a complete waste of time and others provide value. It depends on the company and how seriously your manager takes the process.

During my time at Yahoo the process was an absolute joke as leadership was changing on the daily. When I was a PM at Intuit, I received feedback which I still leverage years after the fact.

People shouldn't feel like performance reviews are the only way to receive feedback. Feedback needs to happen regularly, not on an annual basis. Feedback should also come from people you respect, not the people your boss tells you to listen to at work.

Coincidentally, this is an area I have a lot of passion for given I was a HORRIBLE boss at my last company (acquired by Atlassian): https://medium.com/matter-app/you-matter-d7a0b07d078b

I'm also working to fix this problem, if anyone's interested in chatting on the topic or interested in fixing the problem... brett@matterapp.com
That's why I find the WTFPL a bit misleading, I tend to prefer the official french version of it (LPRAB -> http://sam.zoy.org/lprab/) ; the main point of this one is the "j’en ai RIEN À BRANLER." part, i.e, "I don't care at all".

It leaves little room to potential ambiguities regarding whether or not you should expect the author to care about concerns like, looking like a kid.
This is the only reference to this technology that I can find on HN, and there are no comments which are critical of it. Is it a scam? Is it revolutionary technology? Is it a clever way of lying to your power meter? Are they simply charging too much for their boxes?

Why isn't this being talked about? I don't understand.
Previous HN discussion: https://news.ycombinator.com/item?id=13404372
> The New Yorker has been a vital force in American journalism for nearly a century.

I'm honestly very surprised that there wasn't a union in a company with such a long history. The lack of unions in tech industry always seemed like an anomaly to me, but I attributed it to a fact that most tech companies are too young or too small.
"Mortgage deduction makes housing affordable for working class."

I don't believe this. People tend to max out what they pay for their mortgage so if they have a tax deduction they just will pay more for houses. Which then benefits the owning class.
I am a relatively recent transplant from C# to Java. I'm still getting my bearings, but my general sense is that Java has an amazing ecosystem in the large scale, and that makes it much easier to tackle the hard problems, but is the absolute pits to work with for everyday challenges. IOW, Java makes the hard problems easier and the easy problems harder.

Concrete example: .NET has nothing comparable to the Hadoop ecosystem, or to International Components for Unicode.

Concrete example: Compared to what's in .NET, a lot of stuff in the core Java libraries feels very half-baked. Streams, for example is missing a lot of useful features that I am used to seeing in every comparable library. There's not even a mapi in there. Bifurcating it from iterables and the rest of the collections API also creates some ergonomic annoyances that don't exist in, e.g., .NET or Scala's equivalents.
Sorry if I got lost in the woods.
It is possible to get paid above the union negotiated rate, called above scale, or to start out at a higher than entry level pay step. It depends on the specific circumstances and collective bargaining agreement.