letsgo

joined 1 year ago
[–] [email protected] 23 points 6 months ago (6 children)

Yal'l n'eed t'o lear'n a'bou't apo'str'phe pl'ac'em'en't'.

[–] [email protected] 1 points 6 months ago

I'm Guy your friend, not!

[–] [email protected] 1 points 7 months ago

Yes. You're conflating Europe with the EU. You don't have to be on the Continent: Iceland is in Europe according to Wikipedia.

[–] [email protected] 1 points 7 months ago

You should update Wikipedia. https://en.wikipedia.org/wiki/Europe still includes all the British Isles.

(What Brexshit brought us was an exit from the EU. Not Europe.)

[–] [email protected] 1 points 7 months ago

I picked the M60 instead of the M25 because I figured some nerd would point out that the M25 isn't a closed loop.

Didn't occur to me at the time that that nerd would be me.

[–] [email protected] 32 points 7 months ago (11 children)

European here (Brit). I could drive for 13 hours along the M60 and still be on the M60. No problem comprehending that.

[–] [email protected] 1 points 7 months ago (1 children)

Here's a cool song about solid potato salad https://youtu.be/PTfA9oXbRNk?t=84

[–] [email protected] 1 points 7 months ago

Yeah it always feels like "negative logic" to me. If it's not this and not that then don't do the other... Does my head in. Next time I'm going to use a lookup table "x..f.bf..fb.f.." then mod15 the index. f=Fizz, b=Buzz, x=both. Nice thing about this is that it's easier to change with the requirements. Want to shift the second fizz right one? No problem "x..f.b.f.fb.f..". Good luck doing that with the standard approach. Add Gronk which collides with Fizz, Buzz or both at various times? Also no problem - just extend and modify the LUT accordingly and change the mod.

I can already hear people asking why x is at the start. Arrays are indexed from 0. FizzBuzz starts at 1. 15 mod 15 is zero. Loop N from 1-100, switch on lookup[N%15], case 'f' print Fizz, case 'g' print Gronk, case 'p' print FizzGronk and so on. The only "nice" original feature you lose is when both %3 and %5 fire at the same time and it prints FizzBuzz without any extra code.

[–] [email protected] 121 points 7 months ago (2 children)

Brit here. It's great to be part of a country that brings so much joy to so many people.

[–] [email protected] 9 points 7 months ago (3 children)

The previous candidate to me at a job a few years ago left the room in tears after not being able to write Fizzbuzz. On a laptop with Visual Studio installed, on their own in a an empty room with nobody looking over their shoulders. The same company said they'd had so many candidate, including university graduates, who simply couldn't code, that they were almost giving up on it.

[–] [email protected] 3 points 7 months ago

We like mixing them up too. Tyres are measured using three numbers, two of which are in mm, the other (wheel diameter) is in inches.

[–] [email protected] -1 points 7 months ago

In the UK it was originally based on something like the 85th percentile: the speed most drivers would normally pick for the road given no imposed limit.

These days it's more based around what politicians live where, so we have dual carriageways with central reservations, which would normally be 70mph, but because some fancy nob has a house there and doesn't like noise, it's got to be 40mph. They don't say that though, they say it's down to too many accidents in the area, or speed reduction for air quality or some other nonsense (if it was for air quality then the limit'd be 60mph due to the designed-in peak efficiency at 55mph).

view more: ‹ prev next ›