HN user

chrisoverzero

860 karma
Posts0
Comments237
View on HN
No posts found.

Mhm! Exactly! In the system those other languages use, once you see the variable’s declaration:

    User activeUser
…you’ll always know that `activeUser` contains a User value – something that might have an `Id` property. And the convention is enforced by the language, so it’s easy to communicate. These semantic distinctions are very useful, I agree.

Sure! Let’s say I want to enforce that a variable only ever holds an integer. Rather than put the conventional prefix and the name together, like this:

    var intValue = 3;
…I separate the conventional prefix with a space:
    int value = 3;
…so now my co-workers don’t need to remember the convention – it’s enforced by the language.

(I hope this makes the joke more obvious.)

[…] it shouldn't take long at all for people to learn the highly consistent naming conventions that tip you off to what type of data is being handled.

I’ve used languages with an approach like this. The difference in what I’ve used is that you separate the conventional part from the rest of the name with a space (or maybe a colon), then only refer to the value by the non-conventional part for the rest of the scope. Then the language enforces this convention for all of my co-workers! It’s pretty neat.

Luckily, since type constraints are part of the signature of the method and there is no ambiguity, I am allowed to make this overload.

This isn’t the case. It’s allowed because the question-mark syntax means two different things in value- and reference-type contexts. The signatures really look like this:

    public static IEnumerable<TR> SelectNotNull<T, TR>(
      this IEnumerable<T> source,
      Func<T, TR> fn)
      where TR : class // …and the nullability of TR is tracked by the compiler

    public static IEnumerable<TR> SelectNotNull<T, TR>(
      this IEnumerable<T> source,
      Func<T, Nullable<TR>> fn)
      where TR : struct
This is an allowable overload.

- Translate feature doesn’t have a copy button

Sure it does. It’s labeled “Copy Translation”. It’s the first button under the translation for un-editable text.

- Multitasking (apps should shut down after some time spent idle, instead they have to be manually closed)

Apps that aren’t working in the background shut down effectively as soon as they lose focus. Don’t let the list of screenshots fool you – those aren’t running. Don’t waste your time swiping them away.

Is the answer (ROT13 for spoilers):

V vzntvar gung vg pbhyq abg or orpnhfr Frg erdhverf gur rkgen fngvfsnpgvba bs Rd, evtug?

After looking it up: Nu, lrf, ohg Beq. Vagrerfgvat ubj gung vzcyrzragngvba qrgnvy yrnxf.

Even later: Unat ba, gurer'f ab jnl vg pbhyq or rira vs gung fngvfsnpgvba pbhyq or birepbzr! Vzntvar n frg pbagnvavat sbhe naq artngvir sbhe naq lbh znc `fdhner` bire vg… Gur fvmr bs gur pbyyrpgvba jbhyq punatr!

Where are you from that you consider all of these groups to have the same pronunciation?

if you don’t have an explicit type hint in a variable declaration, even readers that are using an IDE have to do TWO jump-to-definition actions to read the source of the variable type.

This isn’t necessarily the case. “Go to Definition” on the `val` goes to the definition of the deduced type in the IDEs and IDE-alikes I’ve ever used.

I want superiority de-coupled from technical expertise in the minds of the people who have the latter.

Taking his personal struggles out of kernel development and onto Hacker News was the escalation – pointing out his hypocrisy is only trying to get people who agree with him to realize that they’re wrong.

No, they had the option of having a real conversation in private about what we could do to improve the overall situation.

Abusing others individually in public, but expecting a quiet word on the side about “the overall situation” when it comes to your own behavior. I hope you realize something from this.

Who Owns Nebula? 2 years ago

You clicked on a video from Real Engineering titled “How Nebula Works” hoping to get answers to legal and financial questions? I think videos with titles like “How Internal Combustion Engines Work” would also deliberately dodge legal and financial questions. Because they’re not what the video is about.

I find it even more bonkers than that, even. Let's "frictionless vacuum" the problem: I live in a home in which all we eat is breakfast cereal. We need one spoon and one bowl per meal per person. But we own 25 bowls and 40 spoons. When we run out of bowls (that is, when the "dirty" dishwasher is running with a complement of 25 bowls), the "clean" dishwasher still contains 15 spoons. At the next mealtime, we each get a spoon and a bowl. When we're done eating, we put the dirty dishes in… Well, not either of the "clean" dishwashers!

It becomes absurd faster when you consider what a realistic household would own and eat and use. "There's no unloading necessary," he says. Absolutely ridiculous.

見える only means “look” in the “to seem” or “to appear” sense.

Often in English, we have multiple words for sensory experiences to indicate how much focus is put into the action. “Seeing” a picture is less focused than “looking at” a picture. “Hearing” a song is less focused than “listening to” a song.

[…] rather than collaborate with the creators.

How do you propose AWS “collaborate” with Elastic or Redis Labs under the terms of the SSPL? Also, who do you believe the creators of Redis are?