skysight-inc/HackerNews huggingface dataset:
Ask HN: How to be a good technical team leader
Those of you, who have been promoted from senior dev / architect roles to team leads or product owners - can you point me to some good resources or give some experience-based advice about how to successfully lead a dev team, and how to stay on a good enough level of technical knowledge to evaluate solution proposals while retaining sanity?

Background: I started at my current job 2 years ago and quickly moved up from dev to architecture. As time goes by, I get more and more involved in high level discussions about our products and need to delegate almost everything that is not talking, listening and doing powerpoints to 'my team' (I decide what they are doing day-to-day, but I do not have recruitment or budget responsibilities) which currently consists of 10 people, but will soon double in size.
I am not overexcited about this, as I would have liked to spend more time understanding nitty gritty technical details, poc coding and having fun with solving problems, but in our current situation there is nobody else who can take my role.

Problem is, I consider myself to be bad with people. I am female (my team is exclusively male), and neurodivergent, and while I have reasonable general social skills, I feel like I need a lot more data to know how to handle various situations, especially not-happy-path. I understand that nothing replaces hands-on experience, but any advice is highly appreciated.
Of course there is no need for them but I am just used to use one and I would miss it.
First of all, I think "AtomicExchange" will return previous value of "spinlock". First parameter ("spinlock" here) is actually a pointer to "spinlock", not the value itself. Second parameter is what should be swapped with the memory address.

So it atomically stores true to "spinlock" and returns whatever value it contained previously. While-loop is comparing against the previous value, what was swapped from memory.

Unless "spinlock" wasn't false in the first place, the loop can only terminate when the other thread eventually stores false to "spinlock". After that point, one of the waiting threads will suddenly swap that false into true and notice the previous value was false, meaning the lock was successfully acquired.

So until the other thread releases it by storing false to "spinlock", there'll be just endless swaps of true.

I wouldn't recommend using a spinlock like this, because it probably causes a lot of unnecessary and avoidable cache coherency traffic [0] between all of the contending CPU cores.

[0]: Unless, of course, CPUs contain some instruction stream pattern matching to detect this situation (swapping in same value the memory address contained before) and optimize the endless stores away. Wouldn't surprise me at all if such optimizations existed on modern x86 silicon...
Looks like they're ahead of this problem already.

https://twitter.com/zbeekman/status/1136250914539483136

> Once Homebrew no longer has to support a macOS with a system ruby, we can even run with a considerably more up-to-date version, modulo concerns for supporting older linux(brew) OSes. We have a portable ruby that we can use to bootstrap things.
Sweating isn't just a result of physical exertion. Have you never been in a sauna?
Would it appear to be fixed in place if actually moving down the screen?
That falls under my "hire the devops" criticism. A "devops team" is a bad idea. This is a blurry line, because it's also a good idea - that is, hiring someone (or a team of someones) whose job it is to think about, plan, and implement the devopsy things. But it too often comes with an attitude that development doesn't need to change, and ops doesn't need to change, and can't you just build something to make the stupid stop hurting? And then you spend your day either fighting fires in the build system or surfing Facebook and wondering where you went wrong with your career... but I digress.
Peak for whom? WASPs?
>Google Has Quietly Dropped Ban on Personally Identifiable Web Tracking

When Google bought the advertising network DoubleClick in 2007, Google founder Sergey Brin said that privacy would be the company’s “number one priority when we contemplate new kinds of advertising products.”

https://www.propublica.org/article/google-has-quietly-droppe...
For me, all the time.

I can't install software at work, so a web app would be the only to access my stuff during the work day. I also have a shared computer in my living room that I don't install personal apps or log into personal accounts on. Web apps let me quickly access something there when I need to and log out easily.
She is listed in the physics section.
Article says “Michelin has introduced a .... [tire] that has no traditional sidewall”. So seems like it may not.
WWDC was the wrong place to announce the 2019 Mac Pro, period. It’s not a developer machine, at least for people developing iOS and Mac apps.

