?

Log in

No account? Create an account
inside/outside/leave me alone - Lindsey Kuper [entries|archive|friends|userinfo]
Lindsey Kuper

[ website | composition.al ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

inside/outside/leave me alone [Nov. 28th, 2007|09:57 pm]
Lindsey Kuper
[Tags|]

A few months back, Andrew flaccus, writing about math, absolutely nailed how I feel about programming a lot of the time: I keep having epiphanies, but they're all incredibly trite.

6:00 p.m.: I've been thinking about this all day. I start to write: "Class::Std is good and all, but I want a convention for distinguishing internal fields from fields that you can pass to the constructor. Oh, and I want automatic getters/setters."

6:15 p.m.: I go to bullshit-check myself and discover that Class::Std can provide automatic getters/setters by way of the :ATTR marker. Awesome.

6:17 p.m.: I get excited. I wonder, "Why aren't we using this?! Dude! We could have so much less code! Especially in Resources::Object, it being the frickin' base class and all!" I go to look at the frickin' base class to see how much code we're wasting! Oh, man! Jesse jes5199 is going to be so proud of me!

6:19 p.m.: Right above where I'm about to start writing code, I notice a comment that Jes wrote:

# I drafted this using the fancy parameters that you can pass to ATTR
# but they were too rigid to be useful.

Oh. Um.
I deflate.
Of course he already thought of this, six months ago.

(Is anyone not thinking either "Give it up, Lindsey. Stop trying to use Perl and switch to a real language", or "Give it up, Lindsey. Stop trying to use Perl and go hug your friends, call your family members, pet your cat, and eat some fruit"?)

LinkReply

Comments:
[User Picture]From: keystricken
2007-11-29 06:14 am (UTC)
You have a cat? What?
(Reply) (Thread)
[User Picture]From: lindseykuper
2007-11-29 06:24 am (UTC)

so inside, it's outside

Nah. That was just a nod to oniugnip.
(Reply) (Parent) (Thread)
[User Picture]From: jes5199
2007-11-29 06:20 am (UTC)
It's possible that my decision was wrong.
(Reply) (Thread)
[User Picture]From: lindseykuper
2007-11-29 06:31 am (UTC)
You don't get to be wrong!
(Reply) (Parent) (Thread)
[User Picture]From: lindseykuper
2008-05-16 09:18 pm (UTC)
(Addendum: most of DFI is now get_-and-set_-ified. so much less code!)
(Reply) (Parent) (Thread)
[User Picture]From: gorthx
2007-11-29 06:57 am (UTC)
do not give up!! :)
(Reply) (Thread)
[User Picture]From: pixelherder
2007-11-29 07:33 am (UTC)
Eh, programming's all about those trivial little epiphanies. Especially debugging!

I don't think you ever outgrow it.
(Reply) (Thread)
[User Picture]From: pmb
2007-11-29 07:53 am (UTC)
Richard Feynman said that the important thing was to keep having ideas. Initially, they would be old, solved ideas. Then they would be a year or two out of date, then six months out of date, and pretty soon you are the one coming up with all the new stuff.

I have found this to be true in my experience as well. The important thing is to not stop thinking.
(Reply) (Thread)
[User Picture]From: lindseykuper
2007-11-29 06:20 pm (UTC)
I like that idea. Thanks.
(Reply) (Parent) (Thread)
[User Picture]From: pmb
2007-11-30 05:44 am (UTC)
In the same vein, Screw UNIX, I'm just going to smoke pot and eat Cheetos for the rest of my life. My tech exasperation is always haha-only-serious.
(Reply) (Parent) (Thread)
[User Picture]From: stereotype441
2007-11-29 08:37 am (UTC)
Never give up. Never surrender!
(Reply) (Thread)
[User Picture]From: lindseykuper
2007-11-29 06:20 pm (UTC)
You guys know I'm not actually in danger of giving up, right?
(Reply) (Thread)