• 0 Posts
  • 23 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle

  • ApexHunter@lemmy.mltoProgrammer Humor@lemmy.mlcoding chess
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    5 months ago

    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…




  • Agree no difference as an ingredient in some baked dish.

    But if you are eating the egg by itself or as the primary item, there is definitely a difference in taste. Not a revolutionary change your life difference, but still a difference.

    In my experience the difference is pretty small amongst the options in the grocery store, but fairly noticable for eggs I get from the farmers market.





  • 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.