• Hanzito (unregistered)

    For those not completely up-to-date with modern development acromyns such as KISS, DRY and HATEOAS, CYA is the well known strategy of Covering Your Arse.

  • Farrah (unregistered)

    Why is parse a void function? It this a class method setting some fields, or are there other side effects?

    Also, that "some" scares me, it implies you have a mix of YYMM and MMYY with no way of knowing which is which.

  • Farrah (unregistered)

    Also, no checking of scanf return value, wonderful UB on invalid input

  • retsep (unregistered)

    Variable expiryDate could have two symbols 'dm' or 'md' in the beginning so there would be no guessing. Also, there should be parsing of production date which ought to be used to calculate when product expires. What horrors await there?

  • (nodebb)

    "calculate when product expires." I'm sure someone somewhere has written a ternary that compares individual members of two arrays to determine that.

  • Yazeran (unregistered) in reply to Farrah

    Well it would be rude to not allow the Nasal Demons to come out and play just once in a while right?

    evil grin

    Yazeran

  • Die Kuhe (kein roboter) (unregistered) in reply to Farrah

    I suppose (or hope?) that something happens with the year and month values in the part represented by the "//..."

    For the second matter, I suppose that the format is inverted in "some" part of the program, but they know that this "some" part is executed before calling this parsing functions.

    How many suppositions, for a simple cow... aren't they?

  • Die Kuhe (kein roboter) (unregistered) in reply to Farrah

    This may be important or not, depending on whether the "expiry date" comes from an user (that may enter it wrong by mistake or on purpose), or is known to be correct and meaningful.

    Not checking the results (when you know the input is valid) may be important or not, depending on whether the function is run once in a while, or in a cycle of cycles of cycles...

    As in many cases (not only in programming), the missing context doesn't help. :-/

  • Duke of New York (unregistered)

    I see this all the time in coding interviews. There's a sort of developer who, if code has a bug (even their code) they will never change the buggy code, but just add "fix" around it.

  • (nodebb) in reply to retsep

    expiryDate could have two symbols 'dm' or 'md' in the beginning so there would be no guessing

    There would still be guessing. People would be guessing why you are using d as one of your symbols instead of `y.

  • Rob L (unregistered)

    Sounds like endianess to me.

  • (nodebb)

    Comprar opioides con receta. Comprar cannabis. Marihuana. Codeína. Fentanilo. Heroína, hidrocodona. Hidromorfona. Metadona. Morfina. Oxicodona. Cocaína. Heroína. Metanfetamina. Xnnax. Opiáceos sintéticos (fentanilo). Analgésicos, Texto/WhatsApp +14137589837 Telegram > t.me/RoysmithIT

    Vendedor de analgésicos kush* de buena calidad, comestibles, ceras y todo lo relacionado con el kush. Hongos, gomitas de THC, Coca-Cola, ácido, Molly, DMT, metanfetamina y mucho más. También disponemos de todo tipo de analgésicos. Hacemos entregas a domicilio. Texto/WhatsApp +14137589837 {Telegram > t.me/RoysmithIT

    Sin receta ni seguro médico, compre analgésicos, marihuana, opioides recetados para la ansiedad, el alivio del dolor, la depresión, fentermina y más.

    ¿Necesita realmente medicamentos sin receta ni seguro médico? ¿Su médico le ha reducido o cambiado la medicación? Miles de personas se suicidan cada día debido a la histeria sobre los opioides de los medios de comunicación de las grandes farmacéuticas.

    Muchas familias se ven privadas de una vida normal porque no pueden asumir sus responsabilidades debido al dolor que podría controlarse. No todos son adictos y muchos solo necesitan lo suficiente para llevar una vida normal.

    Muchas personas con verdadera necesidad viven en condiciones insoportables de dolor crónico. Enfermedades crónicas, ansiedad, depresión, fibromialgia, TEPT, convulsiones, etc. Ofrecemos una forma segura y legítima de entregar medicamentos a quienes los necesitan sin receta ni seguro médico. Analgésicos de todo tipo, calidad ELITE, marihuana de primera calidad para la ansiedad, el alivio del dolor, la depresión, fentermina y más. Entregamos pastillas, cartuchos, vaporizadores, cera, dabs, comestibles, galletas, gomitas de THC, pre-rollos de hongos, etc.

    Contáctanos y te ayudaremos a encontrar el alivio que necesitas. [email protected] WhatsApp +14137589837 {telegram > t.me/RoysmithIT

Leave a comment on “Going on a teDa”

Log In or post as a guest

Replying to comment #682836:

« Return to Article