elfs: (Default)
[personal profile] elfs
In the past half-hour, I've gotten further along on Arcline than I have in the past three months combined. Y'know why? Because I gave up on my initial language of choice, and went with something entirely new to me.

At first, my idea was to write it in GTK/C. this was not an unreasonable choice; all Unixen support GTK these days, and it's almost universal. Every distribution comes with it, even if they don't support it's overmassive brother GNOME.

In the past hour I've put together the central UI component and i've started on the back-end library. I usually do the back-end first, but in this case it gave me a chance to play with the UI builder, which I needed to understand before I proceeded. I'll finish the raw back-end sometime tomorrow, and then get the IO routines polished up. I'm tempted to blow off the whole XML thing; it seems to be popular, but I've never understood the need for it.

I also ginned this up over about fifteen minutes yesterday, only to find the original in a lost notebook later that evening:


Arclines Class Diagram


The secret ingredients have been: Dia, Dia2Code, Python, WX, WxPython, and WxGlade. The fact that I can toss that together so quickly and easily with the tools available to me makes me happy. Although, trust me, I'm going to go through the code generated by the UI wizard line by line; I never use code I don't understand.

I do have one big task ahead of me: wrapping my head around the idea of event-oriented programming. I've been doing it for years in a web-based way, but never for pure applications. I also need to build a pair of custom widgets: one for the plot lines themselves, and another for the scene-force-ratio diagram, a tool which, if you use the in-built Content Manager, will allow you to map out each scene, showing how long each scene is compared to others, and allow you to hover over each scene to read the summary; that way, you can see if a scene's length corresponds to its importance in the story.

And the nice thing is Wx has been ported to both Mac OSX and Win32. In theory, Arcline will run on Unix, Mac, and Windows platforms. In theory.

Date: 2005-03-29 09:29 pm (UTC)
From: [identity profile] chgowiz.livejournal.com
Moving from web to app event programming is difficult in devilish details, but the concepts are the same. I come from the reverse, programming versus Windows events first, then to Web. Can I help in some area?

Date: 2005-03-29 09:39 pm (UTC)
From: [identity profile] http://users.livejournal.com/pfister_/
XML provides nothing that Lisp S-expressions haven't provided for ... 50 years now? Except that it looks similar to HTML, so is popular, so there are a lot of tools and libraries that work with it. A lot of protocols and file formats also use it, even if they would benefit far more from being compact than from being human-editable -- and amusingly enough, some of them then compress the XML, negating the only reason to ever use it.

[topic switch]

Event-based programming in an application should be a cinch compared to doing it for the web, because you don't have to recreate the state of the program each time an event occurs :)

Date: 2005-03-29 09:41 pm (UTC)
From: [identity profile] elfs.livejournal.com
Pleasurably, most web frameworks take care of this for me these days. I'm a big fan of Webware (http://www.webwareforpython.org/), which handholds most of the work for me.

Date: 2005-03-30 09:12 am (UTC)
From: [identity profile] quaryn-dk.livejournal.com
I'm glad to hear you use Dia! My husband's the primary maintainer.

Need any help?

Date: 2005-03-31 05:42 am (UTC)
From: [identity profile] rkda.livejournal.com
Especialy with the mac version. I don't do windoze, but know linix well enough to make my way around, and can help with stuff that runs on darwin.

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 20th, 2026 07:08 am
Powered by Dreamwidth Studios