this was about the gender of the cactus from pvz btw
img
  • 132 points Snynapta_II

    Reposting your own one with 0 upvotes or anything?

    parent
    109 points Omega97Hyper

    yea

    parent root
    57 points S1L_1108

    Understandable, it's pretty good

    parent root
    42 points Omega97Hyper

    thx dawg

    parent root
    17 points Ridenberg

    my party's representative when, after losing at presidential elections with 0% of total votes, i post my candidature again

    parent root
  • 40 points HeavyCaffeinate

    Ok but like returning 0 is the main definition of success

    parent
    20 points Omega97Hyper

    oh shit did i get them mixed up

    parent root
    13 points HeavyCaffeinate

    https://www.geeksforgeeks.org/cpp/return-0-vs-return-1-in-c/

    parent root
    19 points Omega97Hyper

    i meant binary

    https://preview.redd.it/w2mg8ri5d46g1.png?width=334&format=png&auto=webp&s=4ba1e85d7ad934f0e0ad9f033af4b3c9e17e87bd

    also why does c++ do it like that

    parent root
    9 points beephod_zabblebrox

    c++ doesn't do it like that

    in both c and c++ 0 can either mean success and failure.

    for a lot of functions, 0 means success, and any other number specifies the type of error that has occured.

    other functions might return a boolean (so 1 - success, 0 - failure)

    sometimes functions need to return some meaningful value, and if it can only be positive (such as size), they can use negative nulbers for error codes. but also sometimes its not possible to return negative numbers at all.

    c++ can also throw exceptions, or return std::optional or std::except. or whatever depending on the codebase

    parent root
    4 points Dario48true

    Also when returning pointers 0 (or NULL) is the return for errors

    parent root
    1 points backfire10z

    Hey, C++ has a nullptr_t type specifically for this

    parent root
    3 points GamerNumba100

    In my unprofessional opinion, returning a number error code without wrapping it or throwing an error or anything is cringe

    parent root
    3 points beephod_zabblebrox

    for c++, yes. for c, theres no other option really

    parent root
  • 39 points icantusethatusername

    0 bits are perfectly valid. Also who argues about the gender of a cactus from a phone game shits weird

    parent
    27 points MakkuSaiko

    Also, i would imagine gender and sex for plants would be way beyond what we are accustomed to

    parent root
    9 points HeavyCaffeinate

    https://en.wikipedia.org/wiki/Schizophyllum_commune#Mating

    parent root
    0 points SignificantFish6795

    That's not a plant. They specifically asked for plants.

    parent root
    2 points HeavyCaffeinate

    Right, sorry

    https://en.wikipedia.org/wiki/Plant_reproductive_morphology

    parent root
    16 points Kanabislover2469

    The funny thing about this tread is that cactus is canonically a woman and the guy just didnt want to accept it

    parent root
  • 11 points Kanabislover2469

    I've been there, this guy is weird

    parent
  • 3 points DragoKnight589

    IIRC the Garden Warfare cactus is female but idk about the cacti in the tower defense games… ok just checked the Suburban Almanac in the PVZ1 app, the Cactus is also female there.

    What was the discussion about?

    parent
  • 2 points Ok_Mango5117

    like literally just read the sticker book or HEAR HER VOICE FROM BFN OMFG

    parent
  • Hacker News
    • Top
    • Best
    • New
    • Ask
    • Show
    • Jobs
  • beta Hugging Face
    • Posts
  • Reddit
    • r/programming
    • r/technology
    • r/science
    • r/news
    • r/gaming