venning

Joined 12 years ago

Karma
1,249
Submissions
286
Member since
Dec 22
Christopher Venning
View on Hacker News

Recent submissions

Comment · 4 days ago
The earliest reference on Wikipedia is 2011, but I was saying "Shiny Object Syndrome" and even specifically abbreviating it "SOS" by at least 2005.

I know that I first heard it from somewhere else, but I do not remember where. I'm pretty sure it was a TV show.

Does any one remember where it originated from?

Comment · 12 days ago
Oh, it's yours! Thank you.

I've been using this dataset for two years now. It's really helped me in game development; specifically being able to use words instead of hex values in things like error messages and modeling palettes. "Blunt Violet" is much easier for me to parse than "0x8d697a".

I use simple Euclidean distance to find the nearest name for each used color. As a sanity check, I keep track of all colors that I have associated with names while the game is running and get a warning message if I ever associate more than one color to a given name. Outside of messing with a colorpicker, I never get that warning, so the perceptual space between names has been great.

Comment · 1 year ago
It may be worth pointing out: these are equivalent comparisons when testing for even numbers but cannot be extrapolated to testing for odd numbers. The reason being that a negative odd number modulus 2 is -1, not 1.

So `n % 2 == 1` should probably [1] be replaced with `n % 2 != 0`.

While this may be obvious with experience, if the code says `n % 2 == 0`, then a future developer who is trying to reverse the operation for some reason must know that they need to change the equality operator not the right operand. Whereas, with `n % 1 == 0`, they can change either safely and get the same result.

This feels problematic because the business logic that necessitated the change may be "do this when odd" and it may feel incorrect to implement "don't do this when even".

I really disfavor writing code that could be easily misinterpreted and modified in future by less-experienced developers; or maybe just someone (me) who's tired or rushing. For that reason, and the performance one, I try to stick to the bitwise operator.

[1] Of course, if for some reason you wanted to test for only positive odd numbers, you could use `n % 2 == 1`, but please write a comment noting that you're being clever.

Comment · 2 years ago
Comment · 6 years ago
Comment · 6 years ago
Comment · 6 years ago
Comment · 7 years ago
> I think even the VAT is added on checkout to the price

No. VAT in Germany is not charged to American servicemen and women and dependants. This is covered under the Status of Forces Agreement (SOFA) [1]. One may also receive reimbursement of VAT paid on the economy, though that is subject to some restrictions at around €2500, I believe. There are specific rules on cars. The actual forms for receiving reimbursement are onerous enough that VAT forms aren't often used outside of major purchases.

I went to high school on an American military base in Germany in the 1990s. At least then, the major items of note were jeans and gasoline/diesel (though, I had a teenager's bias). Both were subject to significant taxation on the economy that Americans didn't need to pay on base. In practice, this meant there were some restrictions on how many jeans people could purchase at once, to prevent Americans from reselling them to the Germans. There were also special booklets that Americans could buy on base that had little tear-out pages; each page could be exchanged for a certain number of liters of fuel at, specifically, Esso gas stations on the economy. While fuel prices on base (the same rate as the booklets) were considerably more expensive than in the US, it was still far cheaper than off base.

Most of the goods available in stores on base were imported from the US [2]. All prices and payments were in dollars. We did not use pennies on the base, since they were too expensive to import. All bills/receipts were rounded to the nearest five cents [3].

I was told by a teacher at the time that the Rhine valley had "the single largest concentration of Americans outside of America." That specific area of US installations has grown in the intervening 20 years both due to the wind down of smaller Cold War-era bases scattered throughout Germany and due to the current conflicts the US is involved in, of which, most require US forces to deploy via Germany.

[1] https://en.wikipedia.org/wiki/Status_of_forces_agreement

[2] As a major exception, I believe the bases purchased civilian fuel from German suppliers directly as part of the taxation agreement.

[3] The base bank would always do business to the penny which, over the course of years, would create a small pile of useless copper in every home.

Comment · 8 years ago
It just worked for me. Opened the "web" link in an Incognito tab on Android Chrome.
Comment · 8 years ago
Comment · 8 years ago
Comment · 8 years ago
Comment · 8 years ago
As a former car salesperson, I can tell you that, in the state of Virginia, car sales contracts are not valid until the customer has physically taken possession of the vehicle. As a result, we were always very reticent to sell a car "off the truck". Customers would swear up and down that they'll definitely follow through but, most of the time, they'd just never come to pick up the vehicle and we'd be stuck trying to unwind a contract. I'm sure this is common in a lot of states.
Comment · 8 years ago
Comment · 8 years ago
Ah, thank you. I see now there are better articles. I'll update the original comment.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton