Archive for July, 2008

My favorite OSCON quote (so far)

Question: “What version of the code are you using?”

Answer: “Monday.”

Yeah, that about sums up how things are working in the Open Source world.

Leave a Comment

I know C. Dang.

Crap.  It looks like I know C.  Or at least a little of it.  Enough of it to contribute to Open Source.

I’m in the Just Enough C for Open Source session.  It is well presented and interesting to see how the old ideas are being presented to the new age of programmers (“Oh no, variables aren’t automatically initialized!”), but I’m not getting much new out of it.

Which is disappointing for me.  I decided a long damn time ago not to learn C.  I knew Basic and Fortran and Cobol and Lisp and Pascal and Modula-2 and Ada and at the time, that seemed like enough.  And I wasn’t using C for anything, so it seemed like too much to add another language to the mix.

And the C/Unix guys were just annoying.  I’d ask them how to do something simple and be told to do something difficult instead.  Why bother?

Of course, in the intervening years, I’ve learned another language or two (or 20, but I don’t feel like worrying about that now), but still avoided C.  I still had no reason to learn it.  I did learn C++ and Java, which are sorta close!

But, osmosis happens.  Sitting through this session, it appears I’ve learned C.

I had a friend in college studying comparative languages who decided never to read Hamlet.  I got where he was coming from.  I wonder if he was as disappointed when he realized he knew who Yorick was as I am now.

Comments (1)

Watch out compilers class!

Oh my.

I’m in an OSCON talk about the Parrot Compiler Toolkit.  It is just way too cool and way too right for a compiler class.  There’s support so that all you really have to write is the parser and code to tag action methods.  Those are the big things I want my students to do.  So I really have to figure out the PCT.

Now, someone might say instead I need to figure out yacc, since that’s been around for forever and does the same thing, but I just won’t listen to those people.  In fact, since you can get to all the parts of the compiler (like the OPcode tree, or POST), I think I could justify PCT being better.

And anyway, yacc’s been around for forever.  Isn’t that sufficient reason to try something new?

Tres cool sidebar…I entered all my sessions in Google calendar (very easy, since Google imported the calendar file created by O’Reilly) and I just got warned of my next session.  So gotta go.

But I’ve saved the link for my poor compiler kids!  (Really, pity them not…this has got to be easier than compiling to .NET!)

Comments (1)

OSCON Day 2

So,

I’m sitting in a session that makes no sense to me, but mostly because I think it makes no sense to anyone.  Well, that’s not quite right.  It just seems to be presented by someone who has no idea what a good OSCON tutorial is. 

The slides are done in a simple white font on a black background that is so much duller than anything I can describe. 

The speaker is talking in a monotone.

He doesn’t have his examples ready…to show something new, he goes to Google to look it up.

Not that the examples are that good…we’re seeing YouTube videos, ads for 3D mice, etc. etc.

I think for a very small audience, this is a good presentation.  I’m not in that audience.  Neither are most of the people here.

I needed more of an overview of the tools available.  I mean, sheesh, this is the Open Source Conference.  You don’t need a lot of time on licenses.  I expected you to start with Blender or Inkscape or the Gimp or something and do things.  Surveying just doesn’t cut it.  Hey, I did a survey of someone else’s tools last Friday, but I showed examples and explained what they were good for

And I didn’t keep talking about tools that weren’t open source and not for the web during a talk titled “Real Time 3D on the Web for the Web.” 

But my morning talk was great.  It was devoted to the fun and convolution that is Perl programming.  How bad is the code you can write?  Damian Conway can write worse code and he walked us through it.  And I understood it most without my head exploding.

And while I avoided Damian like the plague for a while, he really has mellowed and started being more interested in his audience than in his own strutting and posing.  By far it was the best of the tutorials I signed up for. 

It’s break time.  And while I’ll try to be polite, it’s a bit hard with a talk like this…

I wonder how many people will be back here after break.  I guess I’ll never know.

Leave a Comment

Belated Pictures

So, we had kittens and they spent just a day with us (I still have no idea where they came from or where they went to).  But I did get pictures and now that I’ve figured out how to log into this blog again, I’ll try in vain to catch up.

Comments (1)

OSCON, 2008

Well, this is an obvious thing to blog about…I’m at OSCON, taking workshops for the first two days.

I started in an introduction to Rails plugins.  I didn’t belong in an introduction to Rails plugins.  I haven’t really thought much about Rails since the first Rails conference, over a year ago.  And I hadn’t updated Rails since then.  So I tried to get Rails 2.0 running this morning and run through a tutorial to refresh myself.

And lemme say, I think it’s really sucky of Rails to “automatically” use SQLite, but then not make it clear that Ruby doesn’t by default include SQLite, so I have to install it.  And if I had more time, it probably would have been clear, but dammit, I wanted to go through the tutorial in 10 minutes and that’s just not enough time to RTFM.

But I did get a lot out of the course.  I remembered how it feels to think the instructor is speaking a foreign language using English words.  I have some students who are definitely in that boat.  Of course, I know that it’s possible to figure out what’s going on.  I honestly believe that some of my students don’t know just how lost they are.

And I got Rails to run.

And I felt very female.  After 45 minutes or so, I looked around and noticed very few other women in the session.  Ah, but there was one a few rows back!  Alas, she was the other woman in my group.  She also ditched the second half of the talk.

So, I decided to go from the sublime to the ridiculous, or some such thing, and spend the last hour and a half of the morning in an Introduction to Python session.  It’s been 8 months or so since I’ve thought about Python, but it’s come back a whole bunch faster.

Nice workshop though.  I can pay attention and do other things, like blog and get the PyDev add in working in Eclipse.  Good slides for the next time I need to learn Python.

And some cool phrasology…”Python is a language for consenting adults” for anytime something slightly dangerous is done (like dispensing with getters and setters).  Of course, this is not something someone interested in Python in the high school is wanting to hear.  But then, it’s been my reason for not wanting to use Python in the high school

And the Double UNDERscore is called the “dunder.”  Of course.  How cool.  What a dork I’ll look like in class this fall!

For purely cool programming, there’s Python function building…

def adderNew(n):
   def add(m):
      return m+n
   return add

add20 = adderNew (20)
add42 = adderNew (42)

x = 2
y = add20 (x)
z = add42(x)
print x, y, z

which gives 2, 22, 44!

We’re getting ready to leave…even though I don’t have to fight lines in the ladies room, I should finish up for now.

Comments (1)