skysight-inc/HackerNews huggingface dataset:
Black Jobs Matter
Why the JS-like naming, weird method naming convetions with strange underscores, and capitalized module name? I can't remember a single commonly used Python library with naming this strange.

E.g.

def removeByIndex(self, b):
""" Removes the value at specified index or indices. """
...

def removeByIndex_(self, b):
""" Removes the value at specified index or indices in-place. """
...

If you were to follow typical naming conventions, these would be either

def remove_by_index(self, b): ...
def remove_by_index_inplace(self, b): ...

Or pandas-like:

def remove_by_index(self, b, inplace=False): ...

Or, one more step, use explicit typing as well (which also makes it more clear that the method returns self), and give a better name to the method argument rather than 'b':

def remove_by_index(
self,
index: Union[int, Iterable[int]],
inplace: bool = False,
) -> 'Array': ...

Explicit type signatures in libraries like this make many things self-explanatory, like the one above.
If this standard is being applied, it should be applied to everyone. BLM-affiliated protest groups have suggested violence like this many times. For example, check out https://www.nytimes.com/2020/08/10/us/protest-personal-homes..., where protesters showed up at Seattle's mayor's house and spray painted "guillotine Jenny". Neither BLM nor the councilmembers who encouraged the protesters have been banned from big tech platforms. What about when they did the same to Jeff Bezos outside the building he works at (https://www.vanityfair.com/style/2020/08/jeff-bezos-guilloti...)? What about when something similar was done to Trump outside the white house (https://www.newsweek.com/protest-trump-doll-guillotine-outsi...)?

Treating Steve Bannon differently is hypocritical and unfair.

> Well, we’ve just seen what happens when it gets taken literally.

Can you quote a specific person saying "go to the capital and break the law and commit violence"? Because I don't think you can find that evidence.
Driving groups of people more underground to use protocols and services which are hard to ban is a good tactic overall? That will eventually put a bullseye on the whole internet.
This made me whistful.

I hope protocols get good enough that being your own cloud becomes a decent option again.
I prefer proactive policy. As much as I would have liked to see more people go to jail for the 2009 financial crisis, for example, I’d prefer to see smarter regulation to have prevented it in the first place
New Zealand central bank says data system hacked
> What's left after that?

We're also seeing the refusal of legal representation, which seems nearly unprecedented. At some point, the only thing left will be civil death [0].

[0] https://en.wikipedia.org/wiki/Civil_death
Absolutely true, although the corporate liability thing really depends on whether the engineering takes after software or aviation (to pick two widely contrasting examples).
I'm just going to chime in as well. OSS tools were a breeze to set up. And the compile loop is so very quick comparatively.
This is the ugly truth. Big Tech has monetized hate since 2014 by guiding users to extremist content. Their algorithms were designed to create profit above all. The cost? Democracy.

Do not let GAFA evade responsibility just because they're scrambling to pull the plug after 7 years of digital sectarian chaos.
> the Capitol Riots represent the extreme 1/2 of ALL America.

That's your narrative.

Do the rioters who burnt several downtowns for 2 months represent half of ALL Americans? Are ALL Democrats then classifed as extremists?

I can say one thing. Democrats are jealous that Trump can get audiences of 500,000 people, while Joe Biden fielded 15 people in the GA address. How is it possible Biden in reality won the election from his basement? It's simply not possible.
So, instead of being a cattle trap it is a trap for modern cars?
I'm a native-born American citizen and we used the phrase figuratively in my household as I was growing up. Just saying.
> Can someone show me a use case other than trying to cycle over the same data (EDIT: or range) repeatedly where 0-based is fundamentally better than 1-based? I mean, that's the only case I can think of where 0-based is actually going to be easier and more sensible.

Perhaps the canonical treatise on this subject:
"Why numbering should start at zero". E. W. Dijkstra, 1982.