A more appropriate venue would have been a special media event in, say, Los Angeles, amid all the high-end post houses and VFX shops that can actually justify investing in both the Mac Pro’s pixel throughput and the Pro Display’s reference accuracy.
I completely disagree.

There’s no one who would buy this display who thinks that’s an appropriate stand:

1. People who are going to buy it professionally are going to buy the more functional stands at the same price point. No, I don’t mean more utilitarian — they’re either way more functional or nicer and more functional. Apple missed the price curve for high end stands. They’re also not going to move the $5k TV stand to stand — they’ll just buy two.

2. The people who buy $5k TVs for personal use generally are price sensitive enough that an extra $1k is worth considering — and will either get one of the nicer stands, eg cabinets, or will get a cheaper option.

I think they have the Tesla problem: they’re off the cost curve, in that they deliver subpar quality for the price — but unlike Tesla, they’re relying fully on brand to justify that. Tesla at least was selling a relatively new kind of car.
These roles have been historically disastrous for me with no exception because they shared common problems that kept me from doing my job:

1. All talk and no support for automation. I want to be rich, handsome, and well-liked too but none of that happens without a lot of serious work if I’m just a pretty face with a horrible personality and refuse to admit that’s a big problem

2. Reactionary (vs responsive) culture - all the bad, none of the good of what allows agility. If there was vision and a real need to deploy more often, that would have been solved as a priority to help speed. Instead, all had been around for 5+ years cobbling together bad processes, tribal knowledge first, and burn-out of engineers related to the failing processes was the rule not exception.

3. Lack of understanding of how to grow beyond a certain engineering maturity level - ceremonies over results and design is common as a reaction. A lot of companies do “Agilefall” for example and watch quality and throughout drop like a rock. I’m not sure if there’s an equivalent portmanteau for “Devops tools and processes with none of the benefits of automation and all of the drawbacks of code”
My $200 pivoting stand came with an entire screen for free.

Granted, it's not nearly as nice as Apple's stand. But I suspect the reception would have been a lot better if the narrative was "the $5000 screen comes with an ok stand, the great one is $1000 extra" instead of "lol, the $5000 screen is useless unless you buy a $120 Vesa mount plus some off-brand stand, or the $1000 official stand"
I guess it would be very difficult to create the internal structure, and especially keep the internal structure separated from the sidewall (which would make the entire thing undesirably rigid)?
A lot of luxury-priced cars also have little particularly luxurious about them. The expression "you pay for the badge" comes to mind, which is precisely what luxury branding is about: the value of a $1k stand is that you paid $1k for it regardless of practical considerations, just because you could.
As someone that will only have taken his car away from him by prying the keys out of his cold dead hands, car parks really are a sad sad thing, all of that acreage wasted on tarmac that could be community gardens or even just pleasing green grass and local wildflowers.
That's true of advertising in general and not third party advertising in particular.

Somebody else posted what I think is the correct answer - it removes the possibility of a third party showing inappropriate content to kids.
For the liberal democracies of the time. I wasn’t there, so I can’t comment as to which specific demographic benefited the most from that.
Economics of Privacy
Speed isn't necessarily the reason you take an Uber though. I used to use them a lot more when I worked for a client in London and would have to head back to the railway station after a few days with my suitcase. It wasn't fast, but it did mean I didn't have to drag a suitcase through the London Underground at rush hour (not fun).

If you want to get places fast in London, as the article suggests, you want to be on two wheels. Cycling is probably the best option, but motorcycle or scooter also works well.
It serves the side effect|purpose of making people actionable literally from birth. That is, if some day you become an inconvenient someone for people in power, it's just a matter of finding something you did in the past that can ruin your life Cardinal Richelieu style.
> Like what's the message here?

The message is that Apple shit is so top of the line that even our monitor stand is an uncompromising work of art.

