• @AliasVortex@lemmy.world
    link
    fedilink
    English
    23
    edit-2
    2 months ago

    We call that pseudocode and it looks fine to me. No computer will run it natively (AI meat grinders aside), but most devs will be able to pick up on the logic and convert it to actual code.

    Disclaimer: am a programmer.

    Edit: as an aside, manually dealing with time is its own form of madness and is usually best left to libraries (ie other people’s code) whenever possible.