Elf M. Sternberg (elfs) wrote,
Elf M. Sternberg
elfs

  • Mood:

Affirmations to raise your self-esteem don't work. Those that return your self-respect do.

The little things matter.

In programming, there is The Unix Way and there is The Microsoft Way. Down in the deeps of our cultural understanding of programming, there is this:

When you ask a question of a database, you're frequently expecting that the answer will be a list of things. By The Unix Way, if you ask a database for a list of things, and your query is sufficiently restrictive that nothing in the database matches, you get back an empty list. By The Microsoft Way, if your query matches nothing, the systems thrown an exception that you are expected to deal with. Dealing with an exception is onerously heavyweight compared to just asking "Is the list empty?" I've mentioned this problem before.

Unpleasantly, I discovered this problem the other day in Django's "activity stream" plug-in: if you weren't actually following anything, then there would be no activities to show you. The plug-in didn't throw an exception, but it didn't return an empty list. It returned the Python object meaning "No object." I have successfully convinced the upstream maintainer that an empty list is better, and my patch was accepted.

It seems like such a small thing, but Small Things Matter when it comes to programming. People notice the clatter and clank of a bad API.

And here's what this has to do with affirmations: Affirmations don't work. Research has shown that affirmations actually make the people who need them most worse off: the affirmation raises cognitive dissonance within the recipient, and instead of affirming the statement, reminds and re-affirms the negative state of mind that led to using the affirmation in the first place.

You know what does work? Reminders of past victories. That's what sports psychologists use, because they've known forever that the current-tense "I'm great!" messages don't work.

So I keep track of my past successes, even the small ones.
Tags: geek
Subscribe

  • Head Mounted Displays for the Writer

    Yesterday I had a chance to try out two of the "better" head-mounted displays, the Avegant Glypth, and the Moverio BT-300, and I'm disappointed to…

  • Touch To Remember

    It occurs to me that there are algorithms that can map common objects from photographs, extrapolate the shape of the common object from a library,…

  • Startup Idea: Save and Sell Porn History

    The other day, I stumbled upon Extrapolated Art, which uses machine learning to assess the contents of an image and extrapolate out from there what…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 3 comments