It’s really not that complicated, it’s a textbook luxury branding and pricing strategy. Ever seen a Restoration Hardware catalog? They sell painted tree stumps for $1000.
What we learned from Infosecurity Europe 2019: GDPR, budgets and people problems
Performance Improvements in .Net Core 3.0
Performance Improvements in .Net Core 3.0 - https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core-3-0/
“Hey Siri, retract the bed into the rear of the kitchen wall and spin the bathroom 180°.”
I've only owned a car for 3 years or so when living in California. For my other locations (university towns in Germany and UK, capital cities in Europe and Asia) there is really no need. (Maybe different if you have kids.)
Should such tires be available to the general public? Many locations rely on tire shredders for perimeter security. These measure will become useless. As will spike strips used by law enforcement. How will police be able to stop fugitive vehicles equipped with puncture-proof tires? Some sort of remotely activated kill-switch will have to be mandated.
Facebook Investors Vote for Change at Top. But They Can’t Win
Thanks for this info. What I really want to know is the value prop for learning/using monads etc. The examples of IO, State, Maybe, List, STM given seem like they'd be dealt with just fine in Clean.
Valery Legasov – the hero that saved Europe from Chernobyl's disaster
>Several years ago I devised a little test to find out what style of thinking people use: Access your memory on church steeples. Most people will see a picture in their mind of a generic "generalized" steeple. I only see specific steeples; there is no generalized one.

Yet, she identifies all these pictures of steeples as the same thing, which is an abstraction of the particulars. That is different than only associations between particulars in animal thinking.

Also, take care you are not making the genetic fallacy by referencing Dr. Egnor's background:

https://en.wikipedia.org/wiki/Genetic_fallacy
> The last thing I want is another bespoke logging solution or ORM.

A recent place I worked had a home-grown ORM -and- Object Model written in Perl by one "dedicated" person many years ago. The root cause of many problems...
>Google has been accused of breaking promises to patients, after the company announced it would be moving a healthcare-focused subsidiary, DeepMind Health, into the main arm of the organisation.
The restructure, critics argue, breaks a pledge DeepMind made when it started working with the NHS that “data will never be connected to Google accounts or services”.

https://www.theguardian.com/technology/2018/nov/14/google-be...
Theoretically, if the number of bytes to be removed were a multiple of FS data block size (usually an inode size), it should be possible to unlink that inode as well, and rewrite the metadata. It probably involves fewer shifts and fewer bytes/time wasted.

In general, if you intend to create structures that allow one to reduce file size, reclaim the data, defragment - that sort of thing, a rewrite/coalesce happens to be the viable solution. In general, if allowed to increase, fragmentation will worsen with time.
I think if you don't call it out as a separately sold product at a high price people would feel misled.
> Theoretically, the tread life for the Uptis is the same as a standard tire

Imagine the disaster a much longer tread life on this tire would be to Michelin and tire shops. Even if Michelin could maintain their profit with proportionately higher prices, tire shops would be hammered by a long life tire.

I'm not claiming that such a tread is out there and being suppressed. But if it were a plausible but expensive engineering problem there would be a great incentive, especially by market leaders like Michelin, not to pursue it.

But wouldn't it be wonderful to buy a car with tires that are expected to last as long as the rest of the car. I can dream.
And there are probably (hopefully) a lot of safety certifications to go through after you start testing.
I know, but this wasn't the case when it started. Besides, I believe the parent's point was that nobody uses ruby or perl for anything anymore, regardless of whether it's preinstalled or not. Which is obviously silly when looking at homebrew's internals.
> You can have 2x and 3x side by side without having to reinstall and uninstall anything.

You can do that anyway, `python` is always Python 2 (except on Arch where `python` is Python 3 and the Python 2 executable is `python2`) and the Python 3 executable is called `python3`. `pyenv` is more for keeping multiple minor versions of the same major version (e.g. Python 3.6 and Python 3.7) around at the same time.
Furthermore, in relation to the title of this article, I wouldn't say the invention of his parachute killed him. It was just the force of him hitting the ground once his invention failed to work. ;)
Maybe in the US, but most citizens of the other democracies at the time were neither anglo-saxon nor protestant.

You might say that they were at their peak for the majority of their population maybe, but I think that's the normal, intended outcome of democracy.
I’ve seen the exact same design crash and burn three times from
respectable companies in the bicycle and motorcycle world.

Hard ride, bad traction, pain in the royal butt to service or install...i don’t see these things changing just because the tire’s on a car now.

i predict we hear nothing else about this design.
The author here.

You are right.
I basically build my apps for myself who always use the same computers.
I understand there are various people with various needs - but I would like to focus on pleasing people who are similar to me.
I believe this is important to provide a good service.
I don't feel like making apps like Microsoft Office with tons of features to please everyone.
I'm not sure this is true in Copenhagen, although I've only visited once and I don't have any data to back me up. There is a huge cycling culture there and it seemed that the bike lanes were often pretty badly jammed up while the car lanes were relatively clear. But perhaps this is more a result of it being impractical to own a car there (eg parking) as opposed to the cost or convenience of operating one.

It would seem to be an outlier so it would be interesting to see some data.
Crowdsource
I've always said that freedom (liberalism) and democracy is actually unnatural. People do not want freedom and democracy, they want authoritarianism that favor their point of view or agenda. The problem is that we have different points of view or agendas.

Example: Look at New Zealand after the mass mosque shooting. People support the actions taking which include banning owning or reading the guy's manifesto. Owning it means up to 10 years in jail and/or up to $50,000 in fines.
The legend adds that he was removed from the Bull and then thrown from a cliff ; I suppose the ruler did not want to be associated with using the device for its intended use.
Why are the pictures so fuzzy?
I can't believe that nobody has posted https://xkcd.com/2142/ yet!
You have to bless the spot by circling it three times first.
Deep Learning Explainability: Hints from Physics
They claimed multiple times publicly that they weren't scanning emails of students of schools that forced students to use Google email and Chromebooks, when in fact they were using them to build ad profiles.

https://www.edweek.org/ew/articles/2014/03/13/26google.h33.h...

"While the allegations by the plaintiffs are explosive, it’s the sworn declarations of Google representatives in response to their claims that have truly raised the eyebrows of observers and privacy experts. Contrary to the company’s earlier public statements, Google representatives acknowledged in a September motion to dismiss the plaintiffs’ request for class certification that the company’s consumer-privacy policy applies to Apps for Education users. Thus, Google argues, it has students’ (and other Apps for Education users’) consent to scan and process their emails."

"In November, Kyle C. Wong, a lawyer representing Google, also argued in a formal declaration submitted to the court in opposition to the plaintiffs’ motion for class certification that the company’s data-mining practices are widely known, and that the plaintiffs’ complaints that the scanning and processing of their emails was done secretly are thus invalid. Mr. Wong cited extensive media coverage about Google’s data mining of Gmail consumer users’

>Mr. Wong’s inclusion of the following reference to the disclosure provided to students at the University of Alaska particularly caught the attention of privacy advocates: The University of Alaska (“UA”) has a “Google Mail FAQs,” which asks, “I hear that Google reads my email. Is this true?” The answer states, “They do not ‘read’ your email per se. For use in targeted advertising on their other sites, if your email is not encrypted, software (not a person) does scan your email and compile keywords for advertising. For example, if the software looks at 100 emails and identifies the word ‘Doritos’ or ‘camping’ 50 times, they will use that data for advertising on their other sites.” “The fact that Google put this in their declaration means we take it as true,” said Ms. Barnes of the privacy watchdog group EPIC. Google’s sworn court statements reveal that the company has violated student trust by using students’ education records for profit.”

https://www.washingtonpost.com/news/grade-point/wp/2016/02/0...

