Spacefem (spacefem) wrote,
Spacefem
spacefem

the old tutorials

Spacefem.com sometimes feels like a house where I've just nailed on extra rooms throughout the years, and don't have the heart to rip them off.

Recently I started adding Disqus plugin code to several pages, which by the way is AWESOME. All you do is smack on a bit of javascript and now people can comment on any page! And I've actually already gotten feedback... I joked to myself about "okay the codes up, let the comments roll in" but over a few days I really did get some nice comments on the quizzes and all that.

I have javascript tutorials on the site. In adding the plugin code so people could ask questions, I noticed that they are terrible. I wrote them years ago, before I knew anything about writing code, and that's scary because I still don't know that much about it. I have yet to ever write my own php class or do anything object oriented for my web apps... although people debate whether that's a bad thing or not, I've heard that php sort of fakes it OOP capabilities anyway.

Where was I? Oh yeah, so javascript... in the days of geocities (yes) this is what ran all my quizzes. I made them work by stealing code from a dozen other pages, and figured I should help my visitors score quizzes without doing the podge-together work I had to do. The code is not pretty. And by that I don't mean it's weirdly indented, I mean it's bad, a few simple loops could eliminate a TON of lines. Looking at it again I felt embarrassed, someone could see it and think I'm an idiot when it comes to writing scripts.

I got these thoughts though:

1) Re-writing them to be more efficient would take some hours, which I don't have because my personal internet time is limited to the 10 minutes a night after Josie goes to sleep and before I pass out. I'd have to write a quiz scoring script from scratch, because all my quizzes are in php now, then I'd have to do the tutorial based off that... ugh.

2) People looking at this page are looking for tutorials, they obviously can't script worth a darn anyway otherwise they wouldn't need help figuring out how to add up form field values. They're probably not going to judge me.

3) Even if I do re-write the tutorials, someone else might still come along and judge me because there are still more efficient ways to do them. In fact I myself might even dwell on them, wanting to revisit them as I get improvement ideas.

4) Does the code work? Yes it does.

5) Just looking at it, I'm tempted to insert more "tips" for improving efficiency of the script that fit certain special cases, which I know would confuse the crap out of some newbie people.

So I'm just going to leave it all alone, I decided.

The tutorials are just out there, at least I'll say that. I mean, I don't promote them, or post them to communities. People post up some really stupid things in gimp_users sometimes, like "I can tell you how to make outline text in only 20 steps with the magic wand tool!" and I'm like, "What's wrong with text to selection > path > stroke?" because I'm snarky like that. When you put yourself out there, you run the risk of having people point out your inefficient techniques. I'm just gonna let the old tutorials do their thing in the background, that's my justification for leaving them out there as they are.
Tags: spacefem.com
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments