Hacker Newsnew | past | comments | ask | show | jobs | submit | chrisoverzero's commentslogin

Time is expensive.

There’s a reason the product line that’s “a bunch of random pieces” is called LEGO Classic.

So, nothing to do with Apple Pay at all, then?


> “X has lasted a long time so it will last more” is so obviously wrong.

Smarter people than you and I have thought about this problem and come to the opposite conclusion: https://en.wikipedia.org/wiki/Lindy_effect


> is a theorized phenomenon

I wonder why they put that "theorized" word in there. It would be so much easier to say "it is a phenomenon". Only that sentence would not be true now would it?

Come on. The wiki article just connects a name to an explanation, does not prove or even claim the effect is real.


"I made my max bid $500.00, but I'd have paid $500.01!"

"I made my max bid $500.01, but I'd have paid $500.02!"

"I made my max bid $500.02, but I'd have paid $500.03!"

…where does this process end?


The way you've put it, always exactly 1¢ above your max bid.


I can't give you a precise number, but it's somewhere above $0 and below $∞


Not all phrases’ meanings are derivable from the literal definitions of the words that make them up.


But this one definitely is!


> […] 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.


I don't get your 2nd sentence: "The difference in what I’ve used" ... Can you give an example, and name the language used?


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.)


I wasn't talking about Hungarian notation. I meant more like if you see a variable named `user` or `activeUser` you know that it's going to contain a predictably-shaped data object that describes a user. E.g. it will always have a `user.id` property. I would never call an string-ish ID a user, then. I would call it `activeUserId` or `userId` or just `id` if the distinction between those was already obvious from context... But that's very different from writing `strUserId` which I never do: I try to make sure my names always convey semantic distinctions.


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.


Haha I knew you'd say that. I'm not pretending there aren't advantages to strict systems of declared types. There are many! But my point is simple to the point of stupidity: there's just more stuff on screen when you have to write `User` twice. In this simple example it looks trivially simple to write the word "user" twice, but in a reasonably-complex real example the difference will be far more noticeable.


No, we don’t mind. Go ahead.


> 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.


What makes that "most likely," other than that you thought of it?


Occam's razor?


When you have advocacy groups going around in public saying "Look, we successfully pressured VISA/MC to do this", Occam's razor would suggest that that was true.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: