HackerLangs
TopNewTrendsCommentsPastAskShowJobs

chrisoverzero

no profile record

comments

chrisoverzero
·قبل 4 أشهر·discuss
> “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
chrisoverzero
·قبل 6 أشهر·discuss
"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?
chrisoverzero
·قبل 6 أشهر·discuss
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.
chrisoverzero
·قبل 6 أشهر·discuss
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.)
chrisoverzero
·قبل 6 أشهر·discuss
Not all phrases’ meanings are derivable from the literal definitions of the words that make them up.
chrisoverzero
·قبل 6 أشهر·discuss
> […] 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.
chrisoverzero
·قبل 7 أشهر·discuss
No, we don’t mind. Go ahead.
chrisoverzero
·قبل 4 سنوات·discuss
> Which is why yelling "FIRE!" in a crowded theater is also not speech (despite people also thinking that's another gotcha example to free speech)

Next, you’ll be telling us that it’s OK for the government to arrest socialists for passing out anti-war flyers.
chrisoverzero
·قبل 5 سنوات·discuss
> I did not edit my posts after reading their reply, and the false accusation was that I changed my comment after it was replied to.

Replies exist before you read them.
chrisoverzero
·قبل 6 سنوات·discuss
It’s really great to see how far Dreamwidth has come since the start.