https://www.cs.utexas.edu/users/EWD/ewd08xx/EWD831.PDF
Good advice. Also: don't blame the people around you for why you couldn't fix something. Even if it's because your manager was a short-sighted idiot, or the senior engineer on your team was jealously guarding his territory, you don't have to say that in the interview. See if you can reframe it in a more blame-neutral way.

For example, if you couldn't remove a bad pattern because it was too deeply entrenched for you to handle it yourself, and you couldn't get anyone more senior interested: that's expected for a junior developer and probably wouldn't be held against you.
Thanks for the words. We fixed that bug! We also increased the size of the arena so the density of people shooting at you is less.
The big take away for me here is: does the company see engineers as a "cost center" or a "profit center"?

You can almost directly correlate the "traditional" approach to seeing engineering as a cost center, while startups/S.V. style companies see engineering as a profit center, and they treat their employees accordingly.
I think that's very much personal preference. I tried KDE a few months ago and I couldn't stick with it; it is slower than Gnome in a lot of ways, it's (to my eyes) much more cluttered, and has lags at annoying places. For example, I tend to hit the windows key and start typing to launch things, but under KDE there's enough lag before the menu opens that it doesn't catch my first few keypresses.
What interesting is how all these company act in the same way, why don't some company/platform took the opportunity to act the opposite to differentiate themselves ? I believe there is still large enough market for people who oppose this silencing.
The only reason tech companies are doing this is because the democrats have a trifecta and they want to be in their good graces in order to avoid regulation. It's not about decency, it's about power.
This is very true. Tens of thousands of Trump supporters showed up to DC this last week, attending one of several fully-legal, fully-permitted protests. Almost all events and participants were peaceful. A few hundred walked into the capitol complex, and I am guessing most did not initially plan to do so but got caught up in the moment, following those in front of them. Of those few hundred, an even smaller group was engaged in violence. It seems that Trump and the entire GOP will be labeled, censored, and banned for the actions of those few while the same standard won't be applied to those on the political left despite hundreds of riots being held across 2020.
> “Incited to engage in violence”

I am very curious as to what exactly was said and how this is incitement to violence.
> The best way to tell if a company values engineers is to ask which cost center they are in.

Duh! Companies don't put all the engineers in one cost center. It's either by teams/product/business unit/function
It'll certainly be interesting to see what happens to the Republican party over the next few years, given that they've ended up tying themselves so strongly to Trump's cult of personality.
Someone who is not going to be relevant in 10 days.

Spare me the "poor me" act.
Yes, but you still start with the first instruction.

It is like a function that changes behavior after the first time in executes. The first execution will still do what it says. You have to explicitly call out that you want the last step that modifies the previous steps to be ran first.

It is like when I help someone learning to code and they question why their statement on line 30 doesn't change what is happening on line 15.
For the article in question, they are banning someone who blatantly committed criminal acts against the state. Literally an attempt by the president to overthrow the government. Treason is a crime that's enforceable with a death penalty.
Measure the progress and be proud of it! The journey is the destination.

You display great awareness of your situation, which means that you are in control (not so many people are aware or in control from personal stand point). For feeling alive part, i love extreme sports: climbing,indoor climbing (is fun too), mountaineering, diving, etc.etc.
This is the most maddening behavior. I don't really care about the thumbnails not being there, but this irks me evertime I save a file.
Yes, I believe that's what happened here. Very poor decision by the mods; the Google/Apple ones make sense to merge, but the AWS one is a very different issue, and could have a far more interesting technical discussion about migration paths.
Latest numbers I’ve seen are 18%

https://thehill.com/homenews/news/533452-poll-18-percent-of-...
It is honestly frightening to me the level to which so many of us are all living in different realities.
Its: Open Computing
OK, most charitably, some of the people protesting unwittingly supported and took part in a fascist coup. Sucks for them I suppose, it's of course an easy mistake to make.

