if (bed->isTooCold()) {
return;
}
proud recipient of the prestigious you tried award.
- 2 Posts
- 129 Comments
affiliate@lemmy.worldto Programmer Humor@programming.dev•When the requirements are "final"8·23 days agowe have always been at war with Eurasia.
yeah exactly. i understand it as follows:
- in the manhattan metric, points have length one if the lengths of their coordinates sum to 1. so you get the points (1, 0), (0, 1), (-1, 0), and (-1, -1). and then you connect these four points with straight lines to get the diamond shape. this follows from the observation that if the x coordinate decreases in length by 0.1, then the y coordinate must increase in length by 0.1.
- in the euclidean metric, the points of length one lie on the unit circle, since x2 + y2 = 1 is the equation defining the unit circle.
- in the chebyshev metric, points have length 1 if one of the coordinates has length 1 and the other coordinates have a length smaller (or equal to) 1. and these conditions also describe the square with sides x = ± 1 and y = ± 1.
i think that’s a good point and that is a nice way to remember them. i think a lot of it just comes down to personal preference.
i like calling them the diamond/square/circle metrics because those shapes describe the sets of points that have unit length. i’ve found this wikipedia picture to be very helpful, and the diamond/square/circle terminology is my way of paying my respects to the picture.
i wish that it was more common to refer to the metrics in terms of what they are instead of who discovered them. i can’t ever remember off the top of my head if the chebyshev one is supposed to be the diamond metric (L1) or the square metric (L∞).
affiliate@lemmy.worldtoMicroblog Memes@lemmy.world•Ser Davos destroys Connor McGregorEnglish20·24 days agoi’m guessing he got punched in the head a few too many times
☝️🤓 that would still only be a quadratic rate of increase, not an exponential rate of increase
what if they were all named odysseus
it’s in situations like this where i eat a few spoonfuls of peanut butter and then call it a day
this will be a competitive prompt engineer salary in about two years time.
affiliate@lemmy.worldto Showerthoughts@lemmy.world•I wonder how many male, middle aged US filmmakers regularly call it a "director's cut" when carving up the thanksgiving turkey for their family.6·3 months agoi’m going to start saying this at every thanksgiving. if anyone questions me i’ll just say i’m the acting thanksgiving director.
affiliate@lemmy.worldto Programmer Humor@programming.dev•iJustInventedSomethingEveryDevNeeds7·4 months agobut i don’t want to print my screen, i just want a picture of it.
affiliate@lemmy.worldto Programmer Humor@programming.dev•I want a programming language that supports German style composite words7·4 months agoi will never forgive them for making the pointer type be
T*
instead of&T
. most confusing thing ever.don’t even get me started on C++ making
T&
the reference type and then makingT&&
be something other than the double reference type.
affiliate@lemmy.worldto memes@lemmy.world•You keep your Western food science. I've got an immune system. Thanks.0·5 months agothe post is highlighting the hypocrisy in refrigerating milk while also being against milk pasteurization, since both of those practices have been done for around a hundred years and serve to make milk last longer and be safer to drink.
god, what a beautiful language. it brings a tear to my eye
i will never forgive C for making the type syntax be
char* args[]
instead of the much more reasonable
&[char] args
it also bothers me that
char* args[]
andchar c
are “the same type” in the sense that the compiler lets you writechar c, *args[5];
with no problems. i think the C languages would be way easier to learn if they had better type syntax. don’t even get me started on C++ adding support for
auto fn_name() -> ReturnType { … }
affiliate@lemmy.worldto Programmer Humor@programming.dev•The government doesn't use SQL14·5 months agoi agree but would like to add that it’s generally good practice to stay away from rockets
affiliate@lemmy.worldto cats@lemmy.world•You know what they say about curiosity and cats9·5 months agomy condolences to your kitchen floor and kitchen counter. they are in for a rather unpleasant surprise
the only possible way this could be worse was if it was called CloudChain and also had weird blockchain/crypto nonsense.