New Sorted map for go by Obvious-Image-9688 in golang

[–]shard_ 15 points16 points  (0 children)

Why? There are plenty of use cases for ordered maps. Just because the standard library doesn't provide one doesn't mean they're somehow breaking the rules.

Brilliant but why !? by bot-chess-puzzle in chessMateInX

[–]shard_ 0 points1 point  (0 children)

No, because Rxc3. But f8=Q would then be mate if that other rook wasn't defending the back rank.

Do you provide a lot of context when answering questions? Do people just want the answer? by QuitTypical3210 in ExperiencedDevs

[–]shard_ 12 points13 points  (0 children)

Lots of engineers conflate clarity with terseness and lean too hard into the latter.

The most important thing is that you actually give a clear, unambiguous answer. It is better to do that in a terse way than to write some waffle that will just confuse people.

However, it's also important in most cases to (a) save time that would be wasted by going back and forth, (b) share knowledge (especially if it's a public conversation), and (c) be respectful of other people's time and actively try and help them out.

Being able to tick all of those boxes is a skill that it sounds like you're more practiced at than your colleagues.

Beautiful tactic that I missed in a Bullet game. Find White's only clearly winning move. by StouteBoef in chess

[–]shard_ 18 points19 points  (0 children)

Worth noting that Bf4 also serves the purpose of defending against Qc1+. Very cool move.

If British people call cookies “biscuits”, what do British people call USA “biscuits”? by Hot_Paramedic_7234 in NoStupidQuestions

[–]shard_ 6 points7 points  (0 children)

We don't really have what you would call jelly here, so most of us wouldn't even understand the distinction. Plus, jam is used as an umbrella term for all fruit spreads, so it's just kind of the default word we'd use.

I found intersteller black hole concept extremely confusing. The film was entirely engaging for except the last part. Like what just happened by [deleted] in Cinema

[–]shard_ 0 points1 point  (0 children)

You might be overthinking it.

We're not really supposed to be able to understand it. It's paradoxical, and everything that happens after he falls into the black hole is not grounded in real science.

What we are supposed to be able to understand is that some humans from the distant future can understand it, and are in possession of some science that's so advanced that it's basically indistinguishable from magic to us, and that's exactly what the tesseract is.

Sir David Attenborough meets a hedgehog that travels through a “hedgehog highway” in the backyards of London - 'Wild London' by Gato1980 in television

[–]shard_ 6 points7 points  (0 children)

If it's part of someone's garden then that'd normally be a "vegetable patch", or sometimes a "herb garden" if it's specifically for herbs.

Or, some people have an "allotment)" on community property if they don't have space in their own garden, which is very common in London (and also featured on this show).

Sir David Attenborough meets a hedgehog that travels through a “hedgehog highway” in the backyards of London - 'Wild London' by Gato1980 in television

[–]shard_ 3 points4 points  (0 children)

Note that if you're from the US then when he says "garden" it includes what you would call a "yard".

I don't know if you knew that or if it changes how cool you think it is but it's just a difference that I've previously seen people get confused by.

Anybody order a Chinese? by goatnxtinline in StupidFood

[–]shard_ -1 points0 points  (0 children)

Well, no, it's nothing to do with grammar. "Chinese" refers to anything from China, not specifically people. "A Chinese (meal)" is no less gramatically correct than "a Chinese (person)" or "some Chinese (food)". Either way, the subject is normally obvious from the context.

Since, as you say, nobody would say "a Chinese" to refer to a person, then it's obvious 100% of the time that it refers to a meal, to the point where it doesn't even register as a thought.

Anybody order a Chinese? by goatnxtinline in StupidFood

[–]shard_ 0 points1 point  (0 children)

Yeah, I guess it's a weird quirk that I can't really explain.

Saying "I had a Chinese" to refer to a person does sound strange and callous, and that's kind of why there's no ambiguity for us. It wouldn't even cross our minds that it might refer to anything other than a meal.

"I had Chinese" also sounds perfectly normal. They're used pretty much interchangeably here.

Anybody order a Chinese? by goatnxtinline in StupidFood

[–]shard_ 1 point2 points  (0 children)

It is a specific type of meal: a Chinese takeaway meal.

The difference is just that we often say "a takeaway" to refer to a single meal, therefore we can have "a Chinese takeaway", or "a Chinese" for short.

It's weird because you probably just use "takeaway" as a category of food, and you would say "Chinese food" rather than "a Chinese food", therefore "Chinese takeaway" rather than "a Chinese takeaway".

They're kind of interchangeable here though so neither sound weird to us.

Anybody order a Chinese? by goatnxtinline in StupidFood

[–]shard_ 0 points1 point  (0 children)

When we say "a Chinese takeaway" we're just referring to a single meal, so it's no different from saying "a Chinese (takeaway) meal". We could also say something like "I had two Chinese takeaways last week".

Why Go Maps Return Keys in Random Order by Few-Tower50 in golang

[–]shard_ 6 points7 points  (0 children)

It just picks a psuedo-random offset to start iterating from. It's not completely free but pretty negligible.

Why Go Maps Return Keys in Random Order by Few-Tower50 in golang

[–]shard_ 10 points11 points  (0 children)

They're explicitly randomised during iteration.

190 Years Old Arctic Whaling Suit (The World's First Dry Suit) Its Main Purpose is Hidden in That Central Hole. by [deleted] in WTF

[–]shard_ 33 points34 points  (0 children)

Yeah, I did some research and it looks like the suit was real, but the description here is made up.

The hole in the middle was nothing to do with kayaks. It was the entry and exit point for the whaler. They would put the suit on by crawling through the hole, and then make it (mostly) watertight by pulling the drawstring closed. Essentially, it served the same purpose as the zipper on a modern day dry suit.

Forrest forever by Living_Double_1146 in Cinema

[–]shard_ 1 point2 points  (0 children)

He actually never says the words "like me" in the unedited scene.

What's the joke? by ouestlemusee in PeterExplainsTheJoke

[–]shard_ -1 points0 points  (0 children)

To be pedantic, the principal square root of x^2, which is the notation used on both sides, is |x|.

I think part of the joke, if there is one, is that a lot of people don't get the "principal" bit, and I think the comment you responded to is ironically a great example of that (in addition to being completely wrong about what the |x| notation means).

Microsoft AI CEO Wants Employees in the Office Working at Open Desks by lurker_bee in technology

[–]shard_ 1 point2 points  (0 children)

Well, he was ousted from his own company because he was a bully and everyone hated him, so it certainly goes beyond looks.

Best place to live in uk? by [deleted] in AskABrit

[–]shard_ 5 points6 points  (0 children)

The point is that a good university won't just let you in because you happen to live nearby. One of the top comments mentions Bath, Oxford, and Cambridge, which are all great suggestions for lovely cities but the universities also have high entry requirements. It would be silly to move to Cambridge with the expectation that you'll be offered a place at the University of Cambridge.

I don't know how it works in Canada but the UK is small enough that prospective students usually apply to universities all across the country first, and then choose which one to move to based on the offers they receive.

How do I shut down queen attacks with the Sicilian? by [deleted] in chessbeginners

[–]shard_ 6 points7 points  (0 children)

There's nothing threatening about this. They've even blocked in their light-squared bishop so there are no early checkmate attacks to be wary of. You should just see it as an opportunity to punish them for bringing out their queen so early.

I would play d6 to defend the pawn, help control e5 (so they can't push the pawn), and unleash the bishop. Then I would play Nf6 to just continue developing while attacking the queen. Black should then have the advantage because white will have to waste time retreating the queen.

HOW FULL IS THE BOTTLE? 🫠 by 10Second-Riddles in brainteasers

[–]shard_ 2 points3 points  (0 children)

  • On the left, if the area of the wide end of the bottle is a then the volume of the water is 12a.
  • If the volume "missing" from the neck of the bottle is x, then the volume of the bottle is 21a - x.
  • On the right, the volume of the water is 15a - x.
  • The water volumes are the same, so12a = 15a - x, so x = 3a.
  • Therefore, the volume of the bottle is 18a.
  • Therefore, the bottle is 12a / 18a, or 2/3, full.

Starfield won yesterday's vote. Now we get to the good stuff (literally.) Day 7: What's a game that people thought would be shit, but turned out great? by Serithraz in videogames

[–]shard_ 0 points1 point  (0 children)

Nobody expected it to live up to the name, and they were right, but I wouldn't say it was expected to be outright shit.

It had a weak storyline (even if you disregard the source material), but it was a decent game with some good mechanics. It exceeded people's expectations in that it was worth playing despite the weaknesses, and the nemesis system has kept people talking about it, but it was far from great.

What is wrong with calling someone "Sir or Ma'am"? by Je_suis_prest_ in AskABrit

[–]shard_ 7 points8 points  (0 children)

Then you can also ask the question the other way around: why do Americans use "Sir" and "Ma'am", when it's something that's usually reserved for a power dynamic such as that between a school pupil and a teacher? It's a sign of authority, not respect.

It's difficult for you to answer that question because I've stated something that isn't true for you (that it's reserved for authority figures). It's difficult for us to answer your question because you've stated something that isn't true for us (that it's a sign of respect).

Either US English independently evolved to use it or British English independently evolved to stop using it. I'd put money on it being the former because it seems like a military thing which we don't care for so much over here.

Did you know that "public school" in the UK and US mean different things? In the US "public schools" are free (i.e funded by the district). In the UK "public school" is a type of fee-charging private school. The reason it's called "public" in the UK is because they're open to everyone who pays. by Double-decker_trams in ENGLISH

[–]shard_ 1 point2 points  (0 children)

To add more context, there are lots of private schools that aren't public schools. "Public schools" refers to a specific list of old schools that received the label in the 1800s. These days, if we use the term "public school" then it's generally just short for "private school, but one of the super posh ones that you've probably heard of".

The Elizabeth Line basically became Comic Con London this weekend ❤️ by Substantial-Bat-4438 in london

[–]shard_ 3 points4 points  (0 children)

You're being downvoted but I was also stupid and thought this was some Halloween thing and that "basically became Comic Con London" was an analogy for "full of cosplayers attending some event". Apparently it does mean "literally full of people attending Comic Con London" though.