People have sat by and watched for 4 years and did nothing whilst Trump worked to erode institutions, culminating in the American people democratically voting in a free and fair election to oust President Trump. The reaction to that was an attempted fascist coup. Clearly doing nothing has failed catastrophically. Perhaps there are more optimal solutions to this attack on democracy, but the posters here clutching their pearls over what is a relatively light response to an attempted coup should spare the rest of us the faux outrage.
Why would law enforcement care at this point? That’s a lot of trouble to go through, and likely illegal for them.

But the precise timing is suspicious. I dunno.
https://en.wikipedia.org/wiki/Cow_Tools

The cows always win in the end
The past several years have made me aware of the vulnerability of overreliance on consolidated powers. Silicon Valley has too much influence on the world. Most of the world’s tech resides within it. The ideology of the region is vastly different than large swaths of the country. The nuance goes far beyond simply Democrats versus Republicans. California, solidly a blue state that overwhelmingly voted for Biden, voted very differently internally when it came to November’s ballots. Just a few counties away, we came to find that the rest of the state believes in fundamentally different values than the Bay Area. For example, the majority of residents within the Bay Area were in favor of Prop 16 while the rest of Californians were not. What this means is that even Democrats themselves cannot agree amongst each other on fundamental values. This should be concerning even to Democrats because one faction of their party has overt influence and control on the flow of the world’s information. This week’s events made it evidently clear that one’s presence on the web is dependent on the wills of those from a very small concentrated region. A region in which people outside struggle to even make their why into it, physically, because of prohibitive cost of living and limited housing. Are we going to live in a future in which all of those who do not bow to the Bay Area’s ideology will have the digital rug pulled under them? Hopefully not, but the point isn’t wether they will or not, but rather can they do it. We shouldn’t make ourselves so vulnerable.
What substance is there if the publisher doesn't follow their own advice? None.
Do you believe Fox News should be banned/censored?

What about CNN? They are as biased as Fox News.
As this doesn't use `__slots__`, every empty Array() will be 176 bytes vs the 56 bytes of [], and incur a dict allocation per array.

This is due to classes without `__slots__` gaining a `__dict__` attribute for dynamic attribute assignment.

Currently:

>>> sys.getsizeof([])
56

>>> a = Array()
>>> sys.getsizeof(a)
72
>>> sys.getsizeof(a.__dict__)
104

with `__slots__ = []` in the Array class definition:

>>> a = Array()
>>> sys.getsizeof(a)
56
>>> sys.getsizeof(a.__dict__)
AttributeError: 'Array' object has no attribute '__dict__'
I had the same experience as well. I tried NixOS once as my main desktop environment. I encountered two problems that made me switch to Ubuntu+Nix. And they work perfectly for their own purposes.

One problem is dynamically linked binaries, where the library points to a global position (like /usr/lib). In NixOS, different builds can depend on different versions of the same binary, so there is no single global location. This is not necessarily a bad thing in itself. And normal cases can be fixed with the patchelf [^1] utility. I couldn't make it work with a Z3 binary, so I finally gave up.

The other problem is when I tried to configure jackdbus. There's only one example [^2] configuration. It is marked as outdated by the wiki, and indeed none of the settings work for me.

Then I realized these two are not problems that Nix tries to solve. Pointing to a global binary is okay for some quick fixes. And JACK module is better to work out-of-the-box, I don't want to dive into all of the configurations before I haven't even used it.

Now I use Ubuntu for casual desktop applications and write Nix derivations for projects that need reproducibility. And I think I find my perfect balance.

[^1]: https://github.com/NixOS/patchelf
[^2]: https://nixos.wiki/wiki/JACK
At the very least, they shouldn't be allowed to advertise for the words "Local Craft Soda (tm)" -- especially if competitor's name is what they are buying.
Here are four quotes from politicians inciting/supporting/encouraging rioting in a much more explicit way than Trump - I say more explicit particularly because by the time they said these things, there was already widespread rioting: https://twitter.com/BernardKerik/status/1347652272852004877 (Ayanna Pressley, Kamala Harris, Maxine Waters, Nancy Pelosi).

