Saturday, June 15, 2013

What DO I do?

I realized lately how much I say I don't do things: I don't watch TV, I don't watch many movies, the list goes on. And in order to better answer the question with a follow-up, I ask myself, "What do I do?"
  • I run a subsidiary organization of UT-BASH.
  • I listen to music. A lot of music. A lot of the same kind of music.
  • I think about fantasy settings and stories and the people within them. Sometimes I even write it down.
  • I code a website.
  • I go online and learn things that pique my curiosity.
  • I browse tumblr.
  • I read the news.
  • I run an RPG and a Who's the Boss? game simultaneously.
  • I am the treasurer of a collegiate anime club.
  • I maintain relationships with my friends through actual social contact.
  • I'm also a poor student looking for a job (and wondering what the point of life is).
  • I play games. All sorts of games.
  • I run an ambient electronica show on the radio.
So yeah, that.

Thursday, June 13, 2013

"Green" Programming

Today I saw an article by The Onion (of all sources) parodying our horrendous environmental impact with our species' production culture.

Find that here: Advanced Alien Civilization Discovers Uninhabitable Planet.

It reminded me of all of the paper that BASHCon wastes with its print ads, postcards, and lengthy program guides. But, more to the point of this post, it reminded me of the concept (that I think I invented?) of "Green" Programming.

Green Programming is the concept of removing code that is no longer used so that computers that read the code don't expend the electricity resources to load it. Even though you may have a chunk of code commented out, if you find out at the end of the project that you really don't need it, get rid of it.

If you're on the fence about permanently deleting it, you could save it to a hard disk. That doesn't expend any more energy than what it takes to actually write it, and then only the development team (tiny compared to the user base) would need to access it.

Think about it: if you have a program that has lines upon lines of unnecessary, unused, commented-out code, and you release that program, then every machine running the program will read that useless code. And then, let's say it's a popular program like GIMP or Firefox, and now you have millions of computers using electricity to read useless code.

Sure, on the small scale, it's insignificant, but when all of the millions are doing it, it makes a sizable impact.

Long story short: get rid of code you don't use; don't just comment it out. It really saves electricity.