Mini Nerd

16 June 2006

Make New Stuff (Part 2)

Other people are making new stuff too! How exciting!

Here's Dave's contribution:

Partial Class myMasterPage
Inherits System.Web.UI.MasterPage

public delegate Sub MasterPageMenuClickHandler(s as object, e as EventArgs)
public event MenuButton As MasterPageMenuClickHandler

Private _currentButton As String

Public Property CurrentButton() As String

Get


Return _currentButton

End Get

Set (ByVal Value As String)



_currentButton = value

End Set
End Property

Sub btnMenu1_Click(ByVal sender As Object, ByVal e As EventArgs)
' Assign value to public property
_currentButton = btnMenu1.text

' Fire event to existing delegates

Raiseevent MenuButton(Me, e)
End Sub

Sub btnMenu2_Click(ByVal sender As Object, ByVal e As EventArgs)
' ' Assign value to public property
_currentButton = btnMenu2.Text
' ' Fire event to existing delegates


Raiseevent MenuButton(Me, e)
End Sub

End Class


In this item's honor, I must point out that writing code is WAY harder than writing sentences. When I write a sentence, I can tell pretty quickly whether or not it's doing what it's supposed to do.

When I try to write code, on the other hand, it's more like: type, compile and pray it accomplishes its intended result. That's the beauty of the above. You struggle and struggle and struggle to talk the computer's language and when the computer finally goes, "Oh yeah! Sure, I can do that!", you bellow in triumph and lapse into total exhaustion.

Dave insists coding is not an art, because it expresses nothing.

I beg to differ. I say it expresses turmoil, patience, adaptation and ultimately - if you're lucky (in my case), or skilled (in his case) - achievement.

Labels: ,

2 Comments:

  • "I say it expresses turmoil, patience, adaptation..."

    So does masturbation. Is that art? What about desperately trying to turn a DC into an AC socket? That was my Wednesday a few weeks back. Is mining for coal art?

    Dave's wrong in that coding is by definition a medium of expression, but--maybe it's semantics--I would suggest that you're confusing the art form for the art. The labour itself takes a combination of skill and imagination, sure, but I'm hard-pressed to think of any activity that doesn't require a measure of both, and in the end what's important is what's generated. Food is art, baking is an art form. The reverse would be very pomo, of course, but would eventually destroy art (or redefine it as something that brings the observer little joy), as people would begin faking the labour because the illusion is the thing.

    Or somethin'.

    By Anonymous Anonymous, at 17 June, 2006  

  • I don't know how to write code, but often I write words that appear to be code, but that happens only when I'm in a chocolate-induced menopausal frenzy, and you know, maybe I do know how to write code, and in fact, maybe I could write the code to end all code and figure out many of the mysteries of life like why anyone would have sex with Howard Stern, or why Joan Rivers would pay someone to make her look like Michael Jackson, or why there even is a Michael Jackson, except that he did change the face of music in the 80s, but blew it when he changed his actual face, and somebody pass me another Russell Stover chocolate.......

    By Anonymous Dorrie, at 19 June, 2006  

Post a Comment

<< Home