The joke is that, regardless of how the type is declared in json, you are parsing a string. (your json blob is just a series of characters, not raw binary data)
The joke is that, regardless of how the type is declared in json, you are parsing a string. (your json blob is just a series of characters, not raw binary data)
The reply would have been return x % 2 == 0
, or if you wanted it to be less readable return !(x&1)
.
But if you were going for a way that is subtly awful or expensive, just do a regex match on “[02468]$”. You don’t get a stack overflow with larger numbers but I struggle to think of a plausible bit of code that consumes more unnnecessary cycles than that…
Is this meant to be a joke or is it intended to be a serious solution?
Asking for someone who lacks a sense of humor.
Ok, fine, I’m asking for me. That person is me.
Saw one the other day with Jennifer Anniston. Good enough that it took a second to realize it was deep fake audio and video.
Years ago I once wrote a program to view logs from a system I worked on. I used the ren and stimpy log as the icon for the file extension. It still makes me chuckle on the rare occasions I work on that system…
Ignoring the content of the words, they probably spaced it out like that so they could still see out the rear view mirror.
I just watched that episode last night!
I can’t be the only one disappointed by the lack of an order by clause after being told the list was being sorted (twice!)…
That whooshing sound, in case you were curious, was the point sailing right over your head.
This is how to tell someone you haven’t checked grocery prices lately without actually telling them you haven’t checked grocery prices lately. A box of mediocre pasta alone is going to cost you $1.75. A jar of Preggo will run you another 2.50. So 4.25 for an I hate life spaghetti and marinara meal.
The sauce they make probably doesn’t come out of a jar of reconstituted tomato paste and dried seasonings either.
If you buy decent ingredients you are looking at $3 for the pasta and $9 for the sauce. Or $12 for an “ok for a home cook” spaghetti meal with no protein.
Restaurant serving sizes (for better or worse) are usually 2x+ larger than you would serve at home. Rent isn’t free for the restaurant either. Or labor. Or utilities. Or equipment. Etc. General rule of thumb is that a restaurant needs to charge 3x raw food costs to cover expenses.
So your I hate life pasta would need to be priced at $6.50 and your ok for home but not something I would be happy with getting at a restaurant pasta would need to be priced at $18.
If by simple you mean “can’t count from 1 to 10 in a loop” and by elegant you mean “easier to understand than a one line perl script” then sure…
That’s because it is absolutely terrible. It is the first serious/real “language” I have encountered since Cobol where indent level has functional meaning. This is not good company to be in.
Omg, I have SOOoo many questions about what is going on in this picture.
My guy wanted to use drones to cut hedges.
Ubisoft will own the streaming rights, worldwide. They will license those rights to other game streaming services (including back to Microsoft).
For the love of Pete can we stop with all of the lame catch phrases and dumb jokes? Spock should have just uttered something simple suiting the Vulcan personality/character, like “proceed”. But no, we have to get a lame line one step above a fart joke…
m68k assembly was my favorite back in the day.