https://www.eff.org/press/releases/google-deceptively-tracks...
Looks like the sort of thing you see at the early stages of a magic mushrooms or LSD trip.
EverQuest’s long, strange 20-year trip still has no end in sight
You can certainly listen to audiobooks, music or podcasts in a car. You can also have a private conversation with the passenger. Driving is by no means "lost time" for many people.
I didn't mean how far in Haskell without monads. I meant how far in something else like Clean that uses uniqueness typing to handle some of the same aspects where monads would be used with Haskell.
> Because you don't want to waste an hour or more every day standing around waiting on a train/bus?

In the train (or while waiting for the train) I can read, listen to a podcast or audiobook (with full concentration and no interruption), eat, and even work. That is not a waste of time for me.

Driving, now that is a waste of time.
> After accounting for your average American family of four (or just the weight of two men and two women) at 728lbs

Sad, but true! Society should really charge people for the externalities of being obese or overweight.
I slept on the floor for 6 years, only getting a bed several months after I bought my house. No furniture either other than two fold out tables for old Unix work stations and a bean bag.

It’s an excellent method of birth control; no bed that is. The work stations don’t help either.
I like your enthusiasm but I am afraid you are overambitious. For me, it sounds a bit like GSuite alrernative hosted on Google Cloud. It doesn't make sense to me. What is the advantage of it being opensource when it is hosted by you. I have been hosting my own NextCloud instance on a bare metal server for years, email (exim, dovecot, roundcube), dns (bind) and it all replaced gsuite for me, they are awesome libre and OSS projects. Of course managing it is not easy and not something every enduser should be doing. But this is how the internet was expected to work in the beginning - decentralized. If you start building gsuite alternative, you will end up being gsuite anyway because of all the availability and large-scale management. You will be using third party public clouds, networks and it will be expensive and you won't be able to guarantee it will continue to work for next years and people don't want their email to stop working. Anyway, good luck! I would like to be wrong!
Honestly just having access to a few extra layers and modifiers on the thumbs can greatly reduce the size of a board and improve ergonomics. I can't use boards without thumb clusters anymore! Once you have access to those layers/mods the amount of finger-extension and wrist shifting while typing is extremely reduced. I took this to a logical extreme with Georgi [1], which is surprisingly usable for programming work despite it's size!

I would love to see more boards adopt a chorded [2] approach. I spent a bit too much time with the steno crowd and some of their ideas rubbed off. Even applied to a traditional keyboard simple chords can reduce motion and improve speed. On average I don't have to move more then half a key on Georgi and my wrists thank me for it :)

[1] https://www.gboards.ca/

[2] http://docs.gboards.ca/
> and for everyone else it’s a cue that this brand is absolutely top end prestigious and expensive.

Prestigious? Not really. There's one word which sums up a product like this: overpriced. Expensive doesn't describe if its worth it.

And given I seen some Louis Rossman videos recently: recent Apple hardware is overpriced as well. Its bug ridden which I wouldn't expect with regards to such price tags. And I say that as an owner of 2 MBPs (4 in total).
D-Day succeeded thanks to an ingenious design called the Mulberry Harbours
I think people are reading more into this than is there. They're just not going to ship their own (outdated) versions of these anymore because they're not needed in the core OS. You can just "brew install" them, which most people who actually use them do anyway because the stock versions are too old.
Entrepreneurship Is Dying
Sounds like a wonderful market opportunity for a “disruptive” startup. As much as I dislike Tesla for other reasons, building tires that last for the life of the car would probably be good for their bottom line.
As someone with a degree of practical expertise in Tires both automotive and cycling, who has seen this idea come and go a lot of times, I too remain fairly confident this tire will be fairly terrible compared to pneumatic tires, and useful only in fringe use cases where getting flats is a serious problem.

I will of course be happy to be wrong!
I see some reasons to do so.

You can write a blog in Markdown and generate your own static website with it, you could write a diary in Markdown, which I do, or you could take notes of code implementation, which could require LaTEX for nice mathematics and code fences to organize small chunks of code.
> I wish it supported more!

C++17 https://github.com/mit-pdos/mcqc

Scala https://github.com/JBakouny/Scallina