None received frontpage news coverage, reprimands from the public, bans from social media, or even warnings.
<because those voice comms work pretty well and video is 99.8 % unnecessary anyway.

<sarcasm>

Imagine if there were a publicly available system that could switch connections directly between the end users, without the need for computers, or anything wireless? It could send uLaw companded audio in a 8,000 samples per second, to cover the 3 KHz bandwidth of human speech, with almost no latency. You could even hook circuits directly up to the end user equipment to avoid any need to share the audio channel. Because the bandwidth was dedicated on a switched channel, there would be no drop-outs or packet loss!

What an amazing improvement over cellphones and Bluetooth that would be.

</sarcasm>
I agree except for the case of Twitter. There may be alternative services similar to Twitter but they are not functionally the same because the broader public does not use it. I consider Twitter as a medium like phone or email that happens to be run by one company.
Can relate to the latter. I've left about half a dozen jobs before striking out on my own, and the places where my boss actively pleaded with me to stay were places where I was definitely an operations cost centre and a galaxy away from anything resembling a profit centre or a revenue driver.

Politics. I was competent, precocious, energetic, participated in many meetings and liaised with lots of teams with which people in my position don't usually liaise, bailed out some people in other parts of the business with unexpected skill sets and initiative, and made the manager look good.

Meanwhile, the one job I was actually fired - not laid off - from, I was sitting very close to the money train.
It would really help if there were ages attached to our profiles. I'm starting to think there's a generational component to these values. Not that younger or older is better. I'd, just like to know why this became such a disconnect in the population, all of a sudden...
Meh. A real Evil Scrum Lord makes his victims enter the data by themselves into Jira.
what about all the lies that led to majors cities being looted and burned down all summer and the 19 deaths?
why would fbi be investigating if no evidence?
I keep seeing news pundits and social media posts calling this a "coup". If you listen to the experts, this is not a coup - not even close (https://foreignpolicy.com/2021/01/06/why-this-wasnt-a-coup-c...).
Maybe you would benefit from looking up the definition of opinion...
TotallyRealDonaldTrump: An AI Replacement for the 45th President of the US
If you figure that out I'd love to know. My company has been moving things to teams and things could be much better.
I’d suggest the comments are actually not as much to do with Trump specifically as you seem to suspect.
DARPAnet is as far from
Twitter as the Wright Brothers Flyer is from a 747. There is no implicit social or legal contract. A gift is well a gift. No backsies.
Legal counsel is not essential?
My issue is more with the fact that their extension perpetuates lock-in than it being closed source.

I have yet to get a good response to how to make money in a world where everything is open source.
That it changes cores only when the window becomes invisible is likely due to App Nap - check the energy tab in Activity Monitor.

https://developer.apple.com/library/archive/documentation/Pe...

https://developer.apple.com/library/archive/documentation/Pe...
Did you use it against your political enemies in a public forum with millions listening?
Those issues transcend the discovery board. It's frustrating how much the Reference Manuals leave to the imagination. A lot of the peripherals are similar or identical across families. Some have subtle differences, and some have large ones. I haven't found a shortcut - seems you really need to bring up parallel reference manuals.

For example, the RTC periph is the same on most STM32 devices. Clocks vary significantly between families, as expected, but at their core, are just different combos of multipliers and internal oscillators, which you can break out by comparing clock trees. Things like I2C vary wildly between families, and sometimes within families.
I don't think the author attributes universal consistency to Windows? They just say that this particular issue has been 'solved' by Windows since 1998. It's been raised as an issue in Gnome since 2004 and still hasn't been fixed.

I agree with most of what they say, and I think the point is that we're uniquely bad at addressing these issues in the open-source world.

We accept a degraded UX experience (which I think this unarguably is from a normal user's point of view) because at least it's not proprietary lock-in. But it's a big reason why desktop GNU/Linux doesn't crack 2% usage. Inversely, I think this is _the_ core value proposition of Apple's ecosystem. They pay particular attention to consistent, unsurprising integration, and the Apple experience offsets their iron-grip over your device for most users. It's easier to convince someone to change how they do a task if you consistently deliver pleasant UX.

I recently had the opportunity to help a _very_ 'normal' user with their computing, and it was remarkably eye-opening watching them interact with their machine (Windows at the time, but they also use a Mac). Indeed, they hated Windows because it wasn't as consistent as a Mac, but Windows was dealing with their ambiguous interaction remarkably well I thought. Much better than a GNU/Linux DE would have.

If we want a world where normal people can use free software for their everyday computing needs this is something we need to get much better at. Forget 'normal' users even, these projects (and threads on HN) are full of _developers_ arguing back and forth that they find it infuriating/unusable. And unfortunately not many of us have the time and money to contribute code or fork projects to increase competition and spur improvements.

(also, hi again Jedd :) )
> "Since information technology products work in systems, switching any single product can cost users dearly. The lock-in that results from such switching costs confers a huge competitive advantage to firms that manage their installed base of customers effectively."

Note that this still applies in the world of free-libre software, such as when installing a printer forces you to change your init system:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863974
> Research actually backs up that deplatforming does reduce audience sizes for an outlet.

This research was done at a time when there was little to no backlash against Big Tech. When you factor in a billion+ people moving from one platform to another it is not the platform that is deplatforming users but it is the users abandoning the platform. I have seen it happen multiple times in my life: From Yahoo Messenger to Orkut, from Orkut to Myspace, from Myspace to Facebook. I have witnessed these shifts happen in India and it is crazy how quickly these platforms that had an established presence lose their dominance literally overnight. I bet that research you refer to hasn't included the Indian psyche in the mix. We move in hordes. All it takes is for one trusted and respected family member or relative to suggest jumping ship. Everyone just follows the leader blindly. Those companies that understand this psyche of Indians and cater to this mindset will do extremely well in India. But it is a double-edged sword. We don't have attachments to any platform. If we see that the platform is going against us, repeatedly, we just shift en-masse. I have seen it happen numerous times to know this time is no different (the most recent one that comes to mind is public orchestrated ban on TikTok after the Indo-China clashes. The Government was forced to ban TikTok after a majority of Indians demanded that it be banned). In few months WhatsApp will lose its dominance completely. The shift has only just begun.

If you don't believe me you can save this HN comment and revisit it in a few months from now.
I spent a few minutes thinking about your reply and I can't determine whether I also share this same opinion, although it is a set of good points.

There are parts of me that feel like services like Facebook and Twitter may not fit in this model because they've almost inadvertently become modern journalistic entities, and my concerns with them are more monopolistic than their probably justified ability (given that they have become journalistic entities to some extent) to curate, regulate, and present information.
I think part of this is because in SV a software engineer is closer to the value creation of the end product. In a traditional company, the software developers are more of an enabling function than a primary one
It sounds more like kelnos is paying for influence. Sort of like inviting your congressman to dinner and drinks rather than writing an email for free.
I'm sure they can choose more than a few. Hire to scale that up. Probably wouldn't need to make it at the video level - flag the better creators first. For subjects without recommendations, let people search to find their next video.
You say it like “getting caught in the moment” and assaulting the Capitol is something completely reasonable that anyone in that situation might do.
This seems kind of naive for many industries at the moment as for the most part it would translate to "Don't do cost-effective manufacturing".
I'd argue the reason these type of people are pissed off is because they have been incessantly attacked for 4 plus years while watching the media turn a blind eye to anything that disparages any minority or "protected class." We spent 10 MONTHS watching riots every day. DC was BURNING in July.
“Every vendor from text message services to email providers to our lawyers all ditched us too on the same day,” Matze said today on Fox News.”