Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. My CPU is of an older model and gets easily distracted.

My CPU is of an older model and gets easily distracted.

Scheduled Pinned Locked Moved Uncategorized
4 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • liw@toot.liw.fiL This user is from outside of this forum
    liw@toot.liw.fiL This user is from outside of this forum
    liw@toot.liw.fi
    wrote last edited by
    #1

    My CPU is of an older model and gets easily distracted. By CPU I mean my cerebral processing unit.

    liw@toot.liw.fiL ekari@mementomori.socialE 2 Replies Last reply
    0
    • liw@toot.liw.fiL liw@toot.liw.fi

      My CPU is of an older model and gets easily distracted. By CPU I mean my cerebral processing unit.

      liw@toot.liw.fiL This user is from outside of this forum
      liw@toot.liw.fiL This user is from outside of this forum
      liw@toot.liw.fi
      wrote last edited by
      #2

      Also not good at negations. I just fixed a function "is_successful" to return true when the thing was successful and not when it was a failure. Then I fixed all call sites that treated true as failure.

      spider@mastodon.socialS 1 Reply Last reply
      0
      • liw@toot.liw.fiL liw@toot.liw.fi

        Also not good at negations. I just fixed a function "is_successful" to return true when the thing was successful and not when it was a failure. Then I fixed all call sites that treated true as failure.

        spider@mastodon.socialS This user is from outside of this forum
        spider@mastodon.socialS This user is from outside of this forum
        spider@mastodon.social
        wrote last edited by
        #3

        @liw

        Got you covered

        def is_failed(data):
        try:
        doodad(data)
        except (ValueError, TypeError):
        return True
        return False

        1 Reply Last reply
        0
        • liw@toot.liw.fiL liw@toot.liw.fi

          My CPU is of an older model and gets easily distracted. By CPU I mean my cerebral processing unit.

          ekari@mementomori.socialE This user is from outside of this forum
          ekari@mementomori.socialE This user is from outside of this forum
          ekari@mementomori.social
          wrote last edited by
          #4

          @liw I think I have the same model. I also suffer from Randomly Inaccessible Memory 😛

          1 Reply Last reply
          1
          0
          • R relay@relay.an.exchange shared this